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 and Server Administration Forum


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



Reply
Old 05-29-2010, 09:04 PM htaccess file
Ultra Talker

Posts: 254
Trades: 0
i am using wamp on my local machine

in the .htaccess file i have the following
RewriteEngine on
RewriteBase /
Options +FollowSymLinks

ErrorDocument 400 http://localhost/badrequest.html
ErrorDocument 403 http://localhost/forbidden.html
ErrorDocument 404 http://localhost/pagenotfound.html

in the url if a type special % character i get the following 400 error

Bad Request
Your browser sent a request that this server could not understand.


when i type * special character in the url i get a 403 error
You don't have permission to access /folder/test*test on this server.

as i already have the 400 and 403 defined in .htaccess file why is the browser not able to display the html files i have created when a 400 and 403 error occurs and the these 2 html files are in the root directory

please advice.

thanks
sudhakararaog is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 05-30-2010, 07:23 AM Re: htaccess file
mtishetsky's Avatar
King Spam Talker

Posts: 1,226
Name: Mike
Location: Mataro, Spain
Trades: 0
You should not specify http and hostname in errordocument directive, simply /badrequest.html is quite enough since it is a file in your webserver's address space.
__________________

Please login or register to view this content. Registration is FREE
-
Please login or register to view this content. Registration is FREE
-
Please login or register to view this content. Registration is FREE

And don't forget to give me talkupation!
mtishetsky is offline
Reply With Quote
View Public Profile Visit mtishetsky's homepage!
 
Reply     « Reply to htaccess file
 

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.15621 seconds with 12 queries