Solved

Redirecting dead links to main page

Posted on 2004-09-07
3
241 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
[X]
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
  • 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

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

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

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…
Introduction This article is intended for those who are new to PHP error handling (https://www.experts-exchange.com/articles/11769/And-by-the-way-I-am-New-to-PHP.html).  It addresses one of the most common problems that plague beginning PHP develop…
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…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

710 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