| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
Clean URLs in 5.2.5 | ||||
|
|
Thread Tools | Search this Thread |
#31
|
|||||||
|
|||||||
Re: Clean URLs in 5.2.5
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.
__________________
Ver 5.2.6 |
|||||||
#32
|
|||||||||
|
|||||||||
Re: Clean URLs in 5.2.5
Quote:
But it will be automatically appended to product urls after you save the changes. See attached screenshots.
__________________
Best regards, Igor Pudovkin X-Cart hosting team |
|||||||||
#33
|
|||||||||
|
|||||||||
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!
__________________
Best regards, Igor Pudovkin X-Cart hosting team |
|||||||||
#34
|
|||||||
|
|||||||
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.
__________________
Ver 5.2.6 |
|||||||
#35
|
|||||||||
|
|||||||||
Re: Clean URLs in 5.2.5
Quote:
I'll keep you posted. Thanks!
__________________
Best regards, Igor Pudovkin X-Cart hosting team |
|||||||||
#36
|
|||||||
|
|||||||
Re: Clean URLs in 5.2.5
Quote:
Did this work for you?
__________________
Ver 5.2.6 |
|||||||
#37
|
|||||||||
|
|||||||||
Re: Clean URLs in 5.2.5
Quote:
Unfortunately, it didn't work. All pages throw the 'Page not found' error.
__________________
Best regards, Igor Pudovkin X-Cart hosting team |
|||||||||
#38
|
|||||||
|
|||||||
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.
__________________
Ver 5.2.6 |
|||||||
#39
|
|||||||||
|
|||||||||
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:
__________________
Best regards, Igor Pudovkin X-Cart hosting team |
|||||||||
#40
|
|||||||
|
|||||||
Re: Clean URLs in 5.2.5
Quote:
Did you go under "look & feel" - "Performance" and clear the cache?
__________________
Ver 5.2.6 |
|||||||
|
|||
X-Cart forums © 2001-2020
|