juanv Posted April 4, 2011 Share Posted April 4, 2011 HiIam having a weird issue here...Last week sometime I enabled friendly url and then generated the .thaccess file and everything worked 100%, So today i added new produtcs and then the problem occured.... when i click on the newly added product to view it... it takes me to a different category?? The older products friendly urls still work but not the new products!!Here's the step by step url desciptions :Under categories i click on this link...http://www.mysite.com/39-notebook-accessoriesthen i click on this link ...http://www.mysite.com/48-windows7then on this one...http://v/49-32-bit-or-64-bit <- this is where the products arethen i click on the product to fully view it...http://v/32-bit-or-64-bit/186-microsoft-windows-7-starter-edition-32-bit.htmlBUT then it takes to this page...http://www.mysite.com/32-dellI have disabled the friendly url and created a new .htaccess and then iam able to view the new products but as soon as i enable it again with a new .htaccess, i cant view the newly added products?ANY IDEAS PLEASE?Problem Solved.... This is what i did :I manually changed my .htaccess file by replacing the current lines to these ones:RewriteRule ^([a-zA-Z0-9-]*)/([0-9]+)\-([a-zA-Z0-9-]*)\.html(.*)$ product.php?id_product=$2$4 [L,E]RewriteRule ^([0-9]+)\-([a-zA-Z0-9-]*)\.html(.*)$ product.php?id_product=$1$3 [L,E]RewriteRule ^([0-9]+)\-([a-zA-Z0-9-]*)(.*)$ category.php?id_category=$1 [QSA,L,E]RewriteRule ^content/([0-9]+)\-([a-zA-Z0-9-]*)(.*)$ cms.php?id_cms=$1 [QSA,L,E]RewriteRule ^([0-9]+)__([a-zA-Z0-9-]*)(.*)$ supplier.php?id_supplier=$1$3 [QSA,L,E]RewriteRule ^([0-9]+)_([a-zA-Z0-9-]*)(.*)$ manufacturer.php?id_manufacturer=$1$3 [QSA,L,E] Link to comment Share on other sites More sharing options...
Recommended Posts