IndianWebPortal.com

Something Different In Linux

Home » htaccess » redirect from http://domain.com/anything to https://domain.com/anything

If you want to redirect all the URLs from http to https then add the following rules in .htaccess files

OR

Redirect from http://domain.com/anything to https://domain.com/anything

For Example :

Redirect  from
http://indianwebportal.com/anything
to
https://www.indianwebportal.com/anything

=================================

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

=================================


Popular Posts

remove index.php fro

How to remove index.php from url in magento Ans : If you ...

PHP-Java bridge on p

  What is php-java bridge? The php-java bridge is the php ...

Set expiration for y

If you want to set the expiration to your site ...

Warning: Parameter 1

Error: Warning: Parameter 1 to modMainMenuHelper::buildXML() expected to be a ...

domain pointing to e

If you domain uses external MX record and it is ...