Web Design and Development Forums

[solved]htaccess ErrorDocument 404/anyfolder/notfound.php

This is a discussion on "[solved]htaccess ErrorDocument 404/anyfolder/notfound.php" within the Apache and IIS section. This forum, and the thread "[solved]htaccess ErrorDocument 404/anyfolder/notfound.php are both part of the Hosting Related category.


Go Back   Webforumz.com > Hosting Related > Apache and IIS

Welcome to Webforumz.com.
Register Now Register now!

Reply
 
LinkBack Thread Tools Rate Thread
Old Apr 11th, 2008, 15:01   #1 (permalink)
Lead Administrator
 
saltedm8's Avatar
 
Join Date: Nov 2005
Location: Always About
Age: 27
Posts: 1,058
Blog Entries: 1
Send a message via MSN to saltedm8
[solved]htaccess ErrorDocument 404/anyfolder/notfound.php

i want to show my custom error message whenever someone hits an error 404, currently i have this

Quote:
Options All -Indexes
Options +FollowSymLinks
RewriteEngine On

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*) index.php

ErrorDocument 404 notfound.php
and that 404's them to my error message, but i need to know if there is a way to do it with any folder too, even ones that never existed ( sorry, i think its the only way i can explain it )

basically, regardless of what they type in as folder name, it will show my error page, ( obviously unless the folder exists )

thanks
__________________
recipebite.co.uk - its a working progress...

Last edited by saltedm8; Apr 11th, 2008 at 15:05.
saltedm8 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old Apr 11th, 2008, 15:43   #2 (permalink)
Lead Administrator
 
saltedm8's Avatar
 
Join Date: Nov 2005
Location: Always About
Age: 27
Posts: 1,058
Blog Entries: 1
Send a message via MSN to saltedm8
Re: htaccess ErrorDocument 404/anyfolder/notfound.php

dont worry, thanks anyway, managed it with this

Quote:
Options All -Indexes
Options +FollowSymLinks
RewriteEngine On

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*) index.php

ErrorDocument 404 notfound.php
ErrorDocument 404 /notfound.php
__________________
recipebite.co.uk - its a working progress...
saltedm8 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Htaccess redirects Blake121 PHP Forum 3 Dec 6th, 2007 21:12
htaccess BarryM HTML Forum 3 Oct 27th, 2006 19:28
.htaccess benbacardi PHP Forum 6 Nov 15th, 2005 16:23



Latest Updates

All Points SEO Security Advisory - CHECK YOUR SITE NOW!

Creative Coding :: February 2008

Webforumz is sponsored by: WESH UK Web Hosting
All times are GMT. The time now is 08:26.

Sleep Study Scoring :: Free Bet :: Website Templates :: Online Betting :: Bookmakers :: Funny Quotes :: Internet Recruitment Software :: Microsoft CRM Experts :: Online Casino :: Decorated Christmas Trees :: Midwife Forums :: Football Betting :: Ecommerce Software :: Web Hosting :: Football Stats :: Dry Cleaning Collection :: xtreme wales - extreme clothing :: Apuestas :: Sharepoint Consultants :: Website Optimisation :: Office Clearance London :: Sharepoint Experts :: Sports Betting :: Casino :: Website Templates :: Web Design Development India :: Online Gambling

Powered by: vBulletin Version 3.7, Copyright ©2000 - 2008, Jelsoft Enterprises Limited.
© 2003-2008 Webforumz.com : All Rights Reserved
Search Engine Friendly URLs by vBSEO 3.2.0 RC6


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59