I want to make a rewrite rule with mod_rewrite which will automaticly move a specific url from http to https for only one location..
Example:
When user put the following url on their browser: http://mywebsite.com/accounts.php?accou ... ient_id=FF
It must be redirected to:
https://mywebsite.com/accounts.php?accountkey=52533AQC&client_id=FF
Something like this;
- Code: Select all
RewriteEngine on
RewriteOptions inherit
RewriteCond %{SERVER_PORT} !^443$
RewriteRule ^/accounts.php(.*) https://%{SERVER_NAME}/accounts.php [L,R]
Is ahove rule correct?