Go Back  HTML Forums - Free Webmaster Forums and Help Forums > WEBSITE DEVELOPMENT > Server Side Programming
User Name:
Password:
 

Reply
Thread Tools   Display Modes
  View First Unread
 
Old 03-05-2001, 07:50 AM
  #1
TheKman
Super Deity (Level 18)
 
TheKman's Avatar
 
Join Date: Dec 2000
Location: Bel Air, MD. USA
Posts: 1,335
iTrader: (0)
TheKman is on a distinguished road
Angry

I tried the directions on the perl page to get the custom 404 page set up. I made a .htaccess file with the following code...
ErrorRedirect 404 http://www.mydomain.com/404.html (of course using my actual domain)

I also tried one with...
ErrorDocument 404 http://www.mydomain.com/404.html (as seen on htmlgoodies)

I uploaded the file via FTP to my root directory (same place as my home page right?). Notepad saved the file as .htaccess.txt. I uploaded the file and renamed it to .htaccess . I tried uploading the file in binary and again in ASCII. Of course, I also uploaded the 404.html page as well. I then try to enter a page name spelled wrong and get the plain old 404 error page.The site is on a Unix server. Why isn't this working?

(new and improved thread, now in correct forum, my bad)
TheKman is offline   Add to del.icio.us Add to del.icio.us    Can you digg it?Can you digg it? Reply With Quote
Old 03-05-2001, 10:15 AM
  #2
pixelmonkey
Wrench Thrower, Keeper of The Trees, and Lord of the Apes
 
pixelmonkey's Avatar
 
Join Date: Dec 2000
Location: the trees with several other brush apes
Posts: 1,085
iTrader: (0)
pixelmonkey will become famous soon enough
try this..

AuthName mercury
AuthUserFile /home/domain/public_html/_vti_pvt/service.pwd
AuthGroupFile /home/domain/public_html/_vti_pvt/service.grp
ErrorDocument 401 /401.html
ErrorDocument 403 /403.html
ErrorDocument 404 /404.html
ErrorDocument 500 /500.html


this is on an appache server, i hope it helps

chris<pixelmonkey>
pixelmonkey is offline   Add to del.icio.us Add to del.icio.us    Can you digg it?Can you digg it? Reply With Quote
Old 03-05-2001, 10:35 AM
  #3
abooth
Aspirant (Level 2)
 
Join Date: Mar 2001
Posts: 12
iTrader: (0)
abooth is on a distinguished road
You may find that the AllowOverrides directive in the apache httpd.conf file, this is assuming you're using apache, if not it will more than likely not work; roxen works, but in a slightly different manner, see http://www.roxen.com.

You could also try changing the mode of the file (permissions)
-r--r--r-- works for me, which is mode 444

Hope this helps!

Adam
abooth is offline   Add to del.icio.us Add to del.icio.us    Can you digg it?Can you digg it? Reply With Quote
Old 03-05-2001, 10:41 AM
  #4
jehraen
Soldier (Level 11)
 
Join Date: Nov 2000
Posts: 147
iTrader: (0)
jehraen is on a distinguished road
Cool

Hmm..
ErrorDocument 404 http://www.mydomain.com/404.html is right, but I thought the correct chmod for a .httaccess file is 644, that means read + write for owner, read for group and other.
jehraen is offline   Add to del.icio.us Add to del.icio.us    Can you digg it?Can you digg it? Reply With Quote
Old 03-05-2001, 10:42 AM
  #5
TheKman
Super Deity (Level 18)
 
TheKman's Avatar
 
Join Date: Dec 2000
Location: Bel Air, MD. USA
Posts: 1,335
iTrader: (0)
TheKman is on a distinguished road
I appreciate the input, please pardon my ignorance. I am hosting the site on a virtual server. I have no idea what they use as an OS. I doubt I have the ability to manipulate the server. It was my understanding from the various tutorials on this subject that all you had to do was upload the .htaccess file. Obviously, there is more needed. Please clarify your posts for someone who is pretty new at this stuff.
TheKman is offline   Add to del.icio.us Add to del.icio.us    Can you digg it?Can you digg it? Reply With Quote
Old 03-05-2001, 11:04 AM
  #6
abooth
Aspirant (Level 2)
 
Join Date: Mar 2001
Posts: 12
iTrader: (0)
abooth is on a distinguished road
jehraen: the important bit is read access for whichever user the httpd runs as (usually nobody)

TheKman: what is the sites url?

You could try a .htaccess file with just

deny from all

and see if you get a 403 Forbidden, if you don't, you can't use .htaccess files! - Some ISPs disallow the use of them, as you can do nasty things with them.

abooth is offline   Add to del.icio.us Add to del.icio.us    Can you digg it?Can you digg it? Reply With Quote
Old 03-05-2001, 11:12 AM
  #7
pixelmonkey
Wrench Thrower, Keeper of The Trees, and Lord of the Apes
 
pixelmonkey's Avatar
 
Join Date: Dec 2000
Location: the trees with several other brush apes
Posts: 1,085
iTrader: (0)
pixelmonkey will become famous soon enough
i know i'm going to get hammered for this, but i do have fp2000 extentions installed on my server... my current complete .htaccess file looks like this...

# -FrontPage-

IndexIgnore .htaccess */.??* *~ *# */HEADER* */README* */_vti*

<Limit GET POST>
order deny,allow
deny from all
allow from all
</Limit>
<Limit PUT DELETE>
order deny,allow
deny from all
</Limit>
AuthName mercury
AuthUserFile /home/"domain"/public_html/_vti_pvt/service.pwd
AuthGroupFile /home/"domain"/public_html/_vti_pvt/service.grp
ErrorDocument 401 /401.html
ErrorDocument 403 /403.html
ErrorDocument 404 /404.html
ErrorDocument 500 /500.html

the only swich would be for the "domain" and extention files of .pwd and .grp to be defined.

now i have to ask.. what virtual server host are you using?, they should offer a toutrial or setup when registering. ps... check my post in the spam section for a great hosting company!

<note i didnt spam in this forum>
chris<pixelmonkey>
pixelmonkey is offline   Add to del.icio.us Add to del.icio.us    Can you digg it?Can you digg it? Reply With Quote
Reply
KEEP TABS
SPONSORS
 
Boxedart

 
 


 
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
  
 
 
 



 
  POSTING RULES
 
 
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Thread Tools
Display Modes

Forum Jump

 

All times are GMT -5. The time now is 05:48 AM.

   

Mascot team created by Drawshop.com

Powered by vBulletin® Version 3.6.7
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.

Server Monitoring by ENIACmonitor 0.01
HTMLforums.com © Big Resources, Inc. Web Design by BoxedArt.com
vRewrite 1.5 beta SEOed URLs completed by Tech Help Forum and Chalo Na.