| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
301 Redirect not working in HTACCESS file | ||||
|
|
Thread Tools | Search this Thread |
#11
|
|||||||
|
|||||||
Re: 301 Redirect not working in HTACCESS file
Thank you, that worked...
I actually went to the page and noticed that by default after clicking on the link after finding it during an on page search I got this: https://www.naturalbathbody.com/apollon-shaving-gel.html?category_id=24 I then added the '?category_id=24' to the 301 redirect statement and then it worked. So I assume your idea of putting in the product id number would also work. thank you so much for you help, very much appreciated, Marc W.
__________________
Marc Washburn www.EverythingGraphic.com Running four successful X-cart 5.3.x installations and one 5.4.x |
|||||||
#12
|
|||||||||
|
|||||||||
Re: 301 Redirect not working in HTACCESS file
You don't want to do this really. The way XC adds this extra to the html url is really ugly and I wouldn't want my urls indexed like that. Use the target=product version instead so you can get a clean html url.
__________________
Steve Stoyanov CFLSystems.com Web Development |
|||||||||
#13
|
|||||||
|
|||||||
Re: 301 Redirect not working in HTACCESS file
If you want to simplify your life, there is a pretty good redirect module for XC5. I've been using it, I like it.
__________________
X-Cart 5.4.1.39 Live PHP 7.4.33 5.5.5-10.3.38-MariaDB MariaDB Apache 2.4 CENTOS 7.8 64Bit Single Quad-Core E3-1241v3 3.4Ghz 8M 1600 w/ HT 32GB RAM 2x 512GB Samsung 850 Pro SSD RAID 1 |
|||||||
#14
|
|||||||||
|
|||||||||
Re: 301 Redirect not working in HTACCESS file
Quote:
I guess the product is added to a number of categories at the same time, that's why XC5 adds an extra param to track which category you came from to the page. It should work without the category_id param as well (moreover, the "canonical" meta tag has no the parameter). But what Steve says is a different thing. He advises you not to add product_id to the tail of your clean URL, but replace "appolon-shaving-gel.html" with the non-cleanURL version (?target=product&product_id=...). This makes sense as after all rewrites the script works with this version of the URL anyway. Quote:
I guess you mean this third-party module: http://market.x-cart.com/addons/xcart-redirects-by-Nova-Horizons.html
__________________
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 |
|||||||||
|
|||
X-Cart forums © 2001-2020
|