The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
.htaccess 404 error page
I want something like...
http://batzempire.com/404/index.php So if you go to a page that doesn't exist, it shows up as a page like that. (BatzEmpire is not my site, I'm using it as an example).. so how can I make a .htaccess file first of all? And then, what can I put in it to make it show a 404 page, and how do I make the 404 page? |
#2
|
||||
|
||||
Use the ErrorDocument directive.
|
#3
|
|||
|
|||
This is the .htaccess code that tells the server where to find the documents.
Code:
# custom error documents ErrorDocument 401 /401.shtml ErrorDocument 403 /403.shtml ErrorDocument 404 /404.shtml ErrorDocument 500 /500.shtml HTH |
#4
|
|||
|
|||
How do I make a .htaccess page...?
I made a .txt file called .htaccess, with nothing else, and when I uploaded it, it simply disappeared.. It doesn't show up in the FTP, and when I view a unknown page, it won't show the error. |
#5
|
|||
|
|||
That's because on unix its SUPPOSE to be an invisible file. Your server must be configure to enforce that but usually you can see them in ftp, you should check your client to see if it has a "display invisible files" parameter and enable it.
Often people work on .htaccess file locally and call them htaccess.txt to avoid complication with operating systems like windows when it doesn't like a file with no name and only an extension. Actually, you have it backwards, you should make the error pages first so you know for sure what to put in the .htaccess file. Forgot to ask, do you have access to cPanel? |
#6
|
|||
|
|||
Yes I do have access to cPanel. Thank you for helping.
|
#7
|
||||
|
||||
If you check your web site access logs with something like Awstats then setting up a 404 with htaccess may not show any 'pages not found'. This is a known issue.
Bob |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|