Welcome to WebmasterWorld Guest from 18.208.159.25

Forum Moderators: Ocean10000 & phranque

Message Too Old, No Replies

how to write .htaccess file?

for 301 redirect

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

Junior Member

10+ Year Member

joined:Nov 30, 2003
posts:126
votes: 0


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.
8:24 pm on July 1, 2004 (gmt 0)

Senior Member

WebmasterWorld Senior Member jdmorgan is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:Mar 31, 2002
posts:25430
votes: 0


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