Recognition

No awards yet.

Posts

1 Posts
  • Published Question

    How to redirect https://ip to https://domain

    The following lines are in the .htaccess I wrote. <IfModule mod_rewrite.c> RewriteEngine On RewriteCond %{HTTP_HOST} ^40.230.60.270 RewriteRule (.*) https://www.mywebsite.com/$1 [R=301,L] </IfModule> It redirects ...
    Accepted Answer: Hello, Do you have a VirtualHost entry matching the IP address 40.230.60.270 with https and not http? If there is an entry for the IP address with https this will be the reason. Create a VirtualHost entry matching 40....
    3 By treeant Apache Server Optimization Ubuntu 18.04