I made a website with muse and then uploaded to my host through Muse and I have manually uploaded with Filezilla to my host too.
After securing my website with an AutoSSL, which I'm currently using because it is provided by host through cPanel, or after purchasing an SSL from a third party and applying it, I wanted my site to always show https:// when people type in http or any other url for it.
But, there is a foreseeable issue with this method:
When I make an update to my website after editing it in Muse, I believe it is going to overwrite the .htaccess file that I made changes to, which will make me have to go in and manually edit the file again.
Q1. Is there a way to edit the .htaccess file in muse so that it automatically has that code in it to force 301 redirect all http:// to https:// so that I don't have manually edit the .htaccess file everytime I make updates to my or someone's website using muse?
Q2. Is there some way to make muse write the code or do something to force 301 redirect all urls to the main url that I want all visitors to end up at, see?
Muse does not overwrite the htaccess file, only adds its entries to it between special comments. So, you can safely use your code.
Thank you Pavel. So, if I understand correctly. After uploading my site to my cPanel, I can go to the .htaccess file and add the code to redirect all http:// to https:// and the code that is written in the .htaccess file will not be changed no matter how many times I make edits to my website and upload using muse directly to my ftp host or if I manually upload it by saving the html file from muse and uploading it through Filezilla. Is that correct?
If you use the export method in html and then FileZilla, then the question for you should not have existed from the beginning. You have full control in this case...
I do not recommend using this method for two reasons.
1) You will not be able to edit your website in browser. (IBE)
2) You have to manually enter the code in htaccess, in the event that you will use alt layouts or linked text.
Use the Muse's internal FTP client. After the first upload to the hosting, add your code to the htaccess file and this file will not be overwritten anymore. There is no need to use FileZilla.
Pavel I am getting stuck on my SSL.
My site is secure if you type in www.aavsales.com/index.html
but is not secure if you just type in www.aavsales.com or aavsales.com
Any suggestions how I fix this?
Thanks for your time.
It looks secure to me.