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.
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.
Comment