Rstratton
03-19-2005, 02:12 PM
Hi
How do you make a page so when if you put in a web address that does not exist it will go to that page?
How do you make a page so when if you put in a web address that does not exist it will go to that page?
|
Click to See Complete Forum and Search --> : Page Not Found! Rstratton 03-19-2005, 02:12 PM Hi How do you make a page so when if you put in a web address that does not exist it will go to that page? phpnovice 03-19-2005, 08:36 PM This is called a "custom 404" page and you define it like any other page. The trick is the server for your website must be configured to pick up this page from your site when 404 errors occur on your site. This could be as easy as using an .htaccess file in your web root folder with this specification (if using a *nix operating system and/or Apache server software). For Windows/IIS, I believe you would have to ask your web host to make this configuration change for you. PeOfEo 03-19-2005, 10:56 PM some of the better windows hosts give the user the ability to change that in an online control panel. But if this windows server is running asp.net then the user can modify his web.config file to change what happens when there is a 404, 533, etc, for an asp.net (*.aspx) page. Rstratton 03-20-2005, 05:08 AM Originally posted by phpnovice This is called a "custom 404" page and you define it like any other page. The trick is the server for your website must be configured to pick up this page from your site when 404 errors occur on your site. This could be as easy as using an .htaccess file in your web root folder with this specification (if using a *nix operating system and/or Apache server software). For Windows/IIS, I believe you would have to ask your web host to make this configuration change for you. I Host My Site, So What Do I Do? phpnovice 03-20-2005, 08:22 AM I don't have all the answers, but those who do will want to know what operating system and what server software you're using. Fang 03-20-2005, 09:02 AM If you have Apache server (http://httpd.apache.org/docs/custom-error.html) Rstratton 03-20-2005, 09:46 AM Originally posted by phpnovice I don't have all the answers, but those who do will want to know what operating system and what server software you're using. I Have "Windows XP" And I Use "Dreamweaver 4" 96turnerri 03-20-2005, 09:51 AM LMAO you server OS and webserver not your PC PeOfEo 03-20-2005, 09:52 AM Originally posted by Rstratton I Have "Windows XP" And I Use "Dreamweaver 4" Dreamweaver is not a webserver, it is an IDE. If you are running your own server what server application are you using? Also is this xp pro or xp home. Rstratton 03-20-2005, 10:00 AM my server i think is Namesecure.com and it is xp Rstratton 03-20-2005, 10:04 AM Originally posted by Rstratton my server i think is Namesecure.com and it is xp XP Home Fang 03-20-2005, 10:15 AM Your site is hosted using Unix running Apache phpnovice 03-20-2005, 10:49 AM Originally posted by Rstratton my server i think is Namesecure.com ... That is not your server -- that is your IPP's (Internet Presence Provider's) domain name. Thus, you are not hosting your own site. That is, of course, unless you've leased a dedicated server. However, even then, you may have to ask your IPP for information on how to make certain server configuration changes -- unless you're a certified server administrator. I'd guess you're not, since you're having trouble coming up with the answers for which we're looking. At any rate... All's well that ends well. Fang identified your (#1) server operating system, your (#2) server software, and your (#3) solution. Check out the link he previously provided. Rstratton 03-31-2005, 10:56 AM Could Anyone Send Me A Document That Would Have This Information In It And Then Tell Me Where To Put It?? the tree 03-31-2005, 11:14 AM Fang already linked you to the relavent page (http://httpd.apache.org/docs/custom-error.html), but basically you just need to plonk the following into a file named .htaccessErrorDocument 404 /Lame_excuses/not_found.html Rstratton 03-31-2005, 11:25 AM Thank You webdeveloper.com
Copyright Internet.com Inc., All Rights Reserved. |