Title: wp-admin redirect loop
Last modified: September 1, 2016

---

# wp-admin redirect loop

 *  Resolved [marcolettieri](https://wordpress.org/support/users/marcolettieri/)
 * (@marcolettieri)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/wp-admin-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.com
 * But if i go to [http://www.mywebsite.com](http://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’, ‘[http://&#8217](http://&#8217);. $_SERVER[‘SERVER_NAME’]);
   
   define(‘WP_HOME’, ‘[http://mywebsite.com&#8217](http://mywebsite.com&#8217););
 * On [http://www.mywebsite.com](http://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 ^(.*)$ [http://www.%](http://www.%){
   HTTP_HOST}/$1 [L,R=301] RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC] RewriteRule.*
   [http://en.%1%](http://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
 * [https://wordpress.org/plugins/qtranslate-x/](https://wordpress.org/plugins/qtranslate-x/)

Viewing 1 replies (of 1 total)

 *  Plugin Author [John Clause](https://wordpress.org/support/users/johnclause/)
 * (@johnclause)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/wp-admin-loop/#post-7488922)
 * I think most of your .htaccess customization are not needed. If you are doing
   something special, it is fine, then you are on your own 😉 – I do not think anyone
   can help you.
 * Start from a clean WP installation all by default – it all should work. Now review
   what do you actually need to customize if anything? Can you not to do any customization?
   What is the reason for so many custom redirections etc? Add those custom features
   on-by-one if you need them and you should be able to figure it out.
 * I hope you’ll figure it out 😉

Viewing 1 replies (of 1 total)

The topic ‘wp-admin redirect loop’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/qtranslate-x_f9f9f9.svg)
 * [qTranslate X](https://wordpress.org/plugins/qtranslate-x/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/qtranslate-x/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/qtranslate-x/)
 * [Active Topics](https://wordpress.org/support/plugin/qtranslate-x/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/qtranslate-x/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/qtranslate-x/reviews/)

## Tags

 * [htaccess](https://wordpress.org/support/topic-tag/htaccess/)
 * [loop](https://wordpress.org/support/topic-tag/loop/)
 * [wp-admin](https://wordpress.org/support/topic-tag/wp-admin/)

 * 1 reply
 * 2 participants
 * Last reply from: [John Clause](https://wordpress.org/support/users/johnclause/)
 * Last activity: [9 years, 9 months ago](https://wordpress.org/support/topic/wp-admin-loop/#post-7488922)
 * Status: resolved