I maintain a website totally created with Hype Pro (i.e. it does not sit inside or alongside any other code). I have just got a SSL Certificate for this site. I have been given advice from the Certificate issuer (who also happens to host the site) on amending the .htaccess file, or creating a fresh one if one does not exist, with code that will point any future site user to the https:// version of the website. So my question is in three parts……
Part 1 - Is there a .htaccess file created during the "File / Export as HTML5” process?. If so, where does it reside, so that I can add the relevant code/text?
If the answer to the above question is NO I presume I will have to create one and add it manually to the host server.
Part 2 - So if the answer above is NO, is the list below a suitable route to take to create and add the .htaccess file to the host server? Confirmation, or other wise please.
Manual creation and upload
- Once my site is complete in Hype Pro use option [File / Export as HTML5]
- Upload the created files to my host server using my FTP client (Cyberduck)
- Create a file called htaccess.txt (using my text editor) and add the relevant text to it (supplied from my Certificate issuer).
- Upload htaccess.txt to my host server using my FTP client (into the xxxxx.hyperesources folder)
- Rename htaccess.txt to .htaccess
Part 3 - One last query - If the manual list above is the way to go I was unsure whether the .htaccess file should (finally) reside in the xxxxx.hyperesources folder or alongside the index.html file in htdocs folder?
Many thanks for your help and assistance.