Can someone please confirm if what I intend doing in my .htaccess file is correct (always a biy scared when I make changes of this nature). Other posts don't quite give me the confidence factor I need. Also searching on the internet has confused rather than clarified.
Resulting from Bills comments yesterday (and my tests confirming this) about _ and - in page names I want a plan forward to change my page names. (http://community.actinic.com/showthread.php?t=20688)
In particular I would like to confirm the changes required to redirect in my .htaccess file.
Currently the file contains Error Document redirects only. Below is what I believe is correct but can someone confirm this please. Particular questions are:
1. Do I need the full URLs of the old changed pages and new replacement pages in the rediect statement or is this just required for the replacement page? Just the new page - but the full path from the root should be defined for the old page
2. Am I correct in thinking that the page name redirects will need to go above the Error Document redirects? - in other words I am assuming they are actioned on a first true first actioned type of basis? Not sure about this?? Confirmed that this is important - the first matching statement will be actioned
3. Does it matter how many redirects I have in the .htaccess file? Presumably not
4. Can/Should I just leave the redirects in the file for ever on? Perhaps 1 month or so until the SEs show the new pages
5. Because they will be permant redirects I assume there will be no issue with SEs? This seems to be the consensus
This is the typical content I'm proposing to implement:
This is a very grey area for me and any comment on this would be greatly appreciated.
EDIT: Bill's link answered some of my questions
Duncan
Resulting from Bills comments yesterday (and my tests confirming this) about _ and - in page names I want a plan forward to change my page names. (http://community.actinic.com/showthread.php?t=20688)
In particular I would like to confirm the changes required to redirect in my .htaccess file.
Currently the file contains Error Document redirects only. Below is what I believe is correct but can someone confirm this please. Particular questions are:
1. Do I need the full URLs of the old changed pages and new replacement pages in the rediect statement or is this just required for the replacement page? Just the new page - but the full path from the root should be defined for the old page
2. Am I correct in thinking that the page name redirects will need to go above the Error Document redirects? - in other words I am assuming they are actioned on a first true first actioned type of basis? Not sure about this?? Confirmed that this is important - the first matching statement will be actioned
3. Does it matter how many redirects I have in the .htaccess file? Presumably not
4. Can/Should I just leave the redirects in the file for ever on? Perhaps 1 month or so until the SEs show the new pages
5. Because they will be permant redirects I assume there will be no issue with SEs? This seems to be the consensus
This is the typical content I'm proposing to implement:
Code:
Redirect permanent Fancylines_News.html http://www.fancylines.co.uk/acatalog/Fancylines-News.html Redirect permanent Mens_Guide.html http://www.fancylines.co.uk/acatalog/Mens-Guide.html Redirect permanent Sizing_Chart.html http://www.fancylines.co.uk/acatalog/Sizing-Chart.html ErrorDocument 400 /index.html ErrorDocument 401 /index.html ErrorDocument 403 /index.html ErrorDocument 404 /index.html ErrorDocument 500 /index.html
EDIT: Bill's link answered some of my questions
Duncan
Comment