Announcement

Collapse
No announcement yet.

.htaccess.txt

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    .htaccess.txt

    I have just added a few pages in the middle of my v7 site. This will result in page not found 404 errors from the cached pages in Google etc. as all the sections below the new inserted sections will be renumbered by Actinic even though the section name will be the same.

    I have placed a .htaccess.txt file in the root directory which should open a 404.html page, in the same directory, informing of the page move/removal and then redirect to my index page after a few seconds.

    The content of the .htaccess.txt file is as follows:

    ErrorDocument 400 /404.html
    ErrorDocument 401 /404.html
    ErrorDocument 402 /404.html
    ErrorDocument 403 /404.html
    ErrorDocument 404 /404.html
    ErrorDocument 405 /404.html
    ErrorDocument 406 /404.html
    ErrorDocument 407 /404.html
    ErrorDocument 408 /404.html
    ErrorDocument 409 /404.html
    ErrorDocument 410 /404.html
    ErrorDocument 411 /404.html
    ErrorDocument 412 /404.html
    ErrorDocument 413 /404.html
    ErrorDocument 414 /404.html
    ErrorDocument 415 /404.html
    ErrorDocument 500 /404.html
    ErrorDocument 501 /404.html
    ErrorDocument 502 /404.html
    ErrorDocument 503 /404.html
    ErrorDocument 504 /404.html
    ErrorDocument 505 /404.html

    Is this the best way of avoiding lost visitors and have I put these files in the correct place?

    I would appreciate others thoughts on this as I suffer from the 'a little knowledge is a dangerous thing' syndrome.

    I looked at the thread for a 301 re-direct but as I am adding pages in the middle of a site with 185 sections, I would have my work cut out doing redirects for the best part of 100 pages, or is there a shorcut to this.
    Mick Jackson
    Jackson's Fishing Tackle
    www.jackfish.net

    #2
    If you have a file called .htaccess.txt that's not correct, it has to be named .htaccess with no file extension.
    Peblaco

    Comment


      #3
      I said a little knowledge is dangerous.

      Thanks for putting me right on my error, no wonder it does not work as I expected it to.
      Mick Jackson
      Jackson's Fishing Tackle
      www.jackfish.net

      Comment


        #4
        Or simply do it via your hosting control panel.

        Do the 404 etc on the error pages icon and the 301 on the redirect url icon

        no need for htaccess

        contact us direct for more help

        Comment

        Working...
        X