Forum Moderators: bakedjake
How should the httpd.conf of fooparking.com look like if I want all my parked domains to show content from main domain?!
For example:
domain1.com will show contents from fooparking.com/domain1.com/
domain2.com will show contents from fooparking.com/domain2.com/
domain3.com will show contents from fooparking.com/domain3.com/
Any help is greatly appreciated, thank you.
[edited by: adrianTNT at 12:46 am (utc) on Feb. 2, 2009]
RewriteCond %{HTTP_HOST} ^([^.]+\.[a-z]{2,6})$ [NC]
RewriteRule ^(.*)$ /domains/%1/$1 [L]
RewriteCond %{HTTP_HOST} ^www.([^.]+\.[a-z]{2,6})$ [NC]
RewriteRule ^(.*)$ /domains/%1/$1 [L]
But only one at a time works, whenever the two conditions are both existent the second one returns "Internal Server Error".
Anyone knows what is wrong or what to use instead?