havenswift-hosting Posted June 10, 2014 Share Posted June 10, 2014 HiIt appears that from CubeCart 5.2.7 onwards, the distribution zip file and the auto upgrade process contains a copy of the .htaccess file and so if you have made any changes to this after initial installation (which you should always do to remove possible duplicate content issues due to /index.php and www. and non www. versions of the homepage) then these will be over-written.If you have upgraded your site since 5.2.7 and had made changes to .htaccess, then you will need to make these changes againThanksIan Quote Link to comment Share on other sites More sharing options...
ayz1 Posted June 10, 2014 Share Posted June 10, 2014 I can't quite believe I just read that. Not even a mention in the release notes that I can see. Quote Link to comment Share on other sites More sharing options...
havenswift-hosting Posted June 10, 2014 Author Share Posted June 10, 2014 Hi I have spoken to Al and this was an error and co-incided with the move of CubeCart to github and has now been corrected so it wont happen again. I am just amazed that we (or anyone else) didnt notice this before Thanks Ian Quote Link to comment Share on other sites More sharing options...
Dirty Butter Posted June 10, 2014 Share Posted June 10, 2014 I was very fortunate to still have several old versions saved, so I was able to fix mine. I had redirects in place to keep page rank from going to the www version of our site and special error code pages designed that had to be referenced in .htaccess. I'm sure others have similar modifications they did not realize were gone. This is most unfortunate! Thank you for bringing it to our attention, though. Quote Link to comment Share on other sites More sharing options...
havenswift-hosting Posted June 10, 2014 Author Share Posted June 10, 2014 I had redirects in place to keep page rank from going to the www version of our site and special error code pages designed that had to be referenced in .htaccess All websites should choose whether to direct to www or non www urls and keep to that throughout the whole environment. We personally prefer using www. as that is the choice of many large large organisations but as long as you decide and stick to one, I think this is fine. This is most unfortunate! Thank you for bringing it to our attention, though. Very welcome ! Thanks Ian Quote Link to comment Share on other sites More sharing options...
ayz1 Posted June 11, 2014 Share Posted June 11, 2014 I've just updated a site to 5.2.12 and it has overwritten the .htaccess file so it doesn't seem to have been corrected and is still happening. Would have thought fixing this would have been a bit of a priority given the consequential impact it can have. Quote Link to comment Share on other sites More sharing options...
havenswift-hosting Posted June 11, 2014 Author Share Posted June 11, 2014 It will be fixed in the next release - versions 5.2.7 through 5.2.12 will have the default .htaccess file included in the zip file.You can simply restore your original .htaccess file from your backupThanksIan Quote Link to comment Share on other sites More sharing options...
havenswift-hosting Posted September 1, 2014 Author Share Posted September 1, 2014 Hi Just to confirm that 5.2.13 had the .htaccess file removed from the distribution .zip file so upgrading from any version to 5.2.13 or later (when any new release is made) will now preserve your changed .htacess file. However, one other file that is still over written is the robots.txt file. Everyone should be changing this from the default version in the distribution so be aware that this will still be over wriiten and lost when doing an upgrade Thanks Ian Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.