Linux Administrator - 404 redirect missing pages

Linux Administrator

Privacy Policy

RSS Feed

Acoustic Guitar Tips
Anna Kendrick
Beekeeping Tips
Catherine Zeta Jones
My View On Things
Cheap Auto Insurance
Cheap Places to Live
Delta Shaper
Easy Wood Projects
Felicity Jones
Free Sheet Music
Funny Clean Jokes
Healthy Carbs
Heidi Klum
Improve Your Credit
Ivory Tower Group
Keke Palmer
Linda Ronstadt
Linux Administrator
Money Spigot
Nicole Kidman
Planet Cabinet
Quality Dating Advice
Rustic Cabinets
Sacramento Hiking
Sandra Bullock
Spintax Tool
The Actress
Tristan Prettyman
Viola Davis
Who Are The Beatles

404 redirect missing pages

404 redirect missing pages

Sometimes, you get customers who change the structure of a website, and the search engines still know about the old structure, so people click on links that take them to missing pages. This is easy to fix.

If you want to redirect missing pages to the index.html page of a website, put this line into the .htaccess file inside of the root of the domain. Sometimes, this is /web or /httpdocs.

ErrorDocument 404 /index.html

If you want the redirect to go to a generic error page, put this line into the .htaccess file:

ErrorDocument 404 /notfound.html

where notfound.html is the name of the generic page.

Return To Main Page