Solved

Redirecting dead links to main page

Posted on 2004-09-07
3
235 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
Comment Utility
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
Comment Utility
Thank you! works great!
0
 
LVL 15

Expert Comment

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

cheers.
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

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…
Over the last year I have answered a couple of basic URL rewriting questions several times so I thought I might as well have a stab at: explaining the basics, providing a few useful links and consolidating some of the most common queries into a sing…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

771 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

10 Experts available now in Live!

Get 1:1 Help Now