301 Redirect without specifying base domain?
-
Hi guys,
about 10 minutes ago, I finally found the underlying problem in magento between 301 redirects and canonical tags - part of the reason why it was hard to identify was because the problem is not constant through all pages.
Anyway now that I found the problem, I have about 50 301 redirects to implement via .htaccess. Now I know the regular syntax is
Redirect 301 /oldpage.html http://www.yoursite.com/newpage.htmlBut I'm wondering if there's a way that the base domain doesn't have to be specified in the second half of this line. Something like:
Redirect 301 /oldpage.html /newpage.htmlI'm sure this can be done, somehow.
Thanks!
-
Have you tested it with one URL to start?
-
No I haven't tried it because I'm reluctant to try something as important as a 301 redirect without fully understanding it and knowing it will perform as intended.
-
Just to bring closure to this thread, I never found an answer for this and simply ended up using the common syntax for 301 redirects in htaccess.
Redirect 301 /oldpage.html http://www.yoursite.com/newpage.html