Forum Moderators: phranque

Message Too Old, No Replies

301 Permanent Redirect Info. Please Help

Anyone with knowledge on 301 Redirects please read.

         

ford94cobra

5:04 pm on Mar 6, 2004 (gmt 0)

10+ Year Member



I am trying to implement a 301 permanent redirect on my server. It is an Apache Server and below is the Syntax that i currently have in my .htaccess file. Can someone please show me how i can implement the permanent 301 technique to allow me to redirect www.hubcaps.tv to redirect to www.hubcapnation.com if needed they are both index.htm pages. Any help would be greatly appreciated.

# -frontpage-

IndexIgnore .htaccess */.?* *~ *# */HEADER* */README* */_vti*

<Limit GET POST>
order deny,allow
deny from all
allow from all
</Limit>
<Limit PUT DELETE>
order deny,allow
deny from all
</Limit>
AuthName www.hubcaps.tv
AuthUserFile /www/hubcaps/_vti_pvt/service.pwd
AuthGroupFile /www/hubcaps/_vti_pvt/service.grp

madman21

11:19 am on Mar 7, 2004 (gmt 0)

10+ Year Member



This is how I do it.

RewriteEngine On

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

I'm no expert but it works for me :)

bill

12:42 am on Mar 8, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



...or you could use something like this:
RedirectPermanent /old-page.htm htt*://example.com/new-page.html