Jump to content

Friendly URLs not working, PS 1.5.2


Recommended Posts

Hello,

 

I'm on a fresh install of PS 1.5.2 and I can't make several things work.

I already reported multi-store functionality not working for me at all, so I desisted for now. I still need this functionality though.

 

Now I can't make friendly URLs work, which can be one of the reason multi-store didn't work (?).

 

mod_rewrite is active on my server, I checked with my hosting company.

Under Preferences, I get the message:

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 activated the option anyway to try.

 

In my htaccess, this line is present: RewriteEngine on

 

I get page-not-found with a nice 404 on Firefox and a page-not-found with a broken page on IE9

 

Please advise.

 

BTW, I'm finding a lot of bugs in PS 1.5.2. Any ideas when 1.5.3 willbe available ?

 

I'm considering PS, OC and even Magento to move my business out from OsCMax; it's looking like troubles with PS so far.

 

Thank you.

Link to comment
Share on other sites

I've been using Friendly URL's but with some issues.

It always gives the warning about mod_rewrite (even if it's switched on) so you can probably assume it is active.

 

Try switching the three options on and off a few times in different sequences and remember to clear your browser cache after each test.

Link to comment
Share on other sites

Hello,

 

 

If you updated from an earlier version or if you already had .htaccess in the folder you need to make sure you .htaccess is not polluted with old and useless stuff.

 

When updating and then regenerating your .htaccess from BO, it only append some stuff at the end, however previous rules you had are useless now and not only they make the new rules not work properly (loop).

 

Make a backup of your .htaccess, and get rid off anything before the 'start'.

 

 

Hope this helps.

 

 

Cheers.

Edited by Muad'Dib (see edit history)
Link to comment
Share on other sites

I have some problem with URL rewrite as well.

 

It kinda works.. In FO switching to second language works ok. Switching back to main language gives 404 error.

 

As we are using ngnix based server, .htaccess has been manually rewritten and our hosting provider say's that this is PRESTASHOP problem, not serverside.

Link to comment
Share on other sites

I switched on and off several times, changed the htaccess (it only had 2 blank lines before start).

Now it kinda works too.

 

It only works with the cat ID before the friendly URL, like 3-ipods for example, which is not what I really need (I don't want the number before the cat name, but I guess this is something I can set somewhere).

 

Newly created root category won't work though. And multi-store is trying to work also, switching it off and on again. But I can't access the alternate shop because its 'friendly' URL won't work either (i.e website.com/folder).

 

Still struggling.

Link to comment
Share on other sites

sebduc, I use Windows Server as well. I was able to translate 1.4 but not 1.5 into url rewrite 2.0. Finally I installed, http://www.heliconte.../isapi_rewrite/ V. 3 and it's great! It uses the .htaccess file directly so no need to import.

I don't install because i have other application and it's not compatible :( i prefer wait prestashop heard this bug...)

Thanks

Link to comment
Share on other sites

Had the same problem and it was definitely the theme I was using,

 

The Doctype is was creating was the wrong one, the theme was creating this

<!doctype html>

and affecting the way the .htaccess file was working,

but should have been this,

 

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">

 

Please try this on a test site before changing any metatags etc,

 

Read more here http://www.alistapar...ticles/doctype/

 

Ps You can see this doctype on this website, view source,

 

http://www.quit-smoking-ecigs.com

 

Using ps 1.5.2.0 and LAMP

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

  • 1 month later...

sebduc, I use Windows Server as well. I was able to translate 1.4 but not 1.5 into url rewrite 2.0. Finally I installed, http://www.heliconte.../isapi_rewrite/ V. 3 and it's great! It uses the .htaccess file directly so no need to import.

 

Hi Bill, is there anything else you need to do to get this working in a windows server environment? Do you need to create any templates on the server or anything or just install this and let the software regenerate the .htaccess file? Or do you need to do anything with that file to get the server to read it? I just did a new install of v 1.5.3.1 and am using the default template for now with the test products and need to get the friendly urls working before I try to import thousands of products and find out it won't work. Here is my server config just FYI.

Server information: Windows NT build 7601 (Windows Server 2008 R2 Web Server Edition Service Pack 1) i586

Server software version: Microsoft-IIS/7.5

PHP version: 5.3.13

 

I think right now all we did was enable the url rewrite that is standard with IIS7 and it's not working at all. I've tried enabling and disabling all three choices in the friendly URL section and none of them work. Images do not show when it's enabled either. The template that was created for the default when this was enabled is this: index.php?id_product={R:1}&controller={R:2}&id_lang={R:3} and I'm not the server admin so I don't know anything about this really but I'm trying to find a fix and any info you could provide would be greatly appreciated.

Link to comment
Share on other sites

  • 5 months later...

Hello,

 

 

If you updated from an earlier version or if you already had .htaccess in the folder you need to make sure you .htaccess is not polluted with old and useless stuff.

 

When updating and then regenerating your .htaccess from BO, it only append some stuff at the end, however previous rules you had are useless now and not only they make the new rules not work properly (loop).

 

Make a backup of your .htaccess, and get rid off anything before the 'start'.

 

 

Hope this helps.

 

 

Cheers.

 

This solution worked for me... however, I must say that I did NOT upgrade or have a previous installation.. this was a fresh install, Yet I had code within my .htaccess file that needed to be removed before this would work.

 

THE FIX:

I removed everything above this section:

 

# ~~start~~ Do not remove this comment, Prestashop will keep automatically the code outside this comment when .htaccess will be generated again

# .htaccess automaticaly generated by PrestaShop e-commerce open-source solution

# http://www.prestashop.com - http://www.prestashop.com/forums

Link to comment
Share on other sites

  • 3 weeks later...

Can anyone please check the post http://www.prestasho...ly-url-enabled/ and suggest what needs to be done?

 

Our system is already has use the legacy image filesystem as no. Also we are using all custom images.

 

Will moving images to new file system help? mod-rewrite is also enabled on our server and URLs are also getting created properly.

 

Images are showing properly in admin panel.

 

Regards,

Abhijeet

Link to comment
Share on other sites

  • 4 weeks later...
  • 2 months later...
×
×
  • Create New...