If you want to redirect your web pages without penalizing them in search engines you should use a 301 Server Redirect. But you don't need server programming to set one up, just a simple text file on your Apache web server.
If you don't have a
.htaccessfile in your root directory, open a new text file. If you do have one there, open it for editing.
Note: before you give up looking for your
.htaccessfile, you should make sure that you are viewing hidden files on your server. Also note that the
.htaccessfile starts with a period (.), and is not just called “htaccess”.
At the end of the file, add the line:
Redirect 301 /PATH_TO_REDIRECT NEW_LOCATION_URI
/PATH_TO_REDIRECTto the directory path on your web server you want redirected.
NEW_LOCATION_URIto the URL path you want the pages redirected to.
.htaccessfile and upload it to the root of your web server.
Test your redirect by going to the old path in a web browser. You should be taken automatically to the new path.
Always use 301 redirects rather than meta refresh tags. They are more search engine friendly.
Remember that a 301 redirect tells people that this page has been permanently moved. If you have only moved the page temporarily, you should use a 302 redirect. You can do this the exact same way as above, just change the 301 to a 302.
Redirect 302 /PATH_TO_REDIRECT NEW_LOCATION_URI
What You Need
- Apache web server
- text editor