VirtualHost and RewriteRule are in conflict, maybe?
i Have this URI = http://www.classicjewelry.com/diamondjewelry/product_detail.php/pid=197~subid=59/index.html
The /diamondjewelry/ is set by VirtualHost file as an Alias, so it not realy exists.
I tried add .htaccess to that physical folder it alias to say just turn http://classicjewelry.com/diamondjewelry/...
to
http://www.classicjewelry.com/diamondjewelry/...
and failed. It works only on the root:
RewriteCond %{HTTP_HOST} ^classicjewelry\.com$ [NC]
RewriteRule ^(.*)$ http://www.classicjewelry.com/$1 [R=301,L]
What to do?
Options +FollowSymLinks
RewriteEngine On
RewriteCond %{HTTP_HOST} ^classicjewelry.com/diamondjewelry/ [NC]
RewriteRule ^(.*)$ http://www.classicjewelry.com/diamond_jewelry/$1 [R=301,L]
2006-08-14
10:01:53
·
2 answers
·
asked by
Martin G
2