beerbelly123 Posted March 30, 2011 Share Posted March 30, 2011 i am having problems with the CMS pages on 1.4 which are giving page not found errors. works fine without friendly URLs but obviously not wanting to go down the route of having to do 301 redirects on every page in the site or face the wrath of lost page rankings due to duplicate content.every other page apart fron any CMS ones work fine.i tried on a fresh install and an upgrade install same error.also tried creating new cms page but all to no avail.if revert back to backup containing 1.3.7 everything works fine againanyone any ideas??? Link to comment Share on other sites More sharing options...
DanAndrei Posted April 1, 2011 Share Posted April 1, 2011 hi,The problem is in your .htaccess file.You have to modify these linesRewriteRule ^content/([0-9]+)\-([a-zA-Z0-9-]*) /cms.php?isolang=$1&id;_cms=$2 [QSA,L]RewriteRule ^content/category/([0-9]+)\-([a-zA-Z0-9-]*) /cms.php?isolang=$1&id;_cms_category=$2 [QSA,L]with thisRewriteRule ^content/([0-9]+)\-([a-zA-Z0-9-]*) /cms.php?id_cms_category=$1 [QSA,L]RewriteRule ^content/category/([0-9]+)\-([a-zA-Z0-9-]*) /cms.php?id_cms_category=$1 [QSA,L] Link to comment Share on other sites More sharing options...
Simon-AV Posted April 1, 2011 Share Posted April 1, 2011 Just tried this and no change. Clicking on several of the CMS links and all of the perminent blocks links and you just get directed back to the home page? Link to comment Share on other sites More sharing options...
Simon-AV Posted April 1, 2011 Share Posted April 1, 2011 If I turn off freindly URL it works properly, but turn friendly url back on and it doesnt work! Link to comment Share on other sites More sharing options...
Simon-AV Posted April 1, 2011 Share Posted April 1, 2011 FIXED! Tried all of the coded editing fixes that I found and none worked for me so I did the following and it now worksIn Preferences, SEO you see a list of all the CMS pages.The ones that were not working did not have a Friendly URL name automatically inserted.I've manually added the Friendly URLs to each line and regenerated the .htaccess file and its all now working! Ace! Link to comment Share on other sites More sharing options...
beerbelly123 Posted April 2, 2011 Author Share Posted April 2, 2011 thanks to those that helped i managed to find a solution.Not sure why but turning off any module with links to the crm pages then enabling them again then regenerating .htaccess has them up and running again. Link to comment Share on other sites More sharing options...
x3n0m0rph Posted April 5, 2011 Share Posted April 5, 2011 this is so.. not solvednone of this solutions works for me...other ideas?? Link to comment Share on other sites More sharing options...
Afshin Posted April 6, 2011 Share Posted April 6, 2011 I have same problem , any idea ? cms.php doesn't exist in seo part ... Link to comment Share on other sites More sharing options...
x3n0m0rph Posted April 7, 2011 Share Posted April 7, 2011 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] Replace in .htacces and it works Link to comment Share on other sites More sharing options...
Afshin Posted April 7, 2011 Share Posted April 7, 2011 thanks , it works for me // but when I'm using prestashop generator it does not work ... is any way to add this code to automatic prestashop htaccess generator ? Link to comment Share on other sites More sharing options...
x3n0m0rph Posted April 7, 2011 Share Posted April 7, 2011 the generator is overwriting your htaccess so if you regenerate you have to replace the lines again.. Link to comment Share on other sites More sharing options...
x3n0m0rph Posted April 8, 2011 Share Posted April 8, 2011 seems like my htaccess is changing back even if I don`t use the generator. is it normal? Link to comment Share on other sites More sharing options...
VNguyen Posted April 8, 2011 Share Posted April 8, 2011 You need to define friendly URL for each CMS page. Link to comment Share on other sites More sharing options...
ScubaLessonsInc Posted April 12, 2011 Share Posted April 12, 2011 OK.. I updated the friendly url for all the cms pages, all showing.. Then regenerated the htaccess file.. Then I changed the two lines of code and updated the htaccess file.. NOT WORKING STILL!!! I do not any funky modules that are not compliant with 1.4 or that would affect friendly URLs. I see the product items in list view, and I see it in back office, when I click on the "view" button the error is page not found.. what is the dealeo?? SO NOT SOLVED!! HELP PLEASE!!!!! Link to comment Share on other sites More sharing options...
x3n0m0rph Posted April 12, 2011 Share Posted April 12, 2011 You need to define friendly URL for each CMS page. the frendly URL`s are prezent for all cms pages that are not workingother ideas? Link to comment Share on other sites More sharing options...
beerbelly123 Posted April 14, 2011 Author Share Posted April 14, 2011 solutions worked for me originally that why i changed to solved have reopened it again now.retested on fresh install and error came back.what i am finding is previous solutions work ok if multiple languages installed but as soon as it goes to one single language then this error appears. Only way i found to get around if was a single language is to give CMS pages brand new nameegoriginal page = 1-deliverynew page url - 1-1-deliveryi know it not elegant but only real walkround i could findadditional to addif you dont put the original 1-, 2- at start it wont work. so if i put in friendly url (1-delivery, 1-about) which brings page on web to1-1-delivery4-1-aboutboth pages will load to the delivery pageif put in friendly url (1-delivery, 4-about) which brings webpage to1-1-delivery4-4-aboutthen both will goto correct pages. Link to comment Share on other sites More sharing options...
gachamiguero Posted April 14, 2011 Share Posted April 14, 2011 Yo también tuve este problema y lo solucioné. si queréis la solución en español aquí Link to comment Share on other sites More sharing options...
ScubaLessonsInc Posted April 14, 2011 Share Posted April 14, 2011 I have never seen friendly URLs be so difficult.. what a pain, ecspecially with 23,000 products like in my stores. OM Link to comment Share on other sites More sharing options...
pel024 Posted April 15, 2011 Share Posted April 15, 2011 Check out the link above by gachamiguero, htaccess edit worked for me, with only one lang enabled. Link to comment Share on other sites More sharing options...
ScubaLessonsInc Posted April 18, 2011 Share Posted April 18, 2011 Actually found out that I was using _ marks and some periods. Both wont work with friendly URL's and caused my error.. after getting rid of all the symbols and just leaving names, numbers or minus signs - then everything worked perfectly! Link to comment Share on other sites More sharing options...
guest* Posted April 27, 2011 Share Posted April 27, 2011 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] Replace in .htacces and it works It doesn't work for me:It comes an error-page (404) from the server. Link changed instead of cms.php to: /content/3-agb which seems to be correct, but instead of content I get a 404-server page.The .htaccess is also not correct if you have your shop in a subfolder like /shop/ .htaccess only creates the rewrite from /cms.... on and not from /shop/cms....By ammending the sbufolder now I have now error-page, but a blank page with no content ;-((I have only one language, all other are deleted, so I also have no flags for translation on CMS-pageThis modul is the buggiest after all and only a place before homefeatured, which is really bad coded when you want to make adaptions in style... Link to comment Share on other sites More sharing options...
xbfish Posted May 12, 2011 Share Posted May 12, 2011 I resolved by going to BO-> Preferences -> SEO. I give every page a friendly URL except for index.phpNext, I went to Modules tab to disable and re-enabled CMS block. Lastly, I went to Tools -> Generators and generate a new .htaccess file with Friendly URL check-box checked.Hope this works for some of you. Link to comment Share on other sites More sharing options...
VNguyen Posted May 12, 2011 Share Posted May 12, 2011 Yes, re-generating .htaccess solve everything. Cheers. Link to comment Share on other sites More sharing options...
Guest Posted March 12, 2012 Share Posted March 12, 2012 I've tried everything in this thread an nothing worked. I'm using V1.4.7.0 I've found references to this problem all over Google going back serveral versions. This is a really cool cart but WOW the bugs!!! Google 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