|Arts & Humanities
Photography, History, Literature
Movies, Humor, Music
Recreation & Sports
Sports, Travel, Autos, Outdoors
Languages, Archaeology, Psych
Business & Economy
B2B, Finance, Shop, Real Estate
Elections, Military, Law, Taxes
Phone, Dictionaries, Quotations
Society & Culture
People, Environ., Classifieds
Computers & Internet
Internet, www, Soft.., Games
Diseases, Drugs, Fitness
Countries, Regions, US States
Top providers, marketing, more
College & University, K-22
News & Media
Newspapers, TV, Radio
Animals, Space, Engineer..
Hand Selected Websites
Redirects for Apache Based Web Servers
How to modify server access using Redirects in .htaccess files.
Mac users on OS X will have to rename the .htaccess file as they will not be able to access the file via FTP.
Error 404 Redirect (File Not Found)
404 error redirects should be written to the .htaccess file generally located in the root folder of the web server.
NOTE: In some cases you might have to edit your httpd.conf files instead (Apache Servers). If you host multiple domains then this is the file you will need to use. Otherwise you may have the wrong error pages show. The httpd.conf file is where are virtual domains are kept on Apache based servers. For more information on editing the .httpd.conf file see: http://www.apache.org/docs/
Edit your 404 error redirect as follows:
ErrorDocument 404 http://www.YourWebServer.com/YourSelectedErrorFile.html
ErrorDocument 404 http://www.YourWebServer.com/
Which 404 error page should you use?
From a marketing perspective sending visitors to a special page that will offer them something more than a refresh to your homepage is always a good idea.
For instance, why not send them to a page that gives them a discount if you sell products, or why not offer them your best feature or most sold product on the website to the error page.
301 Redirect (Moved Permanently)
A 301 redirect tells the visitor or robot that you have permanently moved the files. To create a 301 Redirect you will need to access the .htaccess file on your server. Generally located in the root folder. Not the paths are written old to new.
Redirect 301 /old-file-path.html http://www.YourWebServer.com/new-file-path.html
Redirect 301 /index.html http://www.New-Web-Server.com/