Support » Localhost Installs » URL change crash

Viewing 15 replies - 1 through 15 (of 17 total)
  • esmi

    (@esmi)

    Forum Moderator

    Change the urls back. See Changing_The_Site_URL for details of how to do this correctly without logging in.

    salmaak7

    (@salmaak7)

    I did change it and every other page is working properly except the home page. I can even access the dashboard and see that it’s changed!

    esmi

    (@esmi)

    Forum Moderator

    Please re-read my post above.

    salmaak7

    (@salmaak7)

    I read it, AND followed the instructions (Edit wp-config.php and Functions.php) which changed the WordPress Address (URL) to http://localhost:8888/wordpress/
    and the site address is the same i.e.
    Site Address (URL) http://localhost:8888/wordpress/

    The website is running now EXCEPT the home page. It keeps redirecting me to localhost/wordpress from http://localhost:8888/wordpress/
    Any ideas?
    I am really stuck!

    esmi

    (@esmi)

    Forum Moderator

    Edit wp-config.php and Functions.php

    No – you only use one of the methods outlined on that page – not two or more.

    salmaak7

    (@salmaak7)

    Okay, I’ve undone everything and only edited the wp-config.php this time. The homepage is still not working. I just don’t get why is it redirecting me to localhost/wordpress instead of http://localhost:8888/wordpress/

    esmi

    (@esmi)

    Forum Moderator

    So what have you added to your wp-config.php file?

    salmaak7

    (@salmaak7)

    I’ve added this: define(‘WP_HOME’,’http://localhost:8888/wordpress/’);
    define(‘WP_SITEURL’,’http://localhost:8888/wordpress/’);

    esmi

    (@esmi)

    Forum Moderator

    So you are trying to move WP from the root domain to a sub-folder? If “yes”, then you need to review Moving_WordPress.

    salmaak7

    (@salmaak7)

    No, I am not trying to move anything. I just want to access my home page and it’s not working…

    esmi

    (@esmi)

    Forum Moderator

    Where was WP originally installed on your server?

    salmaak7

    (@salmaak7)

    It was originally installed on Applications/Wordpress and I’m using MAMP
    Then I changed its location to Documents/server/wordpress. It was working fine until I changed the URL.

    esmi

    (@esmi)

    Forum Moderator

    So you moved the site after it was installed! You need to review Moving_WordPress.

    salmaak7

    (@salmaak7)

    Okay, now I read it and placed this: //FIXME: do comment/remove these hack lines. (once the database is updated)
    update_option(‘siteurl’, ‘http://localhost:8888/wordpress/’ );
    update_option(‘home’, ‘http://localhost:8888/wordpress/’ );
    in the wp-login.php file.

    And the homepage still doesn’t work.

    esmi

    (@esmi)

    Forum Moderator

    You have to follow all of the steps in Moving_WordPress.

Viewing 15 replies - 1 through 15 (of 17 total)
  • The topic ‘URL change crash’ is closed to new replies.