Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

.htaccess redirect

Status
Not open for further replies.

waytech2003

Programmer
Joined
Jul 14, 2003
Messages
316
Location
US
I have a website hosted on a remote server that has Frontpage server ext installed. It also has PHP available. Recently I moved all of the *.htm files into a sub directory, except for my index.php start page.

My problem is the old pages were listed in Google and now they can not be found. I get my Not Found page, which is notfound.html. I am tring to edit my .htaccess file to do a redirect. Below is a example of my htaccess file. (Note: I know nothing about how an .htaccess file works.)

====================================
Redirect 301 /ymca.htm
# -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>

====================================

From what I have been told, this should redirect the old /ymca.htm to the new /default/ymca.htm but is does not.

Is there something I am doing wrong.

Wayne
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top