PDA

View Full Version : 301 Redirect from Secure to another site


SteveYoung
04-02-2011, 07:41 PM
Wow, it took me so long to work on this the last post expired!

http://www.aota.net/forums/showthread.php?t=24932

I did follow the instructions and was able to redirect the pages I needed to. Easy to do.

From the old website a (IRM) we had links to a secure server on the main site. (no cloaking so within the terms of service)

Now we would like to redirect any visitors and tell the search engines that go to the secure server /catalog area to go to the new site. http://onthestep.com

I thought it would be the following but that does not work.

RewriteRule ^(.*)$ http:/onthestep.com/$1 [L,R=301]

Could it be the fact that I am trying to redirect from a (shared) secure server?

Bob
04-02-2011, 08:18 PM
How about...


redirectMatch 301 ^(.*)$ http:/onthestep.com

SteveYoung
04-02-2011, 08:29 PM
Thank you Bob that did, however the url reads http://onthestep.com/?cPath=21 (that does not exist on the site)

Or wherever I come from in an old link. It does not appear to matter, I can then click on other menu items and all works fine.

I assume the 301 tells the search engines it is permanent.

Bob
04-02-2011, 08:38 PM
In my testing if there is not a "?" following the final / then the Redirect simply takes you to the domain name...

For instance: http://xdomain.merchantquest.net/catalog/help.html
you end up at http://onthestep.com/

However if the URL entered is: http://xdomain.merchantquest.net/catalog/?Cpath=21
Then you end up at http://onthestep.com/?CPath=21

Not sure how to strip the ? to prevent that...

As far as the permanent part I must leave that up to more experienced folks in these areas... Search Engines and me = hair pulling and screaming and massive quantities of beverages... :confuz:

-Bob