Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

Website Design Forum


You are currently viewing our Website Design Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
Creating a 404 error in .htaccess. (need to know how)
Old 05-30-2007, 03:58 PM Creating a 404 error in .htaccess. (need to know how)
Banned

Posts: 253
Name: Michel Samuel
Trades: 0
My current error codes in my .htaccess file look like this...

Order Deny,Allow
deny from 255.255.255.255

<Files 403.shtml>
Allow from all
</Files>
RewriteEngine on
RewriteCond %{HTTP_REFERER} asite\.org [NC]
RewriteRule!403\.shtml$ - [F]



For both sections I just want to give a 404 error and not display a page at all. (bandwidth has become a big issue for me.)

I'm not finding any informations on the order deny section.
But I have done the rewrite rule below and it isn't working.



RewriteRule!ErrorDocument 404 http://mysite.com/404

I have tried but I'm not understanding how this works.

Michel Samuel is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Reply     « Reply to Creating a 404 error in .htaccess. (need to know how)
 

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





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.11331 seconds with 12 queries