/    Sign up×
Community /Pin to ProfileBookmark

Page Not Found!

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?

to post a comment
HTML

15 Comments(s)

Copy linkTweet thisAlerts:
@phpnoviceMar 20.2005 — 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.
Copy linkTweet thisAlerts:
@PeOfEoMar 20.2005 — [COLOR=deeppink]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.[/COLOR]
Copy linkTweet thisAlerts:
@RstrattonauthorMar 20.2005 — [i]Originally posted by phpnovice [/i]

[B]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. [/B][/QUOTE]


I Host My Site, So What Do I Do?
Copy linkTweet thisAlerts:
@phpnoviceMar 20.2005 — 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.
Copy linkTweet thisAlerts:
@FangMar 20.2005 — If you have [URL=http://httpd.apache.org/docs/custom-error.html]Apache server[/URL]
Copy linkTweet thisAlerts:
@RstrattonauthorMar 20.2005 — [i]Originally posted by phpnovice [/i]

[B]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. [/B][/QUOTE]


I Have "Windows XP" And I Use "Dreamweaver 4"
Copy linkTweet thisAlerts:
@96turnerriMar 20.2005 — LMAO

you server OS and webserver not your PC
Copy linkTweet thisAlerts:
@PeOfEoMar 20.2005 — [i]Originally posted by Rstratton [/i]

[B]I Have "Windows XP" And I Use "Dreamweaver 4" [/B][/QUOTE]
[COLOR=deeppink]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.[/COLOR]
Copy linkTweet thisAlerts:
@RstrattonauthorMar 20.2005 — my server i think is Namesecure.com and it is xp
Copy linkTweet thisAlerts:
@RstrattonauthorMar 20.2005 — [i]Originally posted by Rstratton [/i]

[B]my server i think is Namesecure.com and it is xp [/B][/QUOTE]


XP Home
Copy linkTweet thisAlerts:
@FangMar 20.2005 — Your site is hosted using Unix running Apache
Copy linkTweet thisAlerts:
@phpnoviceMar 20.2005 — [i]Originally posted by Rstratton [/i]

[B]my server i think is Namesecure.com ... [/B][/QUOTE]

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. [b]Fang[/b] identified your (#1) server operating system, your (#2) server software, and your (#3) solution. Check out the link he previously provided.
Copy linkTweet thisAlerts:
@RstrattonauthorMar 31.2005 — Could Anyone Send Me A Document That Would Have This Information In It And Then Tell Me Where To Put It??
Copy linkTweet thisAlerts:
@the_treeMar 31.2005 — 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 [i].htaccess[/i]ErrorDocument 404 /Lame_excuses/not_found.html
Copy linkTweet thisAlerts:
@RstrattonauthorMar 31.2005 — Thank You
×

Success!

Help @Rstratton spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 4.28,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,

tipper: @Samric24,
tipped: article
amount: 1000 SATS,
)...