29.03.2019, 18:50
Quote:
I presume your web server is hosted. You could ask the support team of the host company. Or may be the .htaccess, that redirects, is located in the directory where public_html is or may be your web server is not Apache but Nginx in which case .htaccess will not work.
Edit: I saw your edit Change these three lines with the snippet I gave you earlier: (These are the lines that redirect the whole traffic to https) Code:
RewriteCond %{HTTP_HOST} ^mydomain\.ro [NC] RewriteCond %{SERVER_PORT} 80 RewriteRule ^(.*)$ https://mydomain.ro/$1 [R,L] |
PHP Code:
RewriteEngine On
RewriteCond %{HTTP_HOST} ^mydomain\.ro [NC]
RewriteCond %{SERVER_PORT} 80
RewriteCond %{REQUEST_URI} !^/sendemail.php
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]