rudders18 Posted February 10, 2011 Share Posted February 10, 2011 HiCan anyone explain how I get the CMS page links to work with friendly url's enabled. I know I can setup a lot of pages via BO-preferences-SEO but the pages in the CMS block are not listed and everytime I open a bug request saying I think it does not work I get pointed back to the SEO BO page and teh bug is closed.Thanks Link to comment Share on other sites More sharing options...
rudders18 Posted February 10, 2011 Author Share Posted February 10, 2011 HiI have found the problem I have to modfiy these two lines in the .htaccess file from:RewriteRule ^content/([0-9]+)\-([a-zA-Z0-9-]*) /prestashop1412/cms.php?isolang=$1&id;_cms=$2 [QSA,L]RewriteRule ^content/category/([0-9]+)\-([a-zA-Z0-9-]*) /prestashop1412/cms.php?isolang=$1&id;_cms_category=$2 [QSA,L]toRewriteRule ^content/([0-9]+)\-([a-zA-Z0-9-]*) /prestashop1412/cms.php?isolang=$1&id;_cms=$1 [QSA,L]RewriteRule ^content/category/([0-9]+)\-([a-zA-Z0-9-]*) /prestashop1412/cms.php?isolang=$1&id;_cms_category=$1 [QSA,L]The last number 2 had to be a 1.This install is an upgrade from 1.3.6.0Not sure why the wrongnumber should be there, I will investigate further plus I have added comments to my last bug report Link to comment Share on other sites More sharing options...
Paul C Posted February 11, 2011 Share Posted February 11, 2011 I would suggest changing them to: RewriteRule ^content/([0-9]+)\-([a-zA-Z0-9-]*) /cms.php?id_cms=$1 [QSA,L] RewriteRule ^content/category/([0-9]+)\-([a-zA-Z0-9-]*) /cms.php?id_cms_category=$1 [QSA,L] I'm pretty sure the isolang parameter isn't needed.....Paul Link to comment Share on other sites More sharing options...
h4r15 Posted March 30, 2011 Share Posted March 30, 2011 Thank you for the trick. I solved my problem as Paul wrote. Link to comment Share on other sites More sharing options...
Simon-AV Posted April 1, 2011 Share Posted April 1, 2011 tried this on 1.4.0.17 and it does not seem to fix the non functioning CMS Link to comment Share on other sites More sharing options...
EQ10000 Posted April 5, 2011 Share Posted April 5, 2011 In 1.4.0.17 with sample data, after setting the Friendly URL, I got /en/ appended in the url with error 404 Object not found!Error404Apache/2.2.9 Link to comment Share on other sites More sharing options...
Rhobur Posted April 5, 2011 Share Posted April 5, 2011 I'll second that, it happens with default theme, with a 1.3.7 theme all was right. Link to comment Share on other sites More sharing options...
x3n0m0rph Posted April 11, 2011 Share Posted April 11, 2011 is htaccess regenerating himself? I haven`t used the generator, but htaccess is changing back.. Link to comment Share on other sites More sharing options...
guest* Posted April 26, 2011 Share Posted April 26, 2011 tried this on 1.4.0.17 and it does not seem to fix the non functioning CMS Me too. I changed the code, but the cms-page cannot be found. Is there any other hack, which put cms-pages to work again ? Link to comment Share on other sites More sharing options...
bsmooth Posted April 30, 2011 Share Posted April 30, 2011 I don't understand why it keeps getting redirected by the friendly URL to the home page when the cms content exist. Very frustrating. Link to comment Share on other sites More sharing options...
guest* Posted April 30, 2011 Share Posted April 30, 2011 Presta changed too many working navigation basics on version 1.4. but it seems not taking into consideration that many user use only one language. I'm frustrated and angry too with version 1.4.0.17, although I was testing in parallel to my 1.3. the versions 1.4.X. The problems that I'm having now, I didn't have in testphase (each testshop was on an online clone and made always by udating my cloned DB!). I will not update till 1.5. because day by day I'm finding new bugs in my version 1.4.0.17.I'm a merchant and have not enough time for again and again repair things which where working on the version before. Perhaps my post here help you to understand what happens and you can correct your linking. I'm using the changed linking in .htaccess and also made some changes in BO... http://forge.prestashop.com/browse/PSCFI-1697 and here: http://forge.prestashop.com/browse/PSCFI-1670Please also clear smarty cache and browser cache after any change.... Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now