Re: Clean URLs in 5.2.5
1 Attachment(s)
Quote:
I had the same problem when upgrading from 5.1.11 to 5.2.6 I made a real simple mod that should do what you are looking to do. Just go to modules and select upload add-on. Upload and install the attached mod. You will have to unzip the Clean_URL_Mod.zip. In that zip is the file Pmall-CleanURL-v5_2_6.tar That is the file to upload. I had to stick the .tar file in a zip because the forum allows zip files but not tars. Hopefully that isn't to confusing. Then you will need to go into the xc_clean_urls table and make sure that all urls have the .html removed. After that you should be ready to go. Let me know if any of that is unclear or if you have any problems. |
Re: Clean URLs in 5.2.5
2 Attachment(s)
Quote:
But it will be automatically appended to product urls after you save the changes. See attached screenshots. |
Re: Clean URLs in 5.2.5
Quote:
But it doesn't seem to be working on X-Cart 5.2.6. I installed and activated the module, but all product URLs still do have HTML extensions. Also, extensions are in the database. Are there any additional action required to make it work? Thanks! |
Re: Clean URLs in 5.2.5
Quote:
The mod won't remove the .html extension. You have to manually remove the .html from the xc_clean_urls. After you remove those extensions from the table. You should be able to redeploy the store, and they should be working. If the .html extensions are still in the table you will get a 404 error. The following sql command should do the trick: UPDATE `xc_clean_urls` SET `cleanURL`=SUBSTRING(`cleanURL`,1,LENGTH(`cleanURL `) - 5) WHERE SUBSTRING(`cleanURL`,-5) = '.html' I assume there is a way to run a sql command during installation of the mod, but I have to admit I'm unsure how to do it. Let me know if this works for you, or if you still have problems. |
Re: Clean URLs in 5.2.5
Quote:
I'll keep you posted. Thanks! |
Re: Clean URLs in 5.2.5
Quote:
Did this work for you? |
Re: Clean URLs in 5.2.5
Quote:
Unfortunately, it didn't work. All pages throw the 'Page not found' error. |
Re: Clean URLs in 5.2.5
Quote:
Did you remove all extensions from the database? If the extensions are there in the clean url table it throws the 404 error. I'm using it on my live 5.2.6 store and it works fine for me. |
Re: Clean URLs in 5.2.5
Quote:
Yes, I removed extenstions from the database. Here is what my clean url table looks like Code:
mysql> select * from xc_clean_urls; |
Re: Clean URLs in 5.2.5
Quote:
Did you go under "look & feel" - "Performance" and clear the cache? |
All times are GMT -8. The time now is 02:18 PM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.