If you do not want to identify each page individually and are using the same filenames on the new site as you had on the previous site, you can use redirect all ASP pages (*.ASP) to PHP pages (*.PHP) using:
RedirectMatch (.*)\.asp$ http://www.yourdomain.com$1.php
This is more complicated looking, but simply takes each *.asp link and redirects it to the same file name with the .php extension. The formula can be broken down to show 0 or more characters (=”(.*)\”) which end with an .asp (=”.asp”) extension at the end of the line (=”$”), should be redirected to http://www.yourdomain.com (=”http://www.yourdomain.com”) using the same filename as the found string minus the .asp extension (=”$1″) with a .php extension (=”.php”).
301 Redirect
This entry was posted in Search Marketer, Website Designer and tagged .htaccess, 301 Redirect, Search Engine Optimization, Search Marketing, SEO, WordPress. Bookmark the permalink.
