|
Mod_Rewrite Problem - Show How Smart You Are
i have a CMS - with a problem i haven't been able to solve. The CMS stores all the content for the various paysites/domains that use the CMS in a hidden /content directory - this content includes sample/preview content used on tours - the CMS uses PHP to get the preview content - that's alot of extra work for the server building these dynamic tour pages - under heavy traffic it will slow down tours - so I had somebody monkey around with it, so that preview images/movies no longer get pulled using the PHP script - and the solution works but it's clumsy as hell. I'm no geek so I had to get a friend to
write out the problem in geek speak - here it is
mod_rewrite question
---------------------------------
I have multiple domains domain1.com domain2.com etc
paths are:
/home/xxx/domain1.com
/home/xxx/domain2.com
I have a content folder in:
/home/xxx/content
I need to rewrite domain1.com/content/ to /home/xxx/content/
so I have this in .htaccess for each domain:
RewriteEngine On
RewriteRule content/(.*) /home/xxx/content/$1 [L]
The problem is it doesn't work, when I go to domain1.com/content/1.jpg
I get 404 error:
"The requested URL /home/xxx/content/1.jpg was not found on this server."
It apears to be treating the full path "/home/xxx/content/" as relative path
i dunno - maybe somebody here will see where things are wrong.
thanks
__________________
I moved my sites to Vacares Hosting. I've saved money, my hair is thicker, lost some weight too! Thanks Sly!
|