Solved

Redirecting dead links to main page

Posted on 2004-09-07
3
236 Views
Last Modified: 2010-08-05
I recently revamped my entire site. Cleaned out old files and made a new website. The problem is i also changed the folder names. SO everyone that bookmarked pages on the site now get a page not found error, because folder names have changed. I want to redirect everyone that goes to a page that cannot be found to my home page. How can i do this? I was told i could use hhtpd.conf but i dont know how to ....can anyone please help??
thank  you
0
Comment
Question by:mrperfect75000
  • 2
3 Comments
 
LVL 15

Accepted Solution

by:
samri earned 125 total points
ID: 11998997
hi mrperfect7500,

The simplest and quickest thing that I can think of would be using Apache ErrorDocument directive (http://httpd.apache.org/docs-2.0/mod/core.html#errordocument)

Specifically, you want to trap 404 error.  Locate your Apache config file, and look for ErrorDocument sections.  By default there should be a bunch of examples that you could try.  Looking at you requirement, if any page is not found, send them to your homepage.  So, try this:

ErrorDocument 404 /

For further customization, you may look at the docs, and the following link: http://httpd.apache.org/docs-2.0/custom-error.html
0
 

Author Comment

by:mrperfect75000
ID: 11999059
Thank you! works great!
0
 
LVL 15

Expert Comment

by:samri
ID: 11999104
wow! that was the quickest response I'd ever experienced.  

cheers.
0

Featured Post

U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

As Wikipedia explains 'robots.txt' as -- the robot exclusion standard, also known as the Robots Exclusion Protocol or robots.txt protocol, is a convention to prevent cooperating web spiders and other web robots from accessing all or part of a websit…
In Solr 4.0 it is possible to atomically (or partially) update individual fields in a document. This article will show the operations possible for atomic updating as well as setting up your Solr instance to be able to perform the actions. One major …
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.
In this video I am going to show you how to back up and restore Office 365 mailboxes using CodeTwo Backup for Office 365. Learn more about the tool used in this video here: http://www.codetwo.com/backup-for-office-365/ (http://www.codetwo.com/ba…

911 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

25 Experts available now in Live!

Get 1:1 Help Now