Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Redirecting dead links to main page

Posted on 2004-09-07
3
Medium Priority
?
243 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 500 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

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…
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…
In response to a need for security and privacy, and to continue fostering an environment members can turn to for support, solutions, and education, Experts Exchange has created anonymous question capabilities. This new feature is available to our Pr…
Suggested Courses

705 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