Jump to content

No sucess using Friendly URLs


Recommended Posts

I´m new to Prestashop and have been exploring its features for the past few days on my local Apache server. One issue that I´m having is the Friendly URLs, which is not working for me.


I have mod_rewrite enabled on the server, and I know it´s working since I have another site using rewrites on my local server, and that site is working fine.


I have a virtualhost diretive for Prestashop, looking like this:


<VirtualHost *:80>
   ServerAdmin [email protected]
   DocumentRoot "C:/Program Files (x86)/Apache Software Foundation/Apache2.2/htdocs/prestashop"
   ServerName dev.apache.se
   ServerAlias www.dev.apache.se
   ErrorLog "logs/dev.prestashop.se-error.log"
   CustomLog "logs/dev.prestashop.se-access.log" common
   RewriteLog "logs/dev.prestashop.se-rewrite.log"
   RewriteLogLevel 3

<Directory "C:/Program Files (x86)/Apache Software Foundation/Apache2.2/htdocs/prestashop>
 RewriteEngine On
 RewriteOptions Inherit
 Order allow,deny
 Allow from all



When I access my shop with Friendly URLs activated, the first thing i notice is that all product pictures are missing. And whatever link I click that has a friendly URL, I just get a 404.


Example of Prestashop generated rewrite from the htaccess for products:


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

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


If I try to access a link like


I get a 404.


This is with webadress settings:

Catalog = /

Domain = dev.apache.se

Friendly URL and Canonical URLs activated


Any suggestions on how to proceed?

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