WordPress.org

Support

Support » Installation » Loop redirection when changing Blog address (URL)

Loop redirection when changing Blog address (URL)

  • Good day,

    I followed this Giving WordPress its Own Directory guide and successfully separate the blog homepage to be different from the directory. As my provider is Plusnet, the URLs in Options look like following,

    WordPress address: http://ccgi.username.plus.com/wordpress
    Blog address: http://ccgi.username.plus.com

    It worked OK as so far.

    ————————————————–

    Not until I changed the Blog address to a domain I bought before the problem occured. Let’s call the domain name “domainname”.

    So I changed the Blog address to “http://www.domainname.com” and redirect DSN to “ccgi.username.plus.com” where “index.php” is under.

    And here is the scripts in “inder.php” look like.

    <?php
    /* Short and sweet */
    define(‘WP_USE_THEMES’, true);
    require(‘./wordpress/wp-blog-header.php’);
    ?>

    As I tested the URL, “http://www.domainname.com”, the redirection loop started. After the loop stoped the message on Firefox is:

    The page isn’t redirecting properly
    Firefox has detected that the server is redirecting the request for this address in a way that will never complete.
    * This problem can sometimes be caused by disabling or refusing to accept cookies.

    Could anyone save me from this frustration?

    Thank you for the time in advance.

Viewing 5 replies - 1 through 5 (of 5 total)
  • As I suspected it is the problem caused by “.htaccess” I check again the permalink structure.

    # BEGIN WordPress

    # END WordPress

    There are two “.htaccess” files. One is under “http://ccgi.username.plus.com” and the other one “http://ccgi.username.plus.com/wordpress”.

    I have tried to recreat “.htaccess” by using host’s control panel several times but they both all look the same.

    Any suggestions?

    Let me rephrase my question again.

    1) Installed my wordpress in “http://ccgi.username.plus.com/wordpress”

    2) Copyed the “index.php” & “.htaccess” to “http://ccgi.username.plus.com/”

    3) Bought a domain “domainname.com”

    Want all URL for “ccgi.username.plus.com” to be replaced with “www.domainname.com”.

    Could anyone have a look at the REPLY in PlusNet community & let me know how you think?

    Moderator Samuel Wood (Otto)

    @otto42

    WordPress.org Tech Dude

    Do you have http://www.domainname.com doing some kind of forwarding or redirection to ccgi.username.plus.com? If so, then that won’t work.

    As I said, in 3)

    Bought a domain “domainname.com

    If I only redirect/forward from “domainname.com“, the URL would go back to ccgi.username.plus.com/blah blah blah after I click the links within the blog.

    Cos I want all URL for “ccgi.username.plus.com” to be replaced with “http://www.domainname.com“.

    So I changed “blog address” in WordPress Admin panel. But this caused redirection loop. (Not sure if it is bacause it is pointing to a CCGI space)

    As the PlusNet community suggested, I should transfer the domain hosting to PlusNet then they will point “http://www.domainname.com” to the CCGI space for me.

    I am just wondering if this is the only solution.

    Moderator Samuel Wood (Otto)

    @otto42

    WordPress.org Tech Dude

    Yes, that is the only solution. A redirect/forward will not work in the way you want it to work.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Loop redirection when changing Blog address (URL)’ is closed to new replies.