Re: Custom 404 page

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: Ronx (ronx917_at_hotmail.com)
Date: 07/05/04


Date: Mon, 5 Jul 2004 08:01:43 +0100

I inserted new commands by ignoring the warnings issued by my host -
"editing the file could cause the web to cease functioning" - then
downloading the .htaccess file, placing the new commands under the FrontPage
stuff, and uploading the edited file.

Some of the FrontPage stuff may also be in the httpd.conf file (Apache
server configuration), so removing those lines would have no effect, but
other lines are unique to the .htaccess file, such as the IgnoreIndex and
password data.

Ron

-- 
Reply only to group - emails will be deleted unread.
"Damzish" <msgroupsreply@world-wide-virtual.us> wrote in message
news:1A1800C6-AAA4-4974-8D65-BCC0679886B0@microsoft.com...
> I removed some of the code to see what would happen, basically nothing
happened. It would be nice if someone knew the reason for the FP code and
how to insert new commands with out causing other problems.
>
> Damzish
> -- 
> Dedicated Virtual Assistant at http://www.world-wide-virtual.us
>
>
> "Ronx" wrote:
>
> > The (edited for security) content of my .htaccess file is:
> >
> >
> > # -FrontPage-
> >
> > IndexIgnore .htaccess */.??* *~ *# */HEADER* */README* */_vti*
> >
> > <Limit GET POST>
> > order deny,allow
> > deny from all
> > allow from all
> > </Limit>
> > <Limit PUT DELETE>
> > order deny,allow
> > deny from all
> > </Limit>
> > AuthName computername
> > AuthUserFile /path/to/service.pwd
> > AuthGroupFile /path/to/service.grp
> >
> >
> > I am definitely not an Apache expert, but the code appears to limit what
the
> > anonymous user can see and do in the web, and provides the paths to the
> > password files used by FrontPage.
> >
> > Ron
> > -- 
> > Reply only to group - emails will be deleted unread.
> >
> >
> > "David Baxter" <spam-me@junkmail.com> wrote in message
> > news:e$5APNUYEHA.3476@tk2msftngp13.phx.gbl...
> > > what does FP use the .htaccess file for?
> > >
> > > "Ronx" <ronx917@hotmail.com> wrote in message
> > > news:OAoxBYOYEHA.3988@tk2msftngp13.phx.gbl...
> > > > The .htaccess file must go into the root folder of the web, else it
> > > will
> > > > only work for the folder it is in, and subfolders.
> > > > There may already be a .htaccess in the web root folder - this is
used
> > > by
> > > > FrontPage and if overwritten by your file, may disable the web
> > > totally.
> > > >
> > > > Ron
> > > > -- 
> > > > Reply only to group - emails will be deleted unread.
> > > >
> > > >
> > > > "Andrew Murray" <SPAMadBUSTERmurray@iinet.net.au> wrote in message
> > > > news:40e61320$0$24769$5a62ac22@per-qv1-newsreader-01.iinet.net.au...
> > > > > You need to create a text file with this line in it. (use
notepad):
> > > > >
> > > > > Type this line:
> > > > >
> > > > > ErrorDocument 404 http://www.pathtoyoursite.com/404.html
> > > > >
> > > > >
> > > > > Save the file as "Other File type"  (not as *.txt) and type in
> > > ".htaccess"
> > > > >
> > > > > This file needs to be saved as ".htaccess" (that is
> > > "fullstophtaccess").
> > > > The
> > > > > "404.html" file can be anything you design - to fit your site or
> > > > whatever -
> > > > > nothing special about it.
> > > > >
> > > > > All the .htaccess file is doing is whever there is an error
> > > encountered
> > > > the
> > > > > server looks for this file and then goes to the page for the error
> > > > encountered
> > > > >
> > > > > You can do the same for any of the other unix error codes such as
> > > 501,
> > > > 500, 503,
> > > > > 403, 400 - they each have a specific 'error' like 403 - Forbidden
> > > for
> > > > example
> > > > > using the same format as above and use the equivalent error code
for
> > > each
> > > > line,
> > > > > and include a separate HTML document for each error message.
> > > > >
> > > > > Put the .htaccess file and the 404.html in the same folder. When
> > > someone
> > > > requests
> > > > > a page that ends up not being found, the server will load your
error
> > > page
> > > > rather
> > > > > than the default error.
> > > > >
> > > > > Search google for "htaccess" for further information
> > > > >
> > > > >
> > > > >
> > > > > "Damzish" <msgroupsreply@world-wide-virtual.us> wrote in message
> > > > > news:D1F6184C-7D11-42C6-B18B-7DD88E16EA39@microsoft.com...
> > > > > > 1. Any tips on getting a custom 404 page going?
> > > > > >
> > > > > > The site in question is on an Apache server and the host
provides
> > > a
> > > > script
> > > > > editor to create custom error pages.
> > > > > >
> > > > > > 2 Should I build the page using FP03 and then insert that code
> > > into the
> > > > > provided file?
> > > > > >
> > > > > >  The next logical question for this newbie is what are the
> > > elements of
> > > > say a
> > > > > 404 page that will need to be included and does FP offer script
for
> > > this?
> > > > > >
> > > > > > Please answer questions 1 and 2 first !!!  Thanks for any
> > > suggestions.
> > > > > >
> > > > > > Damzish
> > > > > >
> > > > > >
> > > > > > -- 
> > > > > > Dedicated Virtual Assistant at http://www.world-wide-virtual.us
> > > > >
> > > > >
> > > >
> > > >
> > >
> > >
> >
> >
> >


Relevant Pages

  • Re: additions to the right click menu in front page?
    ... > other commands) ... Webs Unlimited have a Addon called At your command that lets you add menu ... Though items within other context menus ... http://accessfp.net/ - FrontPage Resource Centre ...
    (microsoft.public.frontpage.client)
  • Re: Want to use sendkeys in Outlook to open Excel file
    ... How is this related to FrontPage? ... I can't use the normal openfile commands as ... | spreadsheet has an Auto_Open macro in Macro4 language that I want to kick ... | sendkeys command to insert the filepath I wish to have opened? ...
    (microsoft.public.frontpage.programming)
  • SOLVED! (was: Re: Frontpage perils)
    ... Subject: Frontpage perils ... Sometimes I am such an idiot. ... :) I had placed these commands at the top of ... Which was not wise. ...
    (freebsd-questions)
  • Re: Menu Commands Missing
    ... > I use Frontpage 2002. ... that a number of my menu commands are no longer available. ... Set Schema version to Internet ... Explorer 5.0 click ok and say yes when it asks to refresh your web. ...
    (microsoft.public.frontpage.client)
  • Re: vmware
    ... roN wrote: ... commands I gave you. ... Kevin Nathan ... Open source. ...
    (alt.os.linux.suse)