View Single Post
Old 11-27-2009, 06:12 PM  
Killswitch - BANNED FOR LIFE
Guest
 
Posts: n/a
Quote:
Originally Posted by EthnicLover View Post
The first page for the Google search is this:

http://www.webweaver.nu/html-tips/web-redirection.shtml

It gives the same example that I wrote in this thread for redirecting a single/individual page:

Redirect 301 /oldpage.html http://www.example.com/newpage.html

I am changing all html files to php but a lot of the new files are named differently. For example:

8thstreetlatinas.html to 8th-street-latinas.php

Therefore should I use the initial example I used which seems to be the same as the one above?

Thanks.
You can do regex to redirect from .html to .php but for the renamed files, you'll have to put them in like you currently do.

Regex version is
Redirect 301 /(.*).html http://www.example.com/$1.php
  Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote