datatel Posted April 5, 2011 Share Posted April 5, 2011 Hi. I would like to ask for help about my HOME link problem when navigating product in a subcategory.After navigating to WWW.MYDOMAIN.COM/PRODUCTCAT/PRODUCT (HOME>SUBCAT>PRODUCT)....when you click HOME....the link becomes WWW.MYDOMAIN/PRODUCTCAT/INDEX.PHP instead of WWW.MYDOMAIN/INDEX.PHP....Example: When you navigate to http://www.lcd-source.com/lang-en/auoptronics-notebook-lcd-screens/15-auo-b089aw01-v1-.html and click HOME button the link becomes http://www.lcd-source.com/lang-en/auoptronics-notebook-lcd-screens/index.php instead of http://www.lcd-source.com/lang-en/index.php where the auoptronics-notebook-lcd-screens is the default category of product 15-auo-b089aw01-v1-.I have installed Tomerg3 SEOfix. I don't know if this issues is about URL rewriting rules..my .htaccess file is as follows:# URL rewriting module activationRewriteEngine on# URL rewriting rulesRewriteRule ^([a-z0-9]+)\-([a-z0-9]+)(\-[_a-zA-Z0-9-]*)/([_a-zA-Z0-9-]*)\.jpg$ /img/p/$1-$2$3.jpg [QSA,L,E]RewriteRule ^([0-9]+)\-([0-9]+)/([_a-zA-Z0-9-]*)\.jpg$ /img/p/$1-$2.jpg [QSA,L,E]RewriteRule ^([0-9]+)(\-[_a-zA-Z0-9-]*)/([_a-zA-Z0-9-]*)\.jpg$ /img/c/$1$2.jpg [QSA,L,E]RewriteRule ^lang-([a-z]{2})/([a-zA-Z0-9-]*)/([0-9]+)\-([a-zA-Z0-9-]*)\.html(.*)$ /product.php?id_product=$3&isolang;=$1$5 [QSA,L,E]RewriteRule ^lang-([a-z]{2})/([0-9]+)\-([a-zA-Z0-9-]*)\.html(.*)$ /product.php?id_product=$2&isolang;=$1$4 [QSA,L,E]RewriteRule ^lang-([a-z]{2})/([0-9]+)\-([a-zA-Z0-9-]*)(.*)$ /category.php?id_category=$2&isolang;=$1 [QSA,L,E]RewriteRule ^([a-zA-Z0-9-]*)/([0-9]+)\-([a-zA-Z0-9-]*)\.html(.*)$ /product.php?id_product=$2$4 [QSA,L,E]RewriteRule ^([0-9]+)\-([a-zA-Z0-9-]*)\.html(.*)$ /product.php?id_product=$1$3 [QSA,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]RewriteRule ^lang-([a-z]{2})/(.*)$ /$2?isolang=$1 [QSA,L,E]# Catch 404 errorsErrorDocument 404 /404.phpRewriteCond %{HTTP_HOST} ^lcd-source.comRewriteRule ^(.*)$ http://www.lcd-source.com/$1 [R=301,L] Link to comment Share on other sites More sharing options...
datatel Posted April 7, 2011 Author Share Posted April 7, 2011 Solve....Searching google and install the following fix....http://www.prestashow.com/ecommerce/free-seo-mod-redirect-your-old-friendly-url-product-name-to-your-new-friendly-url-product-name-to-remove-duplicate-entries-on-search-engines/And everything works perfectly.I also attached the fix coming from the above link. happyseo.zip Link to comment Share on other sites More sharing options...
Sara Martin Posted April 7, 2011 Share Posted April 7, 2011 I thought the orginal URLs will still work. What mod_rewite does is when it gets a request.. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now