Jump to content

Notworking page product after use nice url


Recommended Posts

Hi,

Please I have problem with not working page after using function nice url. Front web page working without pictures, but make good "nice url" page for product. After click on this you redirectet to page in "nice url" format and server show "Not found".
I finding on this forum some information about my problem with NICE URL, but all instructions what I find and read not help me.

After I switch on NICE URL I haven´t picture on front page and after click for somethink product server write :

Not Found

The requested URL /prestashop/music-ipods/1-ipod-nano.html was not found on this server.
Apache/2.2.3 (Red Hat) Server at localhost Port 80


I have version 1.2 final (8) and I make .htaccess thru generator and put there only : RewriteBase.

My .htaccess:

URL rewriting module activation
Options +FollowSymlinks
RewriteEngine On
RewriteBase /
URL rewriting rules
RewriteRule ^([a-z0-9]+)\-([a-z0-9]+)(\-[a-zA-Z0-9-]*)/([_a-zA-Z0-9-]*)\.jpg$ /prestashop/img/p/$1-$2$3.jpg [L,E]
RewriteRule ^([0-9]+)(\-[_a-zA-Z0-9-]*)/([_a-zA-Z0-9-]*)\.jpg$ /prestashop/img/c/$1$2.jpg [L,E]
RewriteRule ^([a-zA-Z0-9-]*)/([0-9]+)\-([a-zA-Z0-9-]*)\.html(.)$ /prestashop/product.php?id_product=$2$4 [L,E]
RewriteRule ^([0-9]+)\-([a-zA-Z0-9-])\.html(.)$ /prestashop/product.php?id_product=$1$3 [L,E]
RewriteRule ^([0-9]+)\-([a-zA-Z0-9-])(.)$ /prestashop/category.php?id_category=$1 [QSA,L,E]
RewriteRule ^content/([0-9]+)\-([a-zA-Z0-9-])(.)$ /prestashop/cms.php?id_cms=$1 [QSA,L,E]
RewriteRule ^([0-9]+)_([a-zA-Z0-9-])(.)$ /prestashop/supplier.php?id_supplier=$1$3 [QSA,L,E]
RewriteRule ^([0-9]+)_([a-zA-Z0-9-])(.*)$ /prestashop/manufacturer.php?id_manufacturer=$1$3 [QSA,L,E]
1.Catch 404 errors
ErrorDocument 404 /404.php

I look to php.info and there I see modul mod rewrite (its ON).

When I have NICE URL switch, making from this URL:
http://localhost/prestashop/product.php?id_product=1

this (NICE URL ON):
http://localhost/prestashop/music-ipods/1-ipod-nano.html

but after cklik:

Not Found

The requested URL /prestashop/music-ipods/1-ipod-nano.html was not found on this server.
Apache/2.2.3 (Red Hat) Server at localhost Port 80

Sorry for my english, but if somebody know how to this problem please write me. Thanks

Link to comment
Share on other sites

Hi.
Is there a way for me to modify my .htaccess file, so that urls like http://avemariainspirations.com/content/3-terms-and-conditions-of-use become like this: http://avemariainspirations.com/content/terms-and-conditions-of-use (without the number)
or like this: http://avemariainspirations.com/terms-and-conditions-of-use (without the number and /content tag)?

Link to comment
Share on other sites

  • 3 years 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...