| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Edit help.php Section | |||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
![]() We have an old URL, http://www.maperformance.com/help.php?section=about#services, that we don't use any longer. The thing is, I can't even figure out what the content of that page is supposed to be. What I'm trying to do is redirect that URL to a new location, but even putting a standard 301 redirect in our .htaccess file doesn't work. How can I redirect this URL?
|
|||||||
#2
|
|||||||||
|
|||||||||
![]() this url has query string, you can't use standard 301 redirect. You have to use RewriteCond and RewriteRule to redirect it
__________________
Steve Stoyanov CFLSystems.com Web Development |
|||||||||
|
#3
|
|||||||
|
|||||||
![]() Thanks Steve for the direction!
For the record, this is how I did it (in .htaccess): # Redirect old About Us-Services URL RewriteCond %{REQUEST_URI} ^/help.php$ RewriteCond %{QUERY_STRING} ^section=about$ RewriteRule ^(.*)$ http://services.maperformance.com [R=301,L] Unfortunately I couldn't include the hash on the original URL, since that is used for commenting in .htaccess. |
|||||||
|
#4
|
|||||||||
|
|||||||||
![]() This is probably how I would have done it:
Code:
|
|||||||||
|
|||
X-Cart forums © 2001-2020
|