[thelist] .htaccess for two URLs

Fred Jonest fredthejonester at gmail.com
Thu May 31 07:50:27 CDT 2007

I have two domain names and I want the secondary one to be sent to a 
subdirectory, meaning that if you request 
http://secondsite.com/aboutus.php the server will deliver 

I tried this

RewriteCond %{HTTP_HOST} !mainsite.com
RewriteRule ^(.*)$ /secondsite/$1

but it fails.

Any better ideas?


More information about the thelist mailing list