Jump to content

Friendly URL not working


Recommended Posts

I freshly installed 1.5.6.2, friendly URL doesn't work, it says: URL rewriting (mod_rewrite) is not active on your server, or it is not possible to check your server configuration. If you want to use Friendly URLs, you must activate this mod.

I read "solved" topics on this subject but it solved nothing for me as well as for bunch of other people as I can see. I have spent so much time making the shop visually look nice and I would hate to throw all that away but I constantly keep encountering things like this? Is there an end to it? 

Is there a way to solve this? I read about this CGI problem and honestly I don't know what CGI is and I don't wanna know, I see it's there on my webhosting and that's all. What I want to know is if this can be made to work properly or not and if answer is not, who do I have to pay and how much to make it miraculously work. Thanks.

  • Like 2
Link to comment
Share on other sites

hello

if you turn on friendly urls (you've got possibility?) does it work?

im asking about that because i know many servers, where scripts haven't got rights to check availability of installed mods, like mod_rewrite - so in effect, script displays message that mod_rewrite isn't available.

 

it's worth to check it.

Link to comment
Share on other sites

hello

if you turn on friendly urls (you've got possibility?) does it work?

im asking about that because i know many servers, where scripts haven't got rights to check availability of installed mods, like mod_rewrite - so in effect, script displays message that mod_rewrite isn't available.

 

it's worth to check it.

I can turn it on but then webpage doesn't load.

Link to comment
Share on other sites

Anyone with a solution to this issue yet?

 

When i activate friendly url under Preferences separator_breadcrumb.png SEO & URLs, product images from home page no longer appear.

Links do not work any more!

However the friendly url works perfectly on my localhost server (on my computer)

When i install prestashop with my web hosts, freindly url does not work.

I have modified .htaccess severally

 

Somebody please help

I see this bug has been on for a while.

 

Cheers!

Link to comment
Share on other sites

Anyone with a solution to this issue yet?

 

When i activate friendly url under Preferences separator_breadcrumb.png SEO & URLs, product images from home page no longer appear.

Links do not work any more!

However the friendly url works perfectly on my localhost server (on my computer)

When i install prestashop with my web hosts, freindly url does not work.

I have modified .htaccess severally

 

Somebody please help

I see this bug has been on for a while.

 

Cheers!

 

Try this:

- Disable friendly URL

- Enable force compile

- Delete all cache with the option Clear Smarty cache & Autoload cache in performance

- Disable force compile

- Enable friendly URL

Link to comment
Share on other sites

Try this:

- Disable friendly URL

- Enable force compile

- Delete all cache with the option Clear Smarty cache & Autoload cache in performance

- Disable force compile

- Enable friendly URL

Just installed and re-installed a fresh 1.5.6.2 version of Prestashop with all the default settings on localhost: no problem...as long as I don't enable Friendly URL.

If I unable them I got a page not found 404 no mater what I visit. Tried clear cache and all the other tricks (like the previous post) found on the many threads about this problem, but nothing works for me (except disabling Friendly URLs).

The URL are rewritten properly (xxx.com/en/ instead of xxx.com/index.php?id_lang=1).

Mod rewrite is enabled and work on another local (Concrete5) website so I'm at lost after reading all those posts without any solution???

I use Wamp server localy with Apache 2.2.4, MySQL 5.6.12, PHP 5.4.16

It seems impossible that something that basic doesn't work out of the box, can someone help me find out what is wrong with my config?

Link to comment
Share on other sites

Just installed and re-installed a fresh 1.5.6.2 version of Prestashop with all the default settings on localhost: no problem...as long as I don't enable Friendly URL.

When you say you have all the default settings, have you made any changes since the fresh install to either (a) any setting in the Preferences->SEO & URLs page (except the Set shop URL section); or ( B) your .htaccess file?

Is your clean install just connected to the default database or have you imported the database from a previous store?

Thanks, Dave

 

Edit: hmm, that emoticon was supposed to be the letter 'b' between brackets!

Edited by stottycabanas (see edit history)
Link to comment
Share on other sites

When you say you have all the default settings, have you made any changes since the fresh install to either (a) any setting in the Preferences->SEO & URLs page (except the Set shop URL section); or ( B) your .htaccess file?

Is your clean install just connected to the default database or have you imported the database from a previous store?

Thanks, Dave

 

Edit: hmm, that emoticon was supposed to be the letter 'b' between brackets!

The SEO preference were the standard one, no changes and I didn't touch the .htaccess either. It's a fresh install, just trying Presta for the first time so also no database import.

The only thing that might be nonstandard is my country as asked during installation, it's China while the site language is English. BTW I'm confused by the country vs language settings, what language should I set for the server if it's going to be a multilingual site? Similarly what to set for the website country and why if my clients are Chinese and French, my company from HongKong and hosting in US? :huh:

Thanks for your kind help, Franck  :)

Edited by flugue (see edit history)
Link to comment
Share on other sites

Just made a new install will ALL parameters as default including language and still the same: The default example work fine until I enable Friendly URL where I get, for the ipod page:

The requested URL /3-music-ipods was not found on this server.

Is there a way to debug Prestashop? Apache and PHP logs don't show any problems.

 

 Franck

Link to comment
Share on other sites

Hi Franck, I've just done the same as you - fresh install of 1.5.6.2 to my localhost. With Friendly URLs off, selecting the iPods in front office generated this URL: http://localhost:85/TEST-1562/index.php?id_category=3&controller=category&id_lang=1

I then switched Friendly URLs on, selected iPods again in front office & got this URL: http://localhost:85/TEST-1562/en/3-music-ipods

In both cases, the iPods page displayed normally.

I can't explain why in your case there is an error message. BTW did you edit the error message, because '/3-music-ipods' isn't a full URL - unless PS uses an abbreviated version in the message?

You said you have mod_rewrite enabled, but maybe there is something else in your php.ini settings that could have an impact, but I'm guessing really.

Sorry I can't be of much help on this one.

As for languages, set the default for your store to the language used by the majority of your customers. People who use other languages can select from the list you offer on your homepage.

Cheers, Dave

Link to comment
Share on other sites

Thanks Dave for reminding me to check in the config settings of my server.

For mod-rewrite to work, the following 2 directives must be set on the root folder of the website. 

 

<Directory "my-presta-root-path">
Options FollowSymLinks
AllowOverride All
</Directory>
 
After updating my httpd-vhosts.conf, Friendly URL now work fine  :)
Link to comment
Share on other sites

  • 2 weeks later...

Hi, I hope someone can help me.

 

I've created empty .htaccess with chmod 666. If I enable url-rewrite give me 404 error and there's nothing I can do.

I don't remember how, but manually  I've created one working but not writable (chmod 444) .htaccess file, but if I want make some change it's not possible.

 

How can I do to have url-rewrite working?

 

Tanks

Link to comment
Share on other sites

 

Thanks Dave for reminding me to check in the config settings of my server.

For mod-rewrite to work, the following 2 directives must be set on the root folder of the website. 

 

<Directory "my-presta-root-path">
Options FollowSymLinks
AllowOverride All
</Directory>
 
After updating my httpd-vhosts.conf, Friendly URL now work fine  :)

 

Can you go into more detail on this? 

Link to comment
Share on other sites

Can you go into more detail on this? 

In Apache doc on mod_rewrite I found this:

Per-directory Rewrites
  • The rewrite engine may be used in .htaccess files and in <Directory> sections, with some additional complexity.
  • To enable the rewrite engine in this context, you need to set "RewriteEngine On" and "Options FollowSymLinks" must be enabled. If your administrator has disabled override ofFollowSymLinks for a user's directory, then you cannot use the rewrite engine. This restriction is required for security reasons.

I am having a few website on the server, each in a separate sub tree, maybe that's the reason I needed to enable those settings. Now it works fine.

Link to comment
Share on other sites

  •  .htaccess files and in <Directory> sections, with some additional complexity.

  • To enable the rewrite engine in this context, you need to set "RewriteEngine On" and "Options FollowSymLinks" must be enabled. If your administrator has disabled override ofFollowSymLinks for a user's directory, then you cannot use the rewrite engine. This 

 

followsymlinks option works a bit different, and you can use friendly urls even if this option is disabled

Link to comment
Share on other sites

Hi, can I send you my htaccess to control?

 

www.sewshop.eu

 

this is one in root of hosting:

>>

<IfModule mod_rewrite.c>
# URL rewriting module activation
RewriteEngine on
 
<Directory "public_html">
           Options FollowSymLinks
           AllowOverride All
</Directory>
<<
other in /public_html/
Link to comment
Share on other sites

I managed my first Prestashop but having trouble with the second one. I've tried with new .htaccess and emptying the cache several time. Can multi-language set a barrier ?

 

 

WebRep
 
currentVote
 
 
noRating
noWeight
 
 
 
 
 
 
 
 
 
 
 
Link to comment
Share on other sites

Hi, tanks for your answer, actually I've only 1 language active and there's nothing I can do to have friendly-url working with htaccess generated by ps. Empty cache by bo and manually regenerate htaccess not works, the only way to have friendly-url working  is 1 htaccess copied and adapted with chmod 444 to avoid change.

 

regards, marco

Link to comment
Share on other sites

  • 2 months later...
  • 1 year later...

hello

if you turn on friendly urls (you've got possibility?) does it work?

im asking about that because i know many servers, where scripts haven't got rights to check availability of installed mods, like mod_rewrite - so in effect, script displays message that mod_rewrite isn't available.

 

it's worth to check it.

hello

i have big problem with url frindly when i active it , i receved error 404 for my cms page and blog .

can u help me to solve it?

Link to comment
Share on other sites

×
×
  • Create New...