davidly Posted April 28, 2011 Share Posted April 28, 2011 hi friends,don't whether you have encounter the similar problem when you turn on Friendly URL at prestashop:I am using the current Version of prestashop 1.4.1.0. When the Friendly URL is turned on, the category and product display is fine, for example, http://www.example.com/product.php?id_product=1 to http://www.example.com/music-ipods/1-ipod-nano.html.however, this is not the case for some other URLs such as my-account.php: a URL before friendly url is http://www.example.com/my-account.php, and after it is turned on, the URL became: http://www.example.com/my-account, but the page is a 404 error.The same issue goes to http://www.example.com/new-products, http://www.example.com/prices-drop, etc, they all show a 404 error. Can anybody help please?thanks! Link to comment Share on other sites More sharing options...
davidly Posted April 29, 2011 Author Share Posted April 29, 2011 nobody can help on this forum? Link to comment Share on other sites More sharing options...
guysmiley43 Posted July 16, 2011 Share Posted July 16, 2011 Hi Davidly, Did you ever get this issue fixed? It's occurring in my site too. I'm using version 1.4.1 Link to comment Share on other sites More sharing options...
fitgura Posted July 16, 2011 Share Posted July 16, 2011 Hi Fellaz!Maybe you did not set the next thingGo to settings tab in the admin and see the "Meta-tags" submenu!!! Link to comment Share on other sites More sharing options...
guysmiley43 Posted July 17, 2011 Share Posted July 17, 2011 Hi fitgura, Thanks for your reply. As far as I can tell everything is properly set. Please see image attachment. Am I missing anything?Regards. Link to comment Share on other sites More sharing options...
fitgura Posted July 17, 2011 Share Posted July 17, 2011 If evrything is filled correctly then you should see your .htaccess file!See my for example: # .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# URL rewriting module activationRewriteEngine on# URL rewriting rulesRewriteRule ^api/?(.*)$ /webservice/dispatcher.php?url=$1 [QSA,L]RewriteRule ^([a-z0-9]+)\-([a-z0-9]+)(\-[_a-zA-Z0-9-]*)/[_a-zA-Z0-9-]*\.jpg$ /img/p/$1-$2$3.jpg [L]RewriteRule ^([0-9]+)\-([0-9]+)/[_a-zA-Z0-9-]*\.jpg$ /img/p/$1-$2.jpg [L]RewriteRule ^([0-9]+)(\-[_a-zA-Z0-9-]*)/[_a-zA-Z0-9-]*\.jpg$ /img/c/$1$2.jpg [L]RewriteRule ^([0-9]+)\-[a-zA-Z0-9-]*\.html /product.php?id_product=$1 [QSA,L]RewriteRule ^([0-9]+)\-[a-zA-Z0-9-]* /category.php?id_category=$1 [QSA,L]RewriteRule ^[a-zA-Z0-9-]*/([0-9]+)\-[a-zA-Z0-9-]*\.html /product.php?id_product=$1 [QSA,L]RewriteRule ^([0-9]+)__([a-zA-Z0-9-]*) /supplier.php?id_supplier=$1 [QSA,L]RewriteRule ^([0-9]+)_([a-zA-Z0-9-]*) /manufacturer.php?id_manufacturer=$1 [QSA,L]RewriteRule ^content/([0-9]+)\-([a-zA-Z0-9-]*) /cms.php?id_cms=$1 [QSA,L]RewriteRule ^content/category/([0-9]+)\-([a-zA-Z0-9-]*) /cms.php?id_cms_category=$1 [QSA,L]RewriteRule ^lang-([a-z]{2})/([a-zA-Z0-9-]*)/([0-9]+)\-([a-zA-Z0-9-]*)\.html /product.php?id_product=$3&isolang;=$1 [QSA,L]RewriteRule ^lang-([a-z]{2})/([0-9]+)\-([a-zA-Z0-9-]*)\.html /product.php?id_product=$2&isolang;=$1 [QSA,L]RewriteRule ^lang-([a-z]{2})/([0-9]+)\-([a-zA-Z0-9-]*) /category.php?id_category=$2&isolang;=$1 [QSA,L]RewriteRule ^404-hiba$ /404.php [QSA,L]RewriteRule ^cim$ /address.php [QSA,L]RewriteRule ^cimek$ /addresses.php [QSA,L]RewriteRule ^hitelesites$ /authentication.php [QSA,L]RewriteRule ^top-termekek$ /best-sales.php [QSA,L]RewriteRule ^kosar$ /cart.php [QSA,L]RewriteRule ^kapcsolat$ /contact-form.php [QSA,L]RewriteRule ^kedvezmeny$ /discount.php [QSA,L]RewriteRule ^fizetes-regisztracio-nelkul$ /guest-tracking.php [QSA,L]RewriteRule ^vasarlasi-elozmenyek$ /history.php [QSA,L]RewriteRule ^azonositas$ /identity.php [QSA,L]RewriteRule ^nyito-oldal$ /index.php [QSA,L]RewriteRule ^gyartok$ /manufacturer.php [QSA,L]RewriteRule ^fiokom$ /my-account.php [QSA,L]RewriteRule ^uj-termekek$ /new-products.php [QSA,L]RewriteRule ^rendelesem$ /order.php [QSA,L]RewriteRule ^rendeles-kovetes$ /order-follow.php [QSA,L]RewriteRule ^gyors-rendeles$ /order-opc.php [QSA,L]RewriteRule ^rendelesi-papirok$ /order-slip.php [QSA,L]RewriteRule ^elfelejtett-jelszo$ /password.php [QSA,L]RewriteRule ^akcios-termekek$ /prices-drop.php [QSA,L]RewriteRule ^kereses$ /search.php [QSA,L]RewriteRule ^oldalterkep$ /sitemap.php [QSA,L]RewriteRule ^uzleteink$ /stores.php [QSA,L]RewriteRule ^beszallitok$ /supplier.php [QSA,L]# Catch 404 errorsErrorDocument 404 /404.php 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"FileETag INode MTime Size AddOutputFilterByType DEFLATE text/html AddOutputFilterByType DEFLATE text/css AddOutputFilterByType DEFLATE text/javascript AddOutputFilterByType DEFLATE application/javascript AddOutputFilterByType DEFLATE application/x-javascript you must find your revrited rules like thisRewriteRule ^new-product$ /new-products.php [QSA,L] Link to comment Share on other sites More sharing options...
guysmiley43 Posted July 17, 2011 Share Posted July 17, 2011 Here's how my htaccess file looks like. I didn't change anything from what the system generated. What I find weird is it seems to work fine for password-recovery, contact-us, manufacturers, but doesn't for new-products, my-account, best-sales, etc. For some links, I already removed the friendly url just to get it to work but it'd be better to get to the bottom of things. Thanks for your inputs.# .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# URL rewriting module activationRewriteEngine on# URL rewriting rulesRewriteRule ^api/?(.*)$ /shop/webservice/dispatcher.php?url=$1 [QSA,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/c/$1$2.jpg [L]RewriteRule ^([0-9]+)\-[a-zA-Z0-9-]*\.html /shop/product.php?id_product=$1 [QSA,L]RewriteRule ^([0-9]+)\-[a-zA-Z0-9-]* /shop/category.php?id_category=$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-]*) /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 ^page-not-found$ /shop/404.php [QSA,L]RewriteRule ^address$ /shop/address.php [QSA,L]RewriteRule ^addresses$ /shop/addresses.php [QSA,L]RewriteRule ^best-sales$ /shop/best-sales.php [QSA,L]RewriteRule ^cart$ /shop/cart.php [QSA,L]RewriteRule ^contact-us$ /shop/contact-form.php [QSA,L]RewriteRule ^discount$ /shop/discount.php [QSA,L]RewriteRule ^guest-tracking$ /shop/guest-tracking.php [QSA,L]RewriteRule ^order-history$ /shop/history.php [QSA,L]RewriteRule ^identity$ /shop/identity.php [QSA,L]RewriteRule ^manufacturers$ /shop/manufacturer.php [QSA,L]RewriteRule ^new-products$ /shop/new-products.php [QSA,L]RewriteRule ^order$ /shop/order.php [QSA,L]RewriteRule ^order-follow$ /shop/order-follow.php [QSA,L]RewriteRule ^quick-order$ /shop/order-opc.php [QSA,L]RewriteRule ^order-slip$ /shop/order-slip.php [QSA,L]RewriteRule ^password-recovery$ /shop/password.php [QSA,L]RewriteRule ^prices-drop$ /shop/prices-drop.php [QSA,L]RewriteRule ^sitemap$ /shop/sitemap.php [QSA,L]RewriteRule ^supplier$ /shop/supplier.php [QSA,L]# Catch 404 errorsErrorDocument 404 /shop/404.php 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"FileETag INode MTime Size AddOutputFilterByType DEFLATE text/html AddOutputFilterByType DEFLATE text/css AddOutputFilterByType DEFLATE text/javascript AddOutputFilterByType DEFLATE application/javascript AddOutputFilterByType DEFLATE application/x-javascript Link to comment Share on other sites More sharing options...
fitgura Posted July 18, 2011 Share Posted July 18, 2011 As I see your shop installed in the yourdomain.com/shop/ folderYou should enable and set up the module name canonical url to www.yoursite.com/shop 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