Htaccess trouble
-
Hello everyone ,
I want to talk with you about Htaccess.
In fact on my site google said I have problem with Redirections
Http do a 302 to https and after do a redirect 301 to www.i saw this on my htaccess
<IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteCond %{SERVER_PORT} 80 RewriteRule ^(.*)$ https://%{HTTP_HOST}/$1 [R,L] RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] </IfModule>I don’t know where is the 302 redirect …
Maybe this one is better ?:
RewriteCond %{HTTPS} !=on RewriteRule ^(.*)$ https://%{HTTP_HOST}/$1 [R=301,L] RewriteCond %{HTTP_HOST} !^www\. RewriteRule ^(.*)$ https://www.%{HTTP_HOST}/$1 [R=301,L,E=HTTPS:1]Thank you …
- This topic was modified 3 years, 8 months ago by .
- This topic was modified 3 years, 8 months ago by . Reason: Moved to Fixing WordPress, this is not an Developing with WordPress topic
The page I need help with: [log in to see the link]
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
The topic ‘Htaccess trouble’ is closed to new replies.