Skip to main content

Redirect Through VirtualHost

Comments

4 comments

  • cPanelMichael
    Hello, Do you have any existing rewrite rules in the .htaccess file in the account's public_html directory? Also, could you verify the full steps you took to make the include file? Thank you.
    0
  • DHarry
    Thanks! There is not a rewrite rule in the .htaccess file currently. For the steps, using the documentation, I created the includes file. The created path was for individual virtualhost, without ssl. Then I inserted the rewrite rule mentioned above in the .conf file. Rebuilt the httpd.conf file and restarted the Apache. Pretty simple, or so I thought.
    0
  • cPanelMichael
    Hello, You can try using one of the examples on the following post to see if it helps: HTTP to HTTPS redirects for Drupal Multisite Setup Additionally, run this command after making the change:
    /usr/local/cpanel/scripts/ensure_vhost_includes --all-users
    Thank you.
    0
  • DHarry
    Michael, Thank you so much for your help! I think the script was the missing piece I needed and everything is working accordingly. Have a great week and take care!
    0

Please sign in to leave a comment.