Hi, I hope someone can help me on this..
Current site has URLS like
www.x.com/prod/name.html
NEW URLS need to be
www.x.com/Item/name (so loosing the .html
The thing is at the same time the .htacess is rewriting the Item URLS to the real php page with variables that remains hidden. Below is the code in place with first to RewriteRules doing the redirecting that I added. With these thought I just get a 500 server error?
Code:
Options +FollowSymLinks
RewriteEngine on
RewriteRule ^index.php - [L,PT]
RewriteRule ^$ index.php?COREseourl=/ [L,PT]
RewriteRule ^/$ index.php?COREseourl=/ [L,PT]
RewriteRule ^sitemap\.xml utilities/sitemap.xml [L,PT]
RewriteRule ^rss\.xml utilities/rss.xml [L,PT]
RewriteCond %{REQUEST_URI} ^/
RewriteCond %{REQUEST_URI} !\.(xml|css|js|gif|jpg|jpeg|png|pdf)$ [NC]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*) index.php?COREseourl=/$1 [L,PT]
RewriteRule ^cat/(.*)\.html$ Category/$1 [R=301, L]
RewriteRule ^prod/(.*)\.html$ Item/$1 [R=301, L]