apache - Redirect HTTP to HTTPS using an .htaccess file -
i change ht-access file
rewriterule ^index\.php$ - [l] rewritecond %{request_filename} !-f rewritecond %{request_filename} !-d rewriterule . /index.php [l] rewritecond %{server_port} !^443$ rewritecond %{https} !=on rewriterule ^.*$ https://%{server_name}%{request_uri} [r,l] when coming home page example:
www.xyz.com redirect https://www.xyz.com/
my ploblem when load www.xyz.com/about not going https://www.xyz.com/about . showing www.xyz.com/about. if suggection change htaccess file work this.
place https redirect @ beginning. [l] tells apache last directive, line
rewriterule . /index.php [l] will last line used.
Comments
Post a Comment