Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Post New Thread Reply

Register GFY Rules Calendar
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 07-28-2002, 01:52 AM   #1
kennyxyz
Registered User
 
Join Date: Jan 2002
Posts: 69
htaccess help

Can anyone advice how to redirect user from 401 error page to a custom page in htaccess.
Many Thanks
kennyxyz is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-28-2002, 01:53 AM   #2
B40
Confirmed User
 
Join Date: Jul 2001
Posts: 7,020
ErrorDocument 401 http://www.domain.com/404.html

Same thing for 404, 403 etc, just change the #
__________________
B40 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-28-2002, 02:14 AM   #3
kennyxyz
Registered User
 
Join Date: Jan 2002
Posts: 69
Thanks
kennyxyz is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-28-2002, 03:30 AM   #4
Nurgle
Confirmed User
 
Nurgle's Avatar
 
Join Date: Feb 2001
Location: Land of OZ
Posts: 2,337
Thought i would just add a .htaccess tutorial page which im sure you will find interesting as well

http://www.vnwr.com/resources/tutorials/htaccess.html

cheers
Nurgle
__________________
I am not a megalomaniac.. I just rule the world
Need Quality Hardlinks? We have several packages and custom deals available.
*High Quality Hard Links For Sale*
ICQ: 394016570
Nurgle is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-02-2002, 05:05 PM   #5
kennyxyz
Registered User
 
Join Date: Jan 2002
Posts: 69
Hello,
It seems not work to me,
Here is a sample of my htaccess

deny from all
allow from xxx.xxx.xxx.xxx
allow from xxx.xxx.xxx.xxx
AuthUserFile /usr/home/xxxxxx/member.xxxyyyzzz.com/cgi-bin/.htpasswd
AuthGroupFile /dev/null
AuthName "Members Area"
AuthType Basic


require valid-user

<Files .*>
order allow,deny
deny from all
</Files>
satisfy any

I intend to add a line ErrorDocument 401 http://xxx.com/error.html into the htaccess
But I don't know where I should place this in the file.
Does anybody here help?
Thanks!!
kennyxyz is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-02-2002, 05:48 PM   #6
TheDoc
Too lazy to set a custom title
 
TheDoc's Avatar
 
Industry Role:
Join Date: Jul 2001
Location: Currently Incognito
Posts: 13,827
Just add it any place in the .htaccess file.

I think 401 errors "bad requests" have to be done to a path and not to a url though. If that doesnt work try putting a " before the URL. Like "http://ect... If that doesnt work you have to put the full path to the error doc.
__________________
~TheDoc - ICQ7765825
It's all disambiguation
TheDoc is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.