Announcement

Collapse
No announcement yet.

Make a More Functional 404 Error Page

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • #31
    Found the answer to my latest question myself

    Figured I'd pass bit on as it might help others.

    If you use ErrorDocument 404 /not_here.html in the .htaccess the web does not show any pictures, etc as they are not in the same folder.

    However if you use ErrorDocument 404 http://www.yourdomain.com/not_here.html it actually redirects to the public_html file.

    Don't know if this will be helpful to others, but I think it satisfies my purposes.

    Comment


    • #32
      Re: Make a More Functional 404 Error Page

      If it is blank just add this exactly as it is below and on one line.

      ErrorDocument 404 /custom_page.html


      What if it is not blank ? as I have this in the .htaccess file

      RewriteEngine on

      RewriteCond %{HTTP_REFERER} !^$
      RewriteCond %{HTTP_REFERER} !^http://mobilemassage.org/.*$ [NC]
      RewriteCond %{HTTP_REFERER} !^http://mobilemassage.org$ [NC]
      RewriteCond %{HTTP_REFERER} !^http://www.mobilemassage.org/.*$ [NC]
      RewriteCond %{HTTP_REFERER} !^http://www.mobilemassage.org$ [NC]
      RewriteRule .*\.(jpg|jpeg|gif|png|bmp)$ - [F,NC]

      Options All Indexes
      IndexOptions FancyIndexing

      <Files 403.shtml>
      order allow,deny
      allow from all
      </Files>



      http://www.mobilemassage.org/
      http://www.fnqindependent.com.au/

      Comment


      • #33
        Re: Make a More Functional 404 Error Page

        What a brilliant tip! Can't believe I actually managed - I'm a complete newbie with all this stuff and bumbling along! It looks great.....THANK YOU
        Alison
        http://www.where-to-stay-southafrica.com

        sigpic

        Comment

        Working...
        X