Welcome to MobyThreads.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in
All support for the MobyThreads Threaded phpBB MOD can now be found on welsolutions at this forum

Custom Error Pages

 
   Web Hosting and Web Master Forums (Home) -> Webmaster RSS
Next:  Validation Help  
Author Message
sharif2

External


Since: Jan 25, 2004
Posts: 110



(Msg. 1) Posted: Wed Jun 30, 2004 4:04 am
Post subject: Custom Error Pages
Archived from groups: alt>www>webmaster (more info?)

Is it possible to redirect to a certain URL depending on the error for a
custom error page?

Like for a 404 error, I'd like it to redirect to error.php?code=404. Is that
possible?
--
Sharif T. Karim
....you don't know wrath yet...

 >> Stay informed about: Custom Error Pages 
Back to top
Login to vote
postmaster

External


Since: Jun 27, 2003
Posts: 286



(Msg. 2) Posted: Wed Jun 30, 2004 4:04 am
Post subject: Re: Custom Error Pages [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Sharif T. Karim wrote:

 > Is it possible to redirect to a certain URL depending on the error for a
 > custom error page?
 >
 > Like for a 404 error, I'd like it to redirect to error.php?code=404. Is that
 > possible?

Yes

--
John MexIT: <a style='text-decoration: underline;' href="http://johnbokma.com/mexit/" target="_blank">http://johnbokma.com/mexit/</a>
personal page: <a style='text-decoration: underline;' href="http://johnbokma.com/" target="_blank">http://johnbokma.com/</a>
Experienced Perl programmer available: <a style='text-decoration: underline;' href="http://castleamber.com/" target="_blank">http://castleamber.com/</a>
Happy Customers: <a style='text-decoration: underline;' href="http://castleamber.com/testimonials.html" target="_blank">http://castleamber.com/testimonials.html</a><!-- ~MESSAGE_AFTER~ -->

 >> Stay informed about: Custom Error Pages 
Back to top
Login to vote
nospacespamgir2

External


Since: Jun 28, 2004
Posts: 240



(Msg. 3) Posted: Wed Jun 30, 2004 12:26 pm
Post subject: Re: Custom Error Pages [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Sharif T. Karim wrote:

 > Is it possible to redirect to a certain URL depending on the error for a
 > custom error page?
 >
 > Like for a 404 error, I'd like it to redirect to error.php?code=404. Is that
 > possible?

On a Windows Server (Windows 2003, Windows 2000, or Windows XP with IIS
turned on), throught the Internet Information Service icon in Admin
tools you can right-click your site name and choose properties. One of
the tabs is labelled "custom errors". You can replace any of the errors
listed with a path to your own file somewhere inside your site. Be
warned, under IIS script files dont appear to get run if you define them
as error pages - for example, if my error file 404.asp contains any
script, it wont get run (at least... on my dev server here, but she's
being weird at the moment!)


--


x theSpaceGirl (miranda)

# lead designer @ <a style='text-decoration: underline;' href="http://www.dhnewmedia.com" target="_blank">http://www.dhnewmedia.com</a> #
# remove NO SPAM to email, or use form on website #<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: Custom Error Pages 
Back to top
Login to vote
webmaster26

External


Since: Feb 05, 2004
Posts: 352



(Msg. 4) Posted: Wed Jun 30, 2004 2:33 pm
Post subject: Re: Custom Error Pages [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On Wed, 30 Jun 2004 01:04:10 GMT, "Sharif T. Karim" <sharif RemoveThis @nyc.rr.com>
declared in alt.www.webmaster:

 > Like for a 404 error, I'd like it to redirect to error.php?code=404. Is that
 > possible?

Yes. Consult your server documentation for specific details.

e.g. .htaccess (Apache)

ErrorDocument 404 /error.php?code=404

--
Mark Parnell
<a style='text-decoration: underline;' href="http://www.clarkecomputers.com.au" target="_blank">http://www.clarkecomputers.com.au</a><!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: Custom Error Pages 
Back to top
Login to vote
user94

External


Since: Sep 14, 2004
Posts: 2384



(Msg. 5) Posted: Wed Jun 30, 2004 2:33 pm
Post subject: Re: Custom Error Pages [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Mark Parnell wrote:

 > On Wed, 30 Jun 2004 01:04:10 GMT, "Sharif T. Karim"
 > <sharif.TakeThisOut@nyc.rr.com> declared in alt.www.webmaster:
 >
  >> Like for a 404 error, I'd like it to redirect to error.php?code=404.
  >> Is that possible?
 >
 > Yes. Consult your server documentation for specific details.
 >
 > e.g. .htaccess (Apache)

Just did not so long ago. I notice that you can call .htaccess anything
you like. Bet many people don't.

One of many conventions I have noticed, that don't really mean anything,
like ns1/ns2 for nameservers.

--
Charles Sweeney
<a style='text-decoration: underline;' href="http://CharlesSweeney.com" target="_blank">http://CharlesSweeney.com</a><!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: Custom Error Pages 
Back to top
Login to vote
usenet

External


Since: Sep 14, 2004
Posts: 1119



(Msg. 6) Posted: Wed Jun 30, 2004 2:33 pm
Post subject: Re: Custom Error Pages [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Charles Sweeney wrote:

 > I notice that you can call .htaccess anything you like. Bet many people
 > don't.

Yes, but it depends entirely on what your webserver is configured to look
for. I believe that .htaccess also works without the '.' although I've
not tried it.

--
Dylan Parry
<a style='text-decoration: underline;' href="http://www.webpageworkshop.co.uk" target="_blank">http://www.webpageworkshop.co.uk</a> - FREE Web tutorials and references<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: Custom Error Pages 
Back to top
Login to vote
sharif2

External


Since: Jan 25, 2004
Posts: 110



(Msg. 7) Posted: Wed Jun 30, 2004 5:26 pm
Post subject: Re: Custom Error Pages [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Mark Parnell, being the foo Mark Parnell is, wrote:
 > On Wed, 30 Jun 2004 01:04:10 GMT, "Sharif T. Karim"
 > <sharif.DeleteThis@nyc.rr.com> declared in alt.www.webmaster:
 >
  >> Like for a 404 error, I'd like it to redirect to error.php?code=404.
  >> Is that possible?
 >
 > Yes. Consult your server documentation for specific details.
 >
 > e.g. .htaccess (Apache)
 >
 > ErrorDocument 404 /error.php?code=404

Hey I knew it was something like that. In cPanel there is a way to create
your own error pages but instead I want to just redirect to that page. If I
setup the .htaccess file in my root web folder (public_html), it'll work
right? And does it take time or is it instantly setup?

--
Sharif T. Karim
....you don't know wrath yet...<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: Custom Error Pages 
Back to top
Login to vote
postmaster

External


Since: Jun 27, 2003
Posts: 286



(Msg. 8) Posted: Wed Jun 30, 2004 5:53 pm
Post subject: Re: Custom Error Pages [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Charles Sweeney wrote:

 > Mark Parnell wrote:
 >
 >
  >>On Wed, 30 Jun 2004 01:04:10 GMT, "Sharif T. Karim"
  >><sharif.DeleteThis@nyc.rr.com> declared in alt.www.webmaster:
  >>
  >>
   >>>Like for a 404 error, I'd like it to redirect to error.php?code=404.
   >>>Is that possible?
  >>
  >>Yes. Consult your server documentation for specific details.
  >>
  >>e.g. .htaccess (Apache)
 >
 > Just did not so long ago. I notice that you can call .htaccess anything
 > you like. Bet many people don't.

I do. On Windows it's a bit of work to create a .htaccess, so you might
use htaccess

Also, there is another setting which hide special files. They hide
default .ht files. So if you use a different name for .htaccess I
recommend to change this protection too.

--
John MexIT: <a style='text-decoration: underline;' href="http://johnbokma.com/mexit/" target="_blank">http://johnbokma.com/mexit/</a>
personal page: <a style='text-decoration: underline;' href="http://johnbokma.com/" target="_blank">http://johnbokma.com/</a>
Experienced Perl programmer available: <a style='text-decoration: underline;' href="http://castleamber.com/" target="_blank">http://castleamber.com/</a>
Happy Customers: <a style='text-decoration: underline;' href="http://castleamber.com/testimonials.html" target="_blank">http://castleamber.com/testimonials.html</a><!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: Custom Error Pages 
Back to top
Login to vote
kenneth1

External


Since: Jun 30, 2004
Posts: 148



(Msg. 9) Posted: Wed Jun 30, 2004 11:22 pm
Post subject: Re: Custom Error Pages [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On 2004-06-30, John Bokma <postmaster.TakeThisOut@castleamber.com> wrote:
 > Charles Sweeney wrote:
 >
  >> Mark Parnell wrote:
  >>
  >>
   >>>On Wed, 30 Jun 2004 01:04:10 GMT, "Sharif T. Karim"
   >>><sharif.TakeThisOut@nyc.rr.com> declared in alt.www.webmaster:
   >>>
   >>>
   >>>>Like for a 404 error, I'd like it to redirect to error.php?code=404.
   >>>>Is that possible?
   >>>
   >>>Yes. Consult your server documentation for specific details.
   >>>
   >>>e.g. .htaccess (Apache)
  >>
  >> Just did not so long ago. I notice that you can call .htaccess anything
  >> you like. Bet many people don't.
 >
 > I do. On Windows it's a bit of work to create a .htaccess, so you might
 > use htaccess
 >

From the cmd line

echo > .htacess
edit .htaccess

ken

---------------------------------------
A Rabbit Is Just a Big Rat With Good PR<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: Custom Error Pages 
Back to top
Login to vote
webmaster26

External


Since: Feb 05, 2004
Posts: 352



(Msg. 10) Posted: Thu Jul 01, 2004 1:22 pm
Post subject: Re: Custom Error Pages [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On Wed, 30 Jun 2004 14:26:14 GMT, "Sharif T. Karim" <sharif.TakeThisOut@nyc.rr.com>
declared in alt.www.webmaster:

 > setup the .htaccess file in my root web folder (public_html), it'll work
 > right? And does it take time or is it instantly setup?

Yep. Should take effect immediately.

--
Mark Parnell
<a style='text-decoration: underline;' href="http://www.clarkecomputers.com.au" target="_blank">http://www.clarkecomputers.com.au</a><!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: Custom Error Pages 
Back to top
Login to vote
sharif2

External


Since: Jan 25, 2004
Posts: 110



(Msg. 11) Posted: Thu Jul 01, 2004 1:22 pm
Post subject: Re: Custom Error Pages [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Mark Parnell, being the foo Mark Parnell is, wrote:
 > On Wed, 30 Jun 2004 14:26:14 GMT, "Sharif T. Karim"
 > <sharif.DeleteThis@nyc.rr.com> declared in alt.www.webmaster:
 >
  >> setup the .htaccess file in my root web folder (public_html), it'll
  >> work right? And does it take time or is it instantly setup?
 >
 > Yep. Should take effect immediately.

What if I want it to work just for a certain directory?
Like the custom errors should only work for /dir298. How would I do that?

--
Sharif T. Karim
....you don't know wrath yet...<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: Custom Error Pages 
Back to top
Login to vote
postmaster

External


Since: Jun 27, 2003
Posts: 286



(Msg. 12) Posted: Thu Jul 01, 2004 1:22 pm
Post subject: Re: Custom Error Pages [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Sharif T. Karim wrote:

 > Mark Parnell, being the foo Mark Parnell is, wrote:
 >
  >>On Wed, 30 Jun 2004 14:26:14 GMT, "Sharif T. Karim"
  >><sharif DeleteThis @nyc.rr.com> declared in alt.www.webmaster:
  >>
  >>
   >>>setup the .htaccess file in my root web folder (public_html), it'll
   >>>work right? And does it take time or is it instantly setup?
  >>
  >>Yep. Should take effect immediately.
 >
 > What if I want it to work just for a certain directory?
 > Like the custom errors should only work for /dir298. How would I do that?

Put the .htacccess in that directory.

--
John MexIT: <a style='text-decoration: underline;' href="http://johnbokma.com/mexit/" target="_blank">http://johnbokma.com/mexit/</a>
personal page: <a style='text-decoration: underline;' href="http://johnbokma.com/" target="_blank">http://johnbokma.com/</a>
Experienced Perl programmer available: <a style='text-decoration: underline;' href="http://castleamber.com/" target="_blank">http://castleamber.com/</a>
Happy Customers: <a style='text-decoration: underline;' href="http://castleamber.com/testimonials.html" target="_blank">http://castleamber.com/testimonials.html</a><!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: Custom Error Pages 
Back to top
Login to vote
spam3

External


Since: Jul 01, 2003
Posts: 411



(Msg. 13) Posted: Thu Jul 01, 2004 4:21 pm
Post subject: Re: Custom Error Pages [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Kenneth wrote:

 > On 2004-06-30, John Bokma <postmaster.DeleteThis@castleamber.com> wrote:
 >
  >>Charles Sweeney wrote:
  >>
   >>>Just did not so long ago. I notice that you can call .htaccess anything
   >>>you like. Bet many people don't.
  >>
  >>I do. On Windows it's a bit of work to create a .htaccess, so you might
  >>use htaccess
 >
 > From the cmd line
 >
 > echo > .htacess
 > edit .htaccess

Or save with a program like UltraEdit that allows you to start the
filename with a dot.

--
Justin Koivisto - spam.DeleteThis@koivi.com
PHP POSTERS: Please use comp.lang.php for PHP related questions,
alt.php* groups are not recommended.<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: Custom Error Pages 
Back to top
Login to vote
postmaster

External


Since: Jun 27, 2003
Posts: 286



(Msg. 14) Posted: Thu Jul 01, 2004 7:08 pm
Post subject: Re: Custom Error Pages [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Kenneth wrote:

 > On 2004-06-30, John Bokma <postmaster.DeleteThis@castleamber.com> wrote:
 >
  >>Charles Sweeney wrote:
  >>
  >>
   >>>Mark Parnell wrote:
   >>>
   >>>
   >>>
   >>>>On Wed, 30 Jun 2004 01:04:10 GMT, "Sharif T. Karim"
   >>>><sharif.DeleteThis@nyc.rr.com> declared in alt.www.webmaster:
   >>>>
   >>>>
   >>>>
   >>>>>Like for a 404 error, I'd like it to redirect to error.php?code=404.
   >>>>>Is that possible?
   >>>>
   >>>>Yes. Consult your server documentation for specific details.
   >>>>
   >>>>e.g. .htaccess (Apache)
   >>>
   >>>Just did not so long ago. I notice that you can call .htaccess anything
   >>>you like. Bet many people don't.
  >>
  >>I do. On Windows it's a bit of work to create a .htaccess, so you might
  >>use htaccess
 >
 > From the cmd line
 >
 > echo > .htacess
 > edit .htaccess

Bit of work, as I said Very Happy TextPad can create .dot files.

--
John MexIT: <a style='text-decoration: underline;' href="http://johnbokma.com/mexit/" target="_blank">http://johnbokma.com/mexit/</a>
personal page: <a style='text-decoration: underline;' href="http://johnbokma.com/" target="_blank">http://johnbokma.com/</a>
Experienced Perl programmer available: <a style='text-decoration: underline;' href="http://castleamber.com/" target="_blank">http://castleamber.com/</a>
Happy Customers: <a style='text-decoration: underline;' href="http://castleamber.com/testimonials.html" target="_blank">http://castleamber.com/testimonials.html</a><!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: Custom Error Pages 
Back to top
Login to vote
who

External


Since: Apr 29, 2004
Posts: 1010



(Msg. 15) Posted: Thu Jul 01, 2004 10:01 pm
Post subject: Re: Custom Error Pages [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

"Charles Sweeney" <me.TakeThisOut@charlessweeney.com> wrote in message
news:Xns951865115CE6Amecharlessweeneycom@130.133.1.4...
 > Mark Parnell wrote:
 >
  > > On Wed, 30 Jun 2004 01:04:10 GMT, "Sharif T. Karim"
  > > <sharif.TakeThisOut@nyc.rr.com> declared in alt.www.webmaster:
  > >
   > >> Like for a 404 error, I'd like it to redirect to error.php?code=404.
   > >> Is that possible?
  > >
  > > Yes. Consult your server documentation for specific details.
  > >
  > > e.g. .htaccess (Apache)
 >
 > Just did not so long ago. I notice that you can call .htaccess anything
 > you like. Bet many people don't.
 >
 > One of many conventions I have noticed, that don't really mean anything,
 > like ns1/ns2 for nameservers.
 >
The only requirement is for the names to be unique within the domain. ns1 and ns2
are mostly used for simple clarity. Easy for humans to follow - specially when
there are several - which is the primary? ns1 of course:-)

One of our local ISPs uses alien for their primary and the rest are called
terminator1, 2 and 3Smile

Of course sub-domains go beyound convent . . . . . .. oh, sorry, wrong thread:-(<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: Custom Error Pages 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
Custom 404 Pages? - Hi, I would like to use these on a site I am making. I beleive the info goes in a .htaccess file. Can someone tell me what to put in said file and what the server requirements are? Many thanks - joe

Error pages - What error pages is a user using a browser likely to see? In common environments, I mean. From what I can tell from looking at <url:http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html>, probably just: 400 Bad Request, 401 Unauthorized, 403....

custom dashboard in webtrends? - Also my client wants me to produce a custom dashboard in Webtrends, is that possible? Thanks, Scott Emick

HELP:Custom Alt Hover Tool Tip? - Hi - does anyone know how to create an effect like this: http://www.magnetstudio.net/downloads/downloads.html (roll over the images on the right) I would rather the tool tip followed the mouse all over the image rather than just on the vertical axis. ..

Windows Hosting for Custom Server App? - We have developed a custom server application for the Windows platform. We'd like to run the system on a secured server with redundant connections, etc. How do most Windows hosts provide remote access? Through terminal services? What is the general rule...
   Web Hosting and Web Master Forums (Home) -> Webmaster All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]