Hello i have problem. I using htaccess in my website. And i change windows server to ubuntu, and my .htaccess dont working.
RewriteEngine On
RewriteCond %{HTTPS} !=on
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
RewriteEngine On
RewriteCond %{HTTP_HOST} ^(www\.)?nameserver\.pl [NC]
RewriteRule (.*) http://nameserver.pl/$1 [R=301,L]
RewriteCond %{REQUEST_URI} ^https://nameserver.pl/login.php
RewriteCond %{QUERY_STRING} VARIABLE=VALUE
RewriteRule ^(.*)$ https://nameserver.pl/login.php? [R=301,L]
i have on nameserver.pl dont firewall cloudflare and all connecting using subdomain
i have login.php on official website (but regule dont working, i want nameserver.pl/login.php dont change website) anyone can help me ?
I using ubuntu 18.04
RewriteEngine On
RewriteCond %{HTTPS} !=on
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
RewriteEngine On
RewriteCond %{HTTP_HOST} ^(www\.)?nameserver\.pl [NC]
RewriteRule (.*) http://nameserver.pl/$1 [R=301,L]
RewriteCond %{REQUEST_URI} ^https://nameserver.pl/login.php
RewriteCond %{QUERY_STRING} VARIABLE=VALUE
RewriteRule ^(.*)$ https://nameserver.pl/login.php? [R=301,L]
i have on nameserver.pl dont firewall cloudflare and all connecting using subdomain
i have login.php on official website (but regule dont working, i want nameserver.pl/login.php dont change website) anyone can help me ?
I using ubuntu 18.04