| We hope you enjoy your visit. You're currently viewing our forum as a guest. This means you are limited to certain areas of the board and there are some features you can't use. If you join our community, you'll be able to access member-only sections, and use many member-only features such as customizing your profile, sending personal messages, and voting in polls. Registration is simple, fast, and completely free. Join our community! If you're already a member please log in to your account to access all of our features: |
- Pages:
- 1
- 2
| Custom 404. | |
|---|---|
| Tweet Topic Started: May 19 2005, 07:26 AM (727 Views) | |
| Zero Resistance-ZNS | May 19 2005, 07:26 AM Post #1 |
|
eÜil Zero lÖrd™
![]() ![]() ![]() ![]() ![]() ![]()
|
Okay...So I know minimal JS and PHP. I would like this for my site. Any way how? |
![]() |
|
| Das | May 19 2005, 10:09 AM Post #2 |
![]()
Smells of rich mahogany
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
Make an html page, and save it as 404.shtml |
![]() |
|
| James | May 19 2005, 10:43 AM Post #3 |
|
Live to Dream
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
Does that work on absolutely any host? I thought you had to modify the .htaccess sometimes? |
![]() |
|
| Gornakle | May 19 2005, 10:48 AM Post #4 |
|
Member
![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
Yup. Create a file called ".htaccess", and put in it the following:
Then just put a file named errorpage.html with the error message. Htaccess if a way of configuring the server from a sub directory. |
![]() |
|
| ultra mc | May 19 2005, 12:16 PM Post #5 |
![]()
Im from the ment-al-in-sta-tute
![]() ![]() ![]() ![]()
|
:geek: :alien: :angel: :qb: :smithster:
|
![]() |
|
| Rory | May 19 2005, 12:19 PM Post #6 |
|
i;m a mess
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
mmmk, thats just spam. Here's an idea: Read the Board Rules! |
![]() |
|
| Jory | May 19 2005, 12:42 PM Post #7 |
|
Member
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
I assume you could make a page for every error you want that way? (Not that there are a lot of other errors you get a lot )
|
![]() |
|
| Gornakle | May 19 2005, 01:24 PM Post #8 |
|
Member
![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
Sure. Just use something like:
|
![]() |
|
| JoeC | May 19 2005, 02:06 PM Post #9 |
|
Euch! IE tastes horrible!
![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
I'm not entirely sure, but I believe just calling it "404.shtml" or "401.shtml" etc, automatically points it to that page. I think. |
![]() |
|
| Rory | May 19 2005, 04:26 PM Post #10 |
|
i;m a mess
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
I think it is depending on your server configuration, which James queried earlier. I know on one of my hosts the xxx.shtml method works, haven't tried it on the other host, but i am unsure as to whether it is possible on all configs or not. |
![]() |
|
| kingy | May 19 2005, 04:55 PM Post #11 |
|
1 in 10 people understands binary, the other 1 doesn't
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
It doesn't always work. My old server did not allow it. (By old i do stress old. I think most modern servers allow the easy way) |
![]() |
|
| Lothlómendil | May 19 2005, 05:20 PM Post #12 |
|
Spam Queen
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
You were too nice. I was either going to send him a nasty PM about it or just suspend him until I read your post. ![]() Anyhow, this topic reminds me that I have to figure out what's up with my 404.php file on my blog.
|
![]() |
|
| JoeC | May 19 2005, 06:26 PM Post #13 |
|
Euch! IE tastes horrible!
![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
If you have cPanel, you can edit the pages in there, and it'll automatically update your .htaccess - dead easy
|
![]() |
|
| solinent | May 19 2005, 07:47 PM Post #14 |
|
Member
![]() ![]() ![]() ![]() ![]()
|
Okie, here's the deal: With apache servers, you can do the ".htaccess" thing. However, me, with my innocent Internet Information Services server, I have to edit the configuration via(on the server obviously...) Start>Settings>>Control Panel>>>Administrative Tools>>>>Internet services manager, Then right click the site that is yours, and select properties. After that go to Custom errors, then click on the errror you wish to change, and then make sure it's a url, then give the name of a file that's on the site that you want the error page to be on. One way to check if its an IIS server, or apache, is if you don't have custom errors set up allready, then trigger an error. If it's IIS, it'll say somewhere on the page that it is IIS(after all the points on what to do), and if it's Apache, then the error will be different, and possibly might say something else. Obviously, it could be another server, but I think those are the two most common. :w00t: Good luck on that!
|
![]() |
|
| Zero Resistance-ZNS | May 20 2005, 02:51 AM Post #15 |
|
eÜil Zero lÖrd™
![]() ![]() ![]() ![]() ![]() ![]()
|
So rthat means i just put a 404.htm? Ah, I found something in SubDomain stuffs. |
![]() |
|
| 1 user reading this topic (1 Guest and 0 Anonymous) | |
| Go to Next Page | |
| « Previous Topic · Technology Chat · Next Topic » |
- Pages:
- 1
- 2
| Track Topic · E-mail Topic |
6:21 AM Jul 11
|



![]](../../../../0/1/0/p601690/pipright.png)





:geek: :alien: :angel:
:qb: :smithster:
)
6:21 AM Jul 11