[thelist] .htaccess for two URLs

Fred Jones fredthejonester at gmail.com
Mon Jun 4 08:13:16 CDT 2007


>> Also fails. I enter secondsite.com and get 
>> mainsite.com/secondsite/secondsite/secondsite ad infinitum until it errors.
> 
> Wouldn't you then just add a second condition to check that the URI 
> doesn't already start with /secondsite?
> 
> RewriteCond %{HTTP_HOST} !mainsite.com
> RewriteCond %{REQUEST_URI} !^/secondsite

the thing is that I don't want the URL to change in the browser.

like when I use this rewrite thing to use /mags/1 instead of 
/mags.php?id=1 the URL in the browser remains as /mags/1.

I want here to the URL not to change from secondsite.com

thanks,
f j






More information about the thelist mailing list