Posts Tagged ‘Redirecting’

Mini Tip #5 301 Redirecting a HTML or PHP Web Page

January 31st, 2010

1) Create a txt file. Name it: htaccess.txt.

2) Copy this code into the htaccess.txt file:

redirect 301 /oldpagename.html http://www.yoursite.com/newpagename.html

Note: be mindful to keep all spaces present as the above is written. You may also redirect html or php.

3) Replace oldpagename.html with your previous page name.

4) Replace http.../newpagename.html with the new page you wish to redirect to.

5) Upload to the root directory of your site.

6) Rename the htaccess.txt file to: .htaccess - with no file extension.

Enter the URL to your old webpage and it should redirect!

All done!