Jump to content

Rewrite: Subdomain and subfolders


dennism

Recommended Posts

I would like to have a rewriteRule to solve this problem:

 

1. When I visit "subdomain.mydomain.dk/" I should see "www.mydomain.dk/customers/?customer=subdomain"

2  When I visit "subdomain.mydomain.dk/testPage.php" I should see "www.mydomain.dk/customers/testPage.php"

3. When I visit "subdomain.mydomain.dk/aSubfolder/anotherSubfolder/image.jpg" I should see "www.mydomain.dk/customers/aSubfolder/anotherSubfolder/image.jpg"

 

I hope you see the system in this rules!

 

Link to comment
https://forums.phpfreaks.com/topic/99881-rewrite-subdomain-and-subfolders/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.