29.03.2019, 18:22
Quote:
It should not be doing that. I tested and confirmed it worked.
Can you please show the contents of the .htaccess. may be the snippet isn't even executed because its redirected before. In .htaccess the order matters! |
PHP Code:
RewriteEngine On
RewriteCond %{SERVER_PORT} 80
RewriteCond %{REQUEST_URI} !^/sendemail.php
RewriteRule ^(.*)$ https://%{HTTP_HOST}/$1 [R,L]
PHP Code:
RewriteEngine On
RewriteCond %{HTTP_HOST} ^mydomain\.ro [NC]
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://mydomain.ro/$1 [R,L]
RewriteRule ^whatsapp$ "https\:\/\/chat\.whatsapp\.com\/Jsb7br8C8Cw7995AWb5h4z" [R=301,L]
RewriteCond %{HTTP_HOST} ^mydomain\.ro$ [OR]
RewriteCond %{HTTP_HOST} ^www\.mydomain\.ro$
RewriteRule ^sugestii$ "https\:\/\/www\.forum\.mydomain\.ro\/index\.php\?\/forum\/82\-sugestii\/" [R=301,L]
RewriteCond %{HTTP_HOST} ^mydomain\.ro$ [OR]
RewriteCond %{HTTP_HOST} ^www\.mydomain\.ro$
RewriteRule ^discord$ "https\:\/\/discord\.gg\/KWWRDZj" [R=301,L]