Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Server
User Name
Linux - Server This forum is for the discussion of Linux Software used in a server related context.


  Search this Thread
Old 03-14-2007, 05:36 AM   #1
Registered: Sep 2005
Location: Vienna, Austria
Distribution: Mint 13
Posts: 524

Rep: Reputation: 31
apache: Object not found! How to redirect

How can I redirect a user when he gives a wrong url? right now he becomes the message " Object not found!". Instead I would libke to have him redirect to the main page my website.
thanks for any help.
Old 03-15-2007, 03:11 PM   #2
Sagebrush Gardener
LQ Newbie
Registered: Mar 2007
Posts: 29

Rep: Reputation: 15
In /.htaccess ...

If you want to redirect a specific wrong URL to your main page:

Redirect /wrong_url.html

If you want to redirect ANY wrong URL to your main page:

ErrorDocument 404

See for details.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Object not Found error when accessing localhost. calculemus Linux - Networking 6 10-22-2006 10:52 PM
GNU R help with converting SPSS file - object not found towsonu2003 Linux - Software 2 03-04-2006 11:30 AM
Apache: how to redirect all pages "404 not found" to the homepage? newlinuxnewbie Linux - General 2 02-09-2006 06:43 PM
JSP context object not found poeta_boy Programming 1 09-21-2005 01:06 PM
cgi-bin (object not found, access forbidden) orish Linux - Newbie 3 05-24-2004 03:57 PM > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 01:22 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration