Jump to content

Can I Force Https Using Virtualhosts Instead Of Using Mod_Rewrite?


Recommended Posts

I have an SSL certificate installed on my domain (both example.heliohost.org and example.tk, and variants), and would like to make it so that users going to http://example.tk are redirected to https://example.tk. I am currently using mod_rewrite inside .htaccess to make this work, but every post I can find on this online says this is a last resort and that using apache virtualhosts is much better. The problem is, I have no idea where the necessary apache configuration files are located, if I need to create them, or if I even have access to them. Or, should I use cPanel's redirects along with a wildcard instead? Some other method? Thanks for any help.

 

Edit: Also, I'm on Ricky, if that helps.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...