Hi everybody,
I have a small issue.
How do I redirect
http://shop.com/products/index.php?main_page=login
to
https://shop.com/products/index.php?main_page=login
After I've googled it a few times, I've tried to write the following code in an .htaccess file in the products folder, but it doesn't work. The SSL is on, but there must something wrong with the code I wrote.
Options +FollowSymLinks
Options -Indexes
ServerSignature Off
RewriteEngine on
RewriteBase /
RewriteCond %{SERVER_PORT} 80
RewriteCond %{REQUEST_URI} products/index.php
RewriteRule ^(.*)$ https://www.shop.com/products/index.php?main_page=login$1 [R,L]
I'm dummy with .htacess files, so any help would be apreciated.
Thatnks.
Bookmarks