| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
Clean Url settings | ||||
|
|
Thread Tools | Search this Thread |
#11
|
|||||||||
|
|||||||||
Re: Clean Url settings
Good to see you worked it out. It was the dot in (\.(\/|htm|html)) - that's what happens when I don't pay much attention
By the way you can try RewriteRule ^((([/_a-z0-9-]+)/)?([_a-z0-9-]+)/)?([_a-z0-9-]+)(\/|(\.(htm|html)))?$ cart.php?url=$5&last=$4&rest=$3&ext=$7 [NC,L,QSA] just to keep the original as well
__________________
Steve Stoyanov CFLSystems.com Web Development |
|||||||||
|
#12
|
|||||||
|
|||||||
Re: Clean Url settings
Quote:
__________________
Ver 5.2.6 |
|||||||
#13
|
|||||||
|
|||||||
Re: Clean Url settings
I'm close to having this the way that I want it to work. I have it only showing the clean url for the categories you are in just fine, but when you go to a product page it shows the last category you came from to get to the product. It is fine if you come from the home page because it is not a category page so it shows only the product clean url. Below is the code from my converter.php. Any ideas or suggestions?
Code:
__________________
Ver 5.2.6 |
|||||||
#14
|
|||||||
|
|||||||
Re: Clean Url settings
Got it. Here is the final code if anyone else is interested in doing this.
Code:
__________________
Ver 5.2.6 |
|||||||
|
#15
|
|||||||
|
|||||||
Re: Clean Url settings
Hi,
In X-Cart 5.1.3, when Auto generating the Clean URL by default spaces are replaced with "_" underscore. Is there any configuration setting in X-Cart 5 to change the default auto generation of clean URL to "-" hyphen ? Thanks in Advance!
__________________
Vanaja |
|||||||
#16
|
|||||||||
|
|||||||||
Re: Clean Url settings
Hello Vanaja,
The "-" is the default character for URL rewrites, but it might be changed in your configuration file. Please check what value is specified for the "default_separator" setting in your [xc5]/etc/config.php file. ------- UPDATE: I've just realized that you use the 5.1.3 version. This version is outdated and may have no such a setting in the configuration file. Why don't you upgrade to the most recent 5.1.9?
__________________
Alex Solovev, Qualiteam --- User manual Video tutorials X-Cart FAQ You are welcome to press "Thanks" button if you find this post useful Click here to learn how to apply patches X-Cart Extensions Last edited by qualiteam : 12-18-2014 at 11:40 PM. |
|||||||||
|
#17
|
|||||||
|
|||||||
Re: Clean Url settings
Hi there,
I have upgraded X Cart version to 5.1.9. But still facing an issue with Clean URL generation. I want my clean urls spaces to be separated by hyphen (-) instead of underscore (_). I have set "default_separator" value to "-" in [xc5]/etc/config.php file. I have checked the core files and found that '_' is the default separator is static in the below code. In this file [xc5]/var/run/classes/XLite/Core/ConverterAbstract.php, check the below line. '_' => '32,47,92,172,173,8211', # Replace spaces/slashes by the $subst_symbol('_' by default) Can anyone check this and let me know the solution for this problem? Thanks!
__________________
Vanaja |
|||||||
#18
|
|||||||||
|
|||||||||
Re: Clean Url settings
Hi Vanaja,
I'll check this with the XC5 developers. Thanks!
__________________
Alex Solovev, Qualiteam --- User manual Video tutorials X-Cart FAQ You are welcome to press "Thanks" button if you find this post useful Click here to learn how to apply patches X-Cart Extensions |
|||||||||
#19
|
|||||||||
|
|||||||||
Re: Clean Url settings
Hi Vanaja!
Judging by the code, the correct replacement should happen, but it does not. Please, report this bug into bt.x-cart.com.
__________________
Found a bug in X-Cart? Post it to our bug tracker! Know how to make X-Cart better? Suggest an idea! |
|||||||||
|
|||
X-Cart forums © 2001-2020
|