tehyoyo — 2012-03-02T12:45:21-05:00 — #1
How do I assign a webpage so that it shows up when there's a 404 or similar error?
technobear — 2012-03-02T13:01:21-05:00 — #2
Add the following to your .htaccess file:
ErrorDocument 404 /path_to/404.html
(assuming the custom error page is called 404.html)
Unless you're on Window's hosting, in which case I haven't a clue.
tehyoyo — 2012-03-02T14:19:28-05:00 — #3
What exactly is .htaccess and where is it kept?
I've heard it mentioned and I know that it can be used to password protect...is it Linux only?
technobear — 2012-03-02T14:34:52-05:00 — #4
I believe it's specific to Apache, which runs on Linux, but I wouldn't like to swear to that.
There's a handy basic guide here.
samanime — 2012-03-02T14:53:19-05:00 — #5
Yes, .htaccess files are specific to Apache.
If you are running a different web server (like Linux or IIS) there are similar, but slightly different ways to do so, so we'd need to know which web server you are using.
tehyoyo — 2012-03-02T16:43:59-05:00 — #6
I was just wondering...for future use.
ldcdc — 2012-03-02T18:39:41-05:00 — #7
Apache runs on Linux as well as Windows (and some other OSes). It's just rare to find a Windows based host use it.
.htaccess is Apache specific, though IIS has similar capabilities these days from what I've read (different code though). There's also the Litespeed web server, which aims to be a drop in replacement of Apache (with a lot better performance, or so they claim), and it advertises itself to be .htaccess compatible.
.htaccess is a file you can create and place in the folder you want it to regulate.