Navigation
Records in this category
- Is Telnet or SSH enabled for my site?
- How do I publish using Microsoft Frontpage?
- How do I take credit card payments via my web site?
- How do I create a custom "Not Found" page?
- What is the directory path to my web site (document root), sendmail, and PERL?
- How do I password protect one of my web site directories?
- What hostname do I use when connecting to my site's MySQL database?
- Do I have to create a cgi-bin directory to run PERL / CGI scripts?
- I keep getting blank emails and/or spam submitted via my sites form. How do I stop this?
- How do I upload my web pages to my web site?
- I need to delete (or drop) all of my database tables. How do I do that?
- Do you have phpMyAdmin pre-installed?
- Does BR support blogging? What software is supported or recommended?
- How do I use an .htaccess file?
- How do I change the default home page of my site (i.e. How do I change the index order?)
- How do I change the default character encoding from UTF-8 to ISO-8859-1 for my web site?
- How do I set up a MySQL Database? Is there a Control Panel I can access to do this such as what goDaddy offers? I'm trying to set-up a database in order to install wordPress on my website.
- My SEO Consultant tells me to consolidate my domains using 301 Redirects. How can I achieve this?
- I'm getting a "permission denied" error when I try and change the permissions of a file on my web site. How can I change permissions?
- How do I turn magic quotes off?
Site Building
How do I create a custom "Not Found" page?
Create a new text file on your computer and save it as ".htaccess".
If you are creating the file from scratch, simply type the following line into the file, changing the url to the location of your custom page:
ErrorDocument 404 http://www.YourWebSite.com/custom_page.html
Keep it all on one line, with a space on each side of the number 404. Also, this is case sensitive, so be sure to check the case of the E and D in ErrorDocument before you proceed.
When you are done, upload your new .htaccess file into the docs directory on the server. Make sure it's uploaded in ASCII format (not binary). Then, be sure to use the CHMOD command (this sets permissions) through your FTP or telnet program to set the permissions to 644.
Also be sure that you have uploaded your custom error page to the server, otherwise you'll get a 500 server error or something similar. Once that is done, you can test your new error page by typing in a url that you know does not exist on your site. You should get your custom page, ready to bring in the lost visitors that may be out there.
If you are creating the file from scratch, simply type the following line into the file, changing the url to the location of your custom page:
ErrorDocument 404 http://www.YourWebSite.com/custom_page.html
Keep it all on one line, with a space on each side of the number 404. Also, this is case sensitive, so be sure to check the case of the E and D in ErrorDocument before you proceed.
When you are done, upload your new .htaccess file into the docs directory on the server. Make sure it's uploaded in ASCII format (not binary). Then, be sure to use the CHMOD command (this sets permissions) through your FTP or telnet program to set the permissions to 644.
Also be sure that you have uploaded your custom error page to the server, otherwise you'll get a 500 server error or something similar. Once that is done, you can test your new error page by typing in a url that you know does not exist on your site. You should get your custom page, ready to bring in the lost visitors that may be out there.
Related entries:
- How do I change the default home page of my site (i.e. How do I change the index order?)
- I uploaded my main page but I can't see it. The temporary page is still there.
- How do I use an .htaccess file?
- How do I create new email accounts?
- How do I create an email mailing list? Please explain all of my mailing list options.