Problem with http / www / https and pages
Welcome,
I have a problem with my domain.
In .htaccess I have set http and www to redirect to , it brings me to the Demo page
But if I enter the address it takes me to the page
-
have you tried using this code? RewriteEngine On RewriteCond %{SERVER_PORT} 80 RewriteRule ^(.*)$ https://dominio.com/$1 [R,L]
0 -
If nothing works, may be a 301 should do the trick... Redirect 301 Redirect 301 Just enter those 2 lines at the end of your script and should be fine, i guess 0 -
Let us know if the advice provided helps and if you have any further issues. 0 -
Thanks guys for your replays! I will check yours suggests as soon as posible and answer you. Best regards! 0 -
You can try this as well RewriteCond %{HTTP_HOST} !^$ RewriteCond %{HTTP_HOST} !^www\. [NC] RewriteCond %{HTTPS}s ^on(s)| RewriteRule ^ http%1://www.%{HTTP_HOST}%{REQUEST_URI} [R=301,L] 0 -
Hello! I'm sorry to answer so late. Unfortunately, your suggestions do not work. Maybe because my English is poor :( I have a page on Joomla ]\ and I have a 301 redirect from http:// | www | http:// www - and everything works fine. But the problem is when I give the address, e.g. https://[COLOR=rgb(184, 49, 47)]www[COLOR=rgb(184, 49, 47)].domain.tld or [COLOR=rgb(184, 49, 47)]. amex-baczek.pl/oferta/okna/okna-pvc then he redirects me to the address: 0
Please sign in to leave a comment.
Comments
6 comments