Forum Moderators: phranque

Message Too Old, No Replies

how to write .htaccess file?

for 301 redirect

         

Navdeep

1:36 am on Jul 1, 2004 (gmt 0)

10+ Year Member



hi all,
i want to redirect some of my pages those are on first page of google and yahoo, to the upgraded URLs. i think 301 is the safest option.
please help me with method to write .htaccess file to redirect these pages and where to place this file for implementing the redirect.

jdMorgan

8:24 pm on Jul 1, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Navdeep,

Try searching WebmasterWorld for "Redirect 301" [google.com] and "RedirectMatch 301" [google.com] (use the quotes) -- there are many, many examples of 301 redirects posted here.

Alternately, check out mod_alias and mod_rewrite in the Apache modules documentation [httpd.apache.org].

Jim