Jump to content

Friendly URL produces page-not-found CMS pages


Recommended Posts

Hello.

My prestashop v1.4.0.13 has only one language in it: English. All the rest I have deleted.
Only the CMS pages seem to be effected:
If I click on the "Informations" title of the CMS block, it brings up:
http://localhost/mywebsite/page-not-found
the link from that click was:
http://localhost/mywebsite/content/category/1-home
same with the cms pages themselves.

If I turn off friendly URL's, the cms pages all work fine but the heading still brings an error.
Ie if I click on the "Informations" title, I get:
http://localhost/mywebsite/404.php
the link from that click was:
http://localhost/mywebsite/cms.php?id_cms_category=1

but the cms pages load fine.
http://localhost/mywebsite/cms.php?id_cms=3

I have regenerate the .htaccess file after changing the friendly URL setting, but that doesnt seem to change anything.
Here is the URL rewriting part.


Any help with this please?

Nik

# URL rewriting rules
RewriteRule ^api/?(.*)$ /mywebsite/webservice/dispatcher.php?url=$1 [QSA,L]
RewriteRule ^([a-z0-9]+)\-([a-z0-9]+)(\-[_a-zA-Z0-9-]*)/[_a-zA-Z0-9-]*\.jpg$ /mywebsite/img/p/$1-$2$3.jpg [L]
RewriteRule ^([0-9]+)\-([0-9]+)/[_a-zA-Z0-9-]*\.jpg$ /mywebsite/img/p/$1-$2.jpg [L]
RewriteRule ^([0-9]+)(\-[_a-zA-Z0-9-]*)/[_a-zA-Z0-9-]*\.jpg$ /mywebsite/img/c/$1$2.jpg [L]
RewriteRule ^([0-9]+)\-[a-zA-Z0-9-]*\.html /mywebsite/product.php?id_product=$1 [QSA,L]
RewriteRule ^([0-9]+)\-[a-zA-Z0-9-]* /mywebsite/category.php?id_category=$1 [QSA,L]
RewriteRule ^[a-zA-Z0-9-]*/([0-9]+)\-[a-zA-Z0-9-]*\.html /mywebsite/product.php?id_product=$1 [QSA,L]
RewriteRule ^([0-9]+)__([a-zA-Z0-9-]*) /mywebsite/supplier.php?id_supplier=$1 [QSA,L]
RewriteRule ^([0-9]+)_([a-zA-Z0-9-]*) /mywebsite/manufacturer.php?id_manufacturer=$1 [QSA,L]
RewriteRule ^content/([0-9]+)\-([a-zA-Z0-9-]*) /mywebsite/cms.php?isolang=$1&id;_cms=$2 [QSA,L]
RewriteRule ^content/category/([0-9]+)\-([a-zA-Z0-9-]*) /mywebsite/cms.php?isolang=$1&id;_cms_category=$2 [QSA,L]
RewriteRule ^lang-([a-z]{2})/([a-zA-Z0-9-]*)/([0-9]+)\-([a-zA-Z0-9-]*)\.html /mywebsite/product.php?id_product=$3&isolang;=$1 [QSA,L]
RewriteRule ^lang-([a-z]{2})/([0-9]+)\-([a-zA-Z0-9-]*)\.html /mywebsite/product.php?id_product=$2&isolang;=$1 [QSA,L]
RewriteRule ^lang-([a-z]{2})/([0-9]+)\-([a-zA-Z0-9-]*) /mywebsite/category.php?id_category=$2&isolang;=$1 [QSA,L]
RewriteRule ^page-not-found$ /mywebsite/404.php [QSA,L]
RewriteRule ^address$ /mywebsite/address.php [QSA,L]
RewriteRule ^addresses$ /mywebsite/addresses.php [QSA,L]
RewriteRule ^authentication$ /mywebsite/authentication.php [QSA,L]
RewriteRule ^best-sales$ /mywebsite/best-sales.php [QSA,L]
RewriteRule ^cart$ /mywebsite/cart.php [QSA,L]
RewriteRule ^contact-us$ /mywebsite/contact-form.php [QSA,L]
RewriteRule ^discount$ /mywebsite/discount.php [QSA,L]
RewriteRule ^order-history$ /mywebsite/history.php [QSA,L]
RewriteRule ^identity$ /mywebsite/identity.php [QSA,L]
RewriteRule ^manufacturers$ /mywebsite/manufacturer.php [QSA,L]
RewriteRule ^my-account$ /mywebsite/my-account.php [QSA,L]
RewriteRule ^new-products$ /mywebsite/new-products.php [QSA,L]
RewriteRule ^order$ /mywebsite/order.php [QSA,L]
RewriteRule ^order-follow$ /mywebsite/order-follow.php [QSA,L]
RewriteRule ^order-slip$ /mywebsite/order-slip.php [QSA,L]
RewriteRule ^password-recovery$ /mywebsite/password.php [QSA,L]
RewriteRule ^prices-drop$ /mywebsite/prices-drop.php [QSA,L]
RewriteRule ^search$ /mywebsite/search.php [QSA,L]
RewriteRule ^sitemap$ /mywebsite/sitemap.php [QSA,L]
RewriteRule ^stores$ /mywebsite/stores.php [QSA,L]
RewriteRule ^supplier$ /mywebsite/supplier.php [QSA,L]

Link to comment
Share on other sites

  • 2 weeks later...
  • 3 weeks later...

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...