Jump to content

SEO not redirecting in 1.4.8.2. Need help urgent


Recommended Posts

I'm having the same issue as here:

 

https://forums.aws.amazon.com/thread.jspa?threadID=101212

 

I've have everything config correctly. I need help urgently, thank you by advance if somebody can help me.

 

# .htaccess automaticaly generated by PrestaShop e-commerce open-source solution

# WARNING: PLEASE DO NOT MODIFY THIS FILE MANUALLY. IF NECESSARY, ADD YOUR SPECIFIC CONFIGURATION WITH THE HTACCESS GENERATOR IN BACK OFFICE

# http://www.prestashop.com - http://www.prestashop.com/forums

 

 

<IfModule mod_rewrite.c>

 

# Disable Multiviews

Options -Multiviews

 

# URL rewriting module activation

RewriteEngine on

 

# URL rewriting rules

RewriteRule ^api/?(.*)$ /shop/webservice/dispatcher.php?url=$1 [QSA,L]

RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization},L]

RewriteRule ^([a-z0-9]+)\-([a-z0-9]+)(\-[_a-zA-Z0-9-]*)/[_a-zA-Z0-9-]*\.jpg$ /shop/img/p/$1-$2$3.jpg [L]

RewriteRule ^([0-9]+)\-([0-9]+)/[_a-zA-Z0-9-]*\.jpg$ /shop/img/p/$1-$2.jpg [L]

RewriteRule ^([0-9])(\-[_a-zA-Z0-9-]*)?/[_a-zA-Z0-9-]*\.jpg$ /shop/img/p/$1/$1$2.jpg [L]

RewriteRule ^([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?/[_a-zA-Z0-9-]*\.jpg$ /shop/img/p/$1/$2/$1$2$3.jpg [L]

RewriteRule ^([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?/[_a-zA-Z0-9-]*\.jpg$ /shop/img/p/$1/$2/$3/$1$2$3$4.jpg [L]

RewriteRule ^([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?/[_a-zA-Z0-9-]*\.jpg$ /shop/img/p/$1/$2/$3/$4/$1$2$3$4$5.jpg [L]

RewriteRule ^([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?/[_a-zA-Z0-9-]*\.jpg$ /shop/img/p/$1/$2/$3/$4/$5/$1$2$3$4$5$6.jpg [L]

RewriteRule ^([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?/[_a-zA-Z0-9-]*\.jpg$ /shop/img/p/$1/$2/$3/$4/$5/$6/$1$2$3$4$5$6$7.jpg [L]

RewriteRule ^([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?/[_a-zA-Z0-9-]*\.jpg$ /shop/img/p/$1/$2/$3/$4/$5/$6/$7/$1$2$3$4$5$6$7$8.jpg [L]

RewriteRule ^([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?/[_a-zA-Z0-9-]*\.jpg$ /shop/img/p/$1/$2/$3/$4/$5/$6/$7/$8/$1$2$3$4$5$6$7$8$9.jpg [L]

RewriteRule ^c/([0-9]+)(\-[_a-zA-Z0-9-]*)/[_a-zA-Z0-9-]*\.jpg$ /shop/img/c/$1$2.jpg [L]

RewriteRule ^c/([a-zA-Z-]+)/[a-zA-Z0-9-]+\.jpg$ /shop/img/c/$1.jpg [L]

RewriteRule ^([a-z]{2})/[a-zA-Z0-9-]*/([0-9]+)\-[a-zA-Z0-9-]*\.html /shop/product.php?id_product=$2&isolang=$1 [QSA,L]

RewriteRule ^([a-z]{2})/([0-9]+)\-[a-zA-Z0-9-]*\.html /shop/product.php?id_product=$2&isolang=$1 [QSA,L]

RewriteRule ^([a-z]{2})/([0-9]+)\-[a-zA-Z0-9-]*(/[a-zA-Z0-9-]*)+ /shop/category.php?id_category=$2&isolang=$1&noredirect=1 [QSA,L]

RewriteRule ^([a-z]{2})/([0-9]+)\-[a-zA-Z0-9-]* /shop/category.php?id_category=$2&isolang=$1 [QSA,L]

RewriteRule ^([a-z]{2})/content/([0-9]+)\-[a-zA-Z0-9-]* /shop/cms.php?isolang=$1&id_cms=$2 [QSA,L]

RewriteRule ^([a-z]{2})/content/category/([0-9]+)\-[a-zA-Z0-9-]* /shop/cms.php?isolang=$1&id_cms_category=$2 [QSA,L]

RewriteRule ^([a-z]{2})/([0-9]+)__[a-zA-Z0-9-]* /shop/supplier.php?isolang=$1&id_supplier=$2 [QSA,L]

RewriteRule ^([a-z]{2})/([0-9]+)_[a-zA-Z0-9-]* /shop/manufacturer.php?isolang=$1&id_manufacturer=$2 [QSA,L]

RewriteRule ^([0-9]+)(\-[_a-zA-Z0-9-]*)/[_a-zA-Z0-9-]*\.jpg$ /shop/img/c/$1$2.jpg [L]

RewriteRule ^([0-9]+)\-[a-zA-Z0-9-]*\.html /shop/product.php?id_product=$1 [QSA,L]

RewriteRule ^[a-zA-Z0-9-]*/([0-9]+)\-[a-zA-Z0-9-]*\.html /shop/product.php?id_product=$1 [QSA,L]

RewriteRule ^([0-9]+)\-[a-zA-Z0-9-]*(/[a-zA-Z0-9-]*)+ /shop/category.php?id_category=$1&noredirect=1 [QSA,L]

RewriteRule ^([0-9]+)\-[a-zA-Z0-9-]* /shop/category.php?id_category=$1 [QSA,L]

RewriteRule ^([0-9]+)__([a-zA-Z0-9-]*) /shop/supplier.php?id_supplier=$1 [QSA,L]

RewriteRule ^([0-9]+)_([a-zA-Z0-9-]*) /shop/manufacturer.php?id_manufacturer=$1 [QSA,L]

RewriteRule ^content/([0-9]+)\-([a-zA-Z0-9-]*) /shop/cms.php?id_cms=$1 [QSA,L]

RewriteRule ^content/category/([0-9]+)\-([a-zA-Z0-9-]*) /shop/cms.php?id_cms_category=$1 [QSA,L]

RewriteRule ^en/page-not-found$ /shop/404.php?isolang=en [QSA,L]

RewriteRule ^en/address$ /shop/address.php?isolang=en [QSA,L]

RewriteRule ^en/addresses$ /shop/addresses.php?isolang=en [QSA,L]

RewriteRule ^en/authentication$ /shop/authentication.php?isolang=en [QSA,L]

RewriteRule ^en/best-sales$ /shop/best-sales.php?isolang=en [QSA,L]

RewriteRule ^en/cart$ /shop/cart.php?isolang=en [QSA,L]

RewriteRule ^en/contact-us$ /shop/contact-form.php?isolang=en [QSA,L]

RewriteRule ^en/discount$ /shop/discount.php?isolang=en [QSA,L]

RewriteRule ^en/guest-tracking$ /shop/guest-tracking.php?isolang=en [QSA,L]

RewriteRule ^en/order-history$ /shop/history.php?isolang=en [QSA,L]

RewriteRule ^en/identity$ /shop/identity.php?isolang=en [QSA,L]

RewriteRule ^en/manufacturers$ /shop/manufacturer.php?isolang=en [QSA,L]

RewriteRule ^en/my-account$ /shop/my-account.php?isolang=en [QSA,L]

RewriteRule ^en/new-products$ /shop/new-products.php?isolang=en [QSA,L]

RewriteRule ^en/order$ /shop/order.php?isolang=en [QSA,L]

RewriteRule ^en/order-follow$ /shop/order-follow.php?isolang=en [QSA,L]

RewriteRule ^en/quick-order$ /shop/order-opc.php?isolang=en [QSA,L]

RewriteRule ^en/order-slip$ /shop/order-slip.php?isolang=en [QSA,L]

RewriteRule ^en/password-recovery$ /shop/password.php?isolang=en [QSA,L]

RewriteRule ^en/prices-drop$ /shop/prices-drop.php?isolang=en [QSA,L]

RewriteRule ^en/search$ /shop/search.php?isolang=en [QSA,L]

RewriteRule ^en/sitemap$ /shop/sitemap.php?isolang=en [QSA,L]

RewriteRule ^en/stores$ /shop/stores.php?isolang=en [QSA,L]

RewriteRule ^en/supplier$ /shop/supplier.php?isolang=en [QSA,L]

RewriteRule ^en$ /shop/en/ [QSA,L]

RewriteRule ^en/([^?&]*)$ /shop/$1?isolang=en [QSA,L]

RewriteRule ^pt/page-not-found$ /shop/404.php?isolang=pt [QSA,L]

RewriteRule ^pt/address$ /shop/address.php?isolang=pt [QSA,L]

RewriteRule ^pt/addresses$ /shop/addresses.php?isolang=pt [QSA,L]

RewriteRule ^pt/authentication$ /shop/authentication.php?isolang=pt [QSA,L]

RewriteRule ^pt/best-sales$ /shop/best-sales.php?isolang=pt [QSA,L]

RewriteRule ^pt/cart$ /shop/cart.php?isolang=pt [QSA,L]

RewriteRule ^pt/contact-us$ /shop/contact-form.php?isolang=pt [QSA,L]

RewriteRule ^pt/discount$ /shop/discount.php?isolang=pt [QSA,L]

RewriteRule ^pt/guest-tracking$ /shop/guest-tracking.php?isolang=pt [QSA,L]

RewriteRule ^pt/order-history$ /shop/history.php?isolang=pt [QSA,L]

RewriteRule ^pt/identity$ /shop/identity.php?isolang=pt [QSA,L]

RewriteRule ^pt/manufacturers$ /shop/manufacturer.php?isolang=pt [QSA,L]

RewriteRule ^pt/my-account$ /shop/my-account.php?isolang=pt [QSA,L]

RewriteRule ^pt/new-products$ /shop/new-products.php?isolang=pt [QSA,L]

RewriteRule ^pt/order$ /shop/order.php?isolang=pt [QSA,L]

RewriteRule ^pt/order-follow$ /shop/order-follow.php?isolang=pt [QSA,L]

RewriteRule ^pt/quick-order$ /shop/order-opc.php?isolang=pt [QSA,L]

RewriteRule ^pt/order-slip$ /shop/order-slip.php?isolang=pt [QSA,L]

RewriteRule ^pt/password-recovery$ /shop/password.php?isolang=pt [QSA,L]

RewriteRule ^pt/prices-drop$ /shop/prices-drop.php?isolang=pt [QSA,L]

RewriteRule ^pt/search$ /shop/search.php?isolang=pt [QSA,L]

RewriteRule ^pt/sitemap$ /shop/sitemap.php?isolang=pt [QSA,L]

RewriteRule ^pt/stores$ /shop/stores.php?isolang=pt [QSA,L]

RewriteRule ^pt/supplier$ /shop/supplier.php?isolang=pt [QSA,L]

RewriteRule ^pt$ /shop/pt/ [QSA,L]

RewriteRule ^pt/([^?&]*)$ /shop/$1?isolang=pt [QSA,L]

</IfModule>

 

# Catch 404 errors

ErrorDocument 404 /shop/404.php

 

<IfModule mod_expires.c>

ExpiresActive On

ExpiresByType image/gif "access plus 1 month"

ExpiresByType image/jpeg "access plus 1 month"

ExpiresByType image/png "access plus 1 month"

ExpiresByType text/css "access plus 1 week"

ExpiresByType text/javascript "access plus 1 week"

ExpiresByType application/javascript "access plus 1 week"

ExpiresByType application/x-javascript "access plus 1 week"

ExpiresByType image/x-icon "access plus 1 year"

</IfModule>

 

FileETag INode MTime Size

<IfModule mod_deflate.c>

AddOutputFilterByType DEFLATE text/html

AddOutputFilterByType DEFLATE text/css

AddOutputFilterByType DEFLATE text/javascript

AddOutputFilterByType DEFLATE application/javascript

AddOutputFilterByType DEFLATE application/x-javascript

</IfModule>

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...