wp-admin redirect loop
-
Hi,
i’ve just update my website from qtranslate to qtranslate-x.
With the old plugin all works correctly, except of course the qtranslate editor.When i ‘ve updated to qtranslate-x i can visit my website on:
it.mywebsite.com
en.mywebsite.com
es.mywebsite.comBut if i go to https://www.mywebsite.com or one of above links /wp-admin i have a redirect loop.
I’ve this configuration in my wp-config.php
define(‘WP_SITEURL’, ‘https://’. $_SERVER[‘SERVER_NAME’]);
define(‘WP_HOME’, ‘https://mywebsite.com’);On https://www.mywebsite.com there’s a root website, if user choosed some particular path (www.mywebsite.com/folder-not-website) i’ve configured in my .htaccess to not show the website but the particular folder, otherwise it will be redirected on en language website.
here a sample of my root .htaccess
Options FollowSymLinks MultiViews
Options -Indexes
RewriteEngine on
RewriteRule ^(update|samples)($|/) – [L]
RewriteCond %{HTTP_HOST} ^[^.]+\.[^.]+$ [NC]
RewriteRule ^(.*)$ https://www.%{HTTP_HOST}/$1 [L,R=301]
RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC]
RewriteRule .* https://en.%1%{REQUEST_URI} [R=301,L]here my wordpress .htaccess
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ – [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule># END WordPress
- The topic ‘wp-admin redirect loop’ is closed to new replies.