Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Redirecting dead links to main page

Posted on 2004-09-07
3
239 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

Portable, direct connect server access

The ATEN CV211 connects a laptop directly to any server allowing you instant access to perform data maintenance and local operations, for quick troubleshooting, updating, service and repair.

Question has a verified solution.

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

Suggested Solutions

In my time as an SEO for the last 2 years and in the questions I have assisted with on here I have always seen the need to redirect from non-www urls to their www versions. For instance redirecting http://domain.com (http://domain.com) to http…
Introduction As you’re probably aware the HTTP protocol offers basic / weak authentication, which in combination with the relevant configuration on your web server, provides the ability to password protect all or part of your host.  If you were not…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

838 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