Sometimes you may need to redirect http requests on port 80 to (https) on port 443. This can easily be accomplished with .htaccess.
RewriteEngine on
RewriteCond %{SERVER_PORT} !^443$
RewriteRule ^/(.*) https://%{SERVER_NAME}/$1 [NC,R,L]
Sometimes you may need to redirect http requests on port 80 to (https) on port 443. This can easily be accomplished with .htaccess.
RewriteEngine on
RewriteCond %{SERVER_PORT} !^443$
RewriteRule ^/(.*) https://%{SERVER_NAME}/$1 [NC,R,L]
the trick is not working on my local server
i have tested it on my home pc but it is not working can u suggest me what may be the problem
How to i change in my localhost setting?
for example my drupal site points to http://{MY_IP}/~sanil/drupal
@Vaseem, make sure you have mod rewrite enabled. You may be able to do this on a local server though, I’ve never tried.