• Resolved darkpatate

    (@darkpatate)


    Hello,
    I changed my wordpress to a subdomain (from http://www.mywebsite.com to blog.mywebsite.doc). I followed that tutotiel. 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)
  • 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

    (@darkpatate)

    Oh shit, it was as simple as that!
    I’m ashamed!
    Now I just have to change the image links 🙂

    Thanks a lot 🙂

    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.