Jump to content

Redirection my site to https


deepakk

Recommended Posts

How can i able to redirect my website to https://www.mydomain.in

 

 

If someone visit simple  mydomain.in   & someone www.mydomain.in

 

 

How can i able to redirect both the above address to https://www.mydomain.in   please help me with the .htaccess file redirectin code in php. with apache server

Link to comment
https://forums.phpfreaks.com/topic/294582-redirection-my-site-to-https/
Share on other sites

  • 2 months later...

RewriteEngine on

# if a directory or a file exists, use it directly
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d

# otherwise forward it to index.php
RewriteRule . index.php


RewriteEngine On
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://www.yoursite.com/$1 [R,L]

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.