Title: Redirection problems after moving WordPress
Last modified: June 7, 2019

---

# Redirection problems after moving WordPress

 *  Resolved [darkpatate](https://wordpress.org/support/users/darkpatate/)
 * (@darkpatate)
 * [7 years ago](https://wordpress.org/support/topic/redirection-problems-after-moving-wordpress/)
 * Hello,
    I changed my wordpress to a subdomain (from [http://www.mywebsite.com](http://www.mywebsite.com)
   to blog.mywebsite.doc). I followed [that tutotiel](https://wordpress.org/support/article/moving-wordpress/#moving-directories-on-your-existing-server).
   But I’m not sure about point 10, and I didn’t do next points because I didn’t
   understand :/ But my site was “new”, so all the article will be deleted, I don’t
   need to keep them (only test purpose).
 * Unfortunately, when I go to the main page, I’m automatically redirected to the
   former domain, with nothing now. The other pages work, I can acces to them, as
   the admin panel.
 * Here the .htacess, if it’s helpful :
 *     ```
       RewriteEngine On
   
       	## www -> no-www
       RewriteCond %{HTTP_HOST} ^www\.(.+)$ 
       RewriteRule ^ https://%1%{REQUEST_URI} [R=301,L,NE,QSA]
       	## http -> https
       RewriteCond %{HTTPS} off
       RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L,NE,QSA]
       # 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
       ```
   
 * Thanks in advance for your help!

Viewing 3 replies - 1 through 3 (of 3 total)

 *  [Davood Denavi](https://wordpress.org/support/users/binarywc/)
 * (@binarywc)
 * [7 years ago](https://wordpress.org/support/topic/redirection-problems-after-moving-wordpress/#post-11616698)
 * Have you tried checking the site from a private browsing window or a completely
   different browser? Sometimes these type of redirect issues are caused by cookies
   not being updated and your cookies need to be cleared.
 * Hope this helps. Once you find a solution kindly tag the thread as resolved.
 *  Thread Starter [darkpatate](https://wordpress.org/support/users/darkpatate/)
 * (@darkpatate)
 * [7 years ago](https://wordpress.org/support/topic/redirection-problems-after-moving-wordpress/#post-11616901)
 * Oh shit, it was as simple as that!
    I’m ashamed! Now I just have to change the
   image links 🙂
 * Thanks a lot 🙂
 *  [Davood Denavi](https://wordpress.org/support/users/binarywc/)
 * (@binarywc)
 * [7 years ago](https://wordpress.org/support/topic/redirection-problems-after-moving-wordpress/#post-11616936)
 * Glad to help any time. Do not feel ashamed, I’ve been doing this stuff for twelve
   years and sometimes forget the easy fixes like this myself. Feel free to post
   back anytime for help.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Redirection problems after moving WordPress’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 3 replies
 * 2 participants
 * Last reply from: [Davood Denavi](https://wordpress.org/support/users/binarywc/)
 * Last activity: [7 years ago](https://wordpress.org/support/topic/redirection-problems-after-moving-wordpress/#post-11616936)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
