Here is my htaccess code I have with shortlinks enabled using TKSL
In my category pages I have included the category code in the url. so my product url on the category page look like
www.mysite.com/p/category-code/product-code.html
But here is what's happening if the product url contains the old category code its not redirecting to the newer on even though I have added all the old category codes in file called ARCHIVE after following the TKSL guidelines
Instead of redirecting it simply displays a blank white page, so currently this url display blank
http://www.mysite.com/p/old-category...duct-code.html but it should redirect to the www.mysite.com/p/category-code/product-code.html
what am I missing or do I have to use htaccess file for this and if so any easier way to do it rather than hard coding each and every url as there are thousands of products
Thanks
Code:
DirectoryIndex /mm5/merchant.mvc?Screen=SFNT RewriteEngine On RewriteRule ^mm5/admin.mvc? - [QSA,L] RewriteCond %{REQUEST_FILENAME} !-s RewriteRule ^p/([^/.]+).html$ /mm5/merchant.mvc?Screen=TKSL&Product_code=$1 [QSA,NC,L] RewriteCond %{REQUEST_FILENAME} !-s RewriteRule ^c/([^/.]+).html$ /mm5/merchant.mvc?Screen=TKSL&Category_code=$1 [QSA,NC,L] RewriteCond %{REQUEST_FILENAME} !-s RewriteRule ^p/([^/]+)/([^/.]+).html$ /mm5/merchant.mvc?Screen=TKSL&Category_code=$1&Product_code=$2 [QSA,NC,L] RewriteCond %{REQUEST_FILENAME} !-s RewriteRule ^([^/.]+).html$ /mm5/merchant.mvc?Screen=TKSL&Code=$1 [QSA,NC,L]
www.mysite.com/p/category-code/product-code.html
But here is what's happening if the product url contains the old category code its not redirecting to the newer on even though I have added all the old category codes in file called ARCHIVE after following the TKSL guidelines
Instead of redirecting it simply displays a blank white page, so currently this url display blank
http://www.mysite.com/p/old-category...duct-code.html but it should redirect to the www.mysite.com/p/category-code/product-code.html
what am I missing or do I have to use htaccess file for this and if so any easier way to do it rather than hard coding each and every url as there are thousands of products
Thanks
Comment