[resolved] Domain change: redirect works only on homepage (2 posts)

  1. Hans Christian Rodríguez
    Posted 2 years ago #


    I'm trying to move the domain "ca.academyofartbarcelona.com" to "academiadartbarcelona.cat".

    As you can see, the redirect works only in the homepage :-S According to the Codex, the things I've done until now are:

    1. Change the WordPress and site URL in the General settings menu
    2. Replaced all database entries from "ca.academyofartbarcelona.com" to "academiadartbarcelona.cat" with the plugin Search & Replace
    3. Checked the .htaccess. WordPress has made this changes automatically and I think is all right:
      RewriteCond %{HTTP_HOST} ^ca\.academyofartbarcelona\.com$ [OR]
      RewriteCond %{HTTP_HOST} ^www\.ca\.academyofartbarcelona\.com$
      RewriteRule ^/?$ "http\:\/\/academiadartbarcelona\.cat\/" [R=301,L]

    But, by checking the URLs outside the home at Google, you can see that there's no redirection working. For example:


    It still works! And it should be redirected to http://academiadartbarcelona.cat/professors/

    What's happening? What I'm doing wrong? :-S

  2. Tara
    Volunteer Moderator
    Posted 2 years ago #

    I'm trying to move the domain "ca.academyofartbarcelona.com" to "academiadartbarcelona.cat".

    Review this WP codex guide: http://codex.wordpress.org/Moving_WordPress#When_Your_Domain_Name_or_URLs_Change

Topic Closed

This topic has been closed to new replies.

About this Topic