stampy Posted August 30, 2008 Share Posted August 30, 2008 HiChanged htaccess etc, but still can't get the friendly url feature working.An example is: http://www.sentientsolar.co.uk/11-chargersI'm getting "We're sorry, but the Web address you entered is no longer available " message on each category/product.Does anyone know what I'm doing wrong?Thanks in advance.Stampy Link to comment Share on other sites More sharing options...
jtyana Posted August 31, 2008 Share Posted August 31, 2008 Oh, it's the aliens again. The aliens are causing havoc in your part of town %-P Did you enable Friendly URLS in BO/Preferences ? Link to comment Share on other sites More sharing options...
stampy Posted August 31, 2008 Author Share Posted August 31, 2008 Why do the aliens only target my sites?Yes, I enabled the Friendly URLs. It's only when that's enabled that I get the problem. But obviously when it's not enabled my urls are not friendly. Link to comment Share on other sites More sharing options...
jhnstcks Posted August 31, 2008 Share Posted August 31, 2008 Stampy can you post your .htaccess file here please Link to comment Share on other sites More sharing options...
stampy Posted August 31, 2008 Author Share Posted August 31, 2008 Certainly can:# URL rewriting module activationRewriteEngine on# URL rewriting rulesRewriteRule ^([0-9]+)\-([a-zA-Z0-9-]*)\.html(.*)$ product.php?id_product=$1$3 [L,E]RewriteRule ^([0-9]+)\-([a-zA-Z0-9-]*)(.*)$ category.php?id_category=$1 [QSA,L,E]RewriteRule ^([0-9]+)__([a-zA-Z0-9-]*)(.*)$ supplier.php?id_supplier=$1$3 [QSA,L,E]RewriteRule ^([0-9]+)_([a-zA-Z0-9-]*)(.*)$ manufacturer.php?id_manufacturer=$1$3 [QSA,L,E]# Catch 404 errorsErrorDocument 404 /404.php Link to comment Share on other sites More sharing options...
jhnstcks Posted August 31, 2008 Share Posted August 31, 2008 Strange doesnt seem to be anything wrong there.Did you rename your htacces file correctly? Should be .htaccessAlso is it in the right folder. Should be with your php files. Link to comment Share on other sites More sharing options...
stampy Posted August 31, 2008 Author Share Posted August 31, 2008 Yes, it's definately .htaccess. And yes, it's in the root with all the php files.The thing is, the problem is on both of my presta sites, so it must be something I'm doing wrong. Link to comment Share on other sites More sharing options...
jhnstcks Posted August 31, 2008 Share Posted August 31, 2008 Are you using SSL on both sites? HAve you tried disabling it to see if that works? Link to comment Share on other sites More sharing options...
stampy Posted August 31, 2008 Author Share Posted August 31, 2008 Yes I'm using SSL, and I've just tried disabling it but I'm still getting the same problem! Link to comment Share on other sites More sharing options...
jtyana Posted August 31, 2008 Share Posted August 31, 2008 Do you have to enable mod rewriteI don't know what that means but isn't it an apache or php thing that is done in that php.ini thingI don't know anything about that side of life Link to comment Share on other sites More sharing options...
jtyana Posted August 31, 2008 Share Posted August 31, 2008 Here stampyhttp://www.prestashop.com/forums/viewthread/4445/installation_configuration___upgrade/friendly_url_still_doesnt_workYour server has to have mod rewrite enabledHave a look at you php.info and see if it is enabled. If not, call your webhost. Link to comment Share on other sites More sharing options...
stampy Posted August 31, 2008 Author Share Posted August 31, 2008 HiThat was the first thing I checked. My host told me that mod rewrite is enabled as a default.Where is the php.info so that I can check?Thanks for your help. Link to comment Share on other sites More sharing options...
stampy Posted August 31, 2008 Author Share Posted August 31, 2008 Well I found my php_info. All that is in there is:<?phpphpinfo();?> Link to comment Share on other sites More sharing options...
ken Posted August 31, 2008 Share Posted August 31, 2008 Hi StampyYou need to run the phpinfo file. It will then give you your PHP infoPut this into your browserhttp://www.sentientsolar.co.uk/php_info.php(if that is the correct path to the file)then search for mod_rewrite under loaded modules. This will tell you if mod rewrite is enabled on your serverYour site is looking very niceMay I ask how you added your contact details to the header?RegardsKen Link to comment Share on other sites More sharing options...
stampy Posted August 31, 2008 Author Share Posted August 31, 2008 Hi KenThanks for that. I can't find loaded modules or mod_rewrite. I have found url_rewriter.tags which has the value: a=href,area=href,frame=src,input=src,form=,fieldset=I also found: allow_url_fopen which has the value of On.allow_url_include has the value of Off. Could it be this?I added the contact details into blocksearch-header.tpl in blocksearch. Thanks,Stampy Link to comment Share on other sites More sharing options...
ken Posted August 31, 2008 Share Posted August 31, 2008 Hi Stampy.I am no expert but I don’t see that mod_rewrite is enabledThere is a test you can run herehttp://www.wallpaperama.com/forums/how-to-test-check-if-mod-rewrite-is-enabled-t40.htmlYou may also need to add "RewriteBase” under "RewriteEngine On" in htaccess.If this does not work then I suggest you contact your host.Thank You for the Info.RegardsKen. Link to comment Share on other sites More sharing options...
stampy Posted September 1, 2008 Author Share Posted September 1, 2008 Hi KenThanks a lot for that. I've double checked, and mod_rewrite is enabled. I'm still convinced it must be something to do with my host though, as I've got the same issue on two sites. Link to comment Share on other sites More sharing options...
ken Posted September 1, 2008 Share Posted September 1, 2008 Hi StampyI still do not see the mod_rewrite module loaded into apache server (or FollowSymLinks)Send your htaccess file to your host and ask them why it is not workingPS.The header mod to display the contact details works great, however the 'br' in the text is causing validation errors. should be escaped with RegardsKen. Link to comment Share on other sites More sharing options...
Recommended Posts