Forum Moderators: phranque

Message Too Old, No Replies

Redirecting (301) from old urls to new urls

         

CainIV

5:21 am on Aug 11, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hi guys, I am looking for help in redirecting old url's to new urls. In my case, I need to move a webstore from a directory to root, so i need to redirect in this fashion:

[someurl.com...]

to

[someurl.com...]

and here is my current htaccess code:

RewriteEngine On
RewriteCond %{HTTP_HOST} ^someurl\.com
RewriteCond %{SERVER_PORT}!443
RewriteRule (.*) [someurl.com...] [R=301,L]

Much appreciated for any help

Todd

jdMorgan

6:26 pm on Aug 11, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



To get started, see the documents cited in our forum charter [webmasterworld.com] and the tutorials in the Apache forum section of the WebmasterWorld library [webmasterworld.com].

Jim