hosted by liquidweb


Go Back   Web Hosting Talk : Web Hosting Main Forums : Hosting Security and Technology : .htaccess and 404 error page
Reply

Forum Jump

.htaccess and 404 error page

Reply Post New Thread In Hosting Security and Technology Subscription
 
Send news tip View All Posts Thread Tools Search this Thread Display Modes
  #1  
Old
Aspiring Evangelist
 
Join Date: Dec 2000
Posts: 447
I tried to make a custom "file not found" page, but it didn't work.

I have an account on a RaQ3.

What I tried is the following: I put a .htaccess file in my /web folder, with a single line like this:

ErrorDocument 404 /custom.html

I also tried the following:

ErrorDocument 404 custom.html
ErrorDocument 404 /home/sites/site55/web/custom.html

Well, none of them worked.

Now I've read in Apache documentation, that for this to work, the server administrator must set the AllowOverride directive for FileInfo.

Is there a command I could use to check if this directive is set on my server?



Sponsored Links
  #2  
Old
Disabled
 
Join Date: Dec 2000
Location: Ohio
Posts: 273
Was it in the correct web folder with all the other html files? Also, was the custom.html located in the same directory? BTW,

ErrorDocument 404 /custom.html

is the correct way to do it. I have a RaQ3 as well and it works fine.

  #3  
Old
Aspiring Evangelist
 
Join Date: Dec 2000
Posts: 447
Yes, I put both .htaccess and custom.html in the "home" directory of my site, where I also have the index.html file.

Sponsored Links
Reply

Related posts from TheWhir.com
Title Type Date Posted
Admin Error Brings Down Joyent’s Ashburn Data Center Web Hosting News 2014-05-28 10:18:18
Unusual DNS Error Leads to Internet Outage in China Web Hosting News 2014-01-21 12:16:24
Mistakes To Avoid When Launching A New Website Design Blog 2014-01-10 10:53:50
Lengthy Outages for Hacker News, FastHosts Web Hosting News 2014-01-06 09:56:36
Page.ly Grows Managed WordPress Hosting Platform with BlogDroid Acquisition Web Hosting News 2013-06-27 15:43:37


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes
Postbit Selector

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 Off
HTML code is Off

Forum Jump
Login:
Log in with your username and password
Username:
Password:



Forgot Password?
Advertisement:
Web Hosting News:
WHT Membership
WHT Membership



 

X

Welcome to WebHostingTalk.com

Create your username to jump into the discussion!

WebHostingTalk.com is the largest, most influentual web hosting community on the Internet. Join us by filling in the form below.


(4 digit year)

Already a member?