Forums

Changing the Blog address (URI) causes problem (6 posts)

  1. AlternativePhotography
    Member
    Posted 2 years ago #

    I have a static website. I am moving it to WordPress. I've installed WP in a folder called /wp/. During the tranfer the WordPress address (URI) was http://www.example.com/wp/
    and the Blog address (URI) was the same.
    Now, that I'm done, I want to change the blog url to be in the root:
    http://www.example.com
    And everything stops working. Why? It just gives me "Page not found" or "Internal server error"
    I've read this:
    http://codex.wordpress.org/Moving_WordPress
    But, it does not give any clues to why. Any ideas, anyone?

  2. Scofield
    Member
    Posted 2 years ago #

    You can try to edit your .htaccess

  3. Colombine
    Member
    Posted 2 years ago #

    Did you change "siteurl" and "home" in table wp_options in your database? You should be able to use phpMyAdmin to do this.

  4. Shane G.
    Member
    Posted 2 years ago #

    Hi,

    Also refer this article:

    http://codex.wordpress.org/Changing_The_Site_URL

    Thanks,

    Shane G.

  5. AlternativePhotography
    Member
    Posted 2 years ago #

    Hi all, thank you so much for all your suggestions, tried them all, but no luck...

    @Scofield

    My .htaccess file looks like this:

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /wp/
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /wp/index.php [L]
    </IfModule>
    
    # END WordPress

    I changed it to:

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    
    # END WordPress

    But that did not work, probably did not change it right?

    @Colombine
    I installed through Bluehost, I really have no idea how to change database stuff... a pointer, please?

    @Shane G.
    Read the article, and tried the first thing: editing the wp-config.php by adding:

    define('WP_HOME','http://example.com');
    define('WP_SITEURL','http://example.com');

    It made my admin panel disappear.... a little scary i think! I reverted and now it's back. Phew!

  6. bh_WP_fan
    Member
    Posted 2 years ago #

    See this article for changing the entries in your database: http://www.tamba2.org.uk/wordpress/site-url/

    Once you get in there, go to Settings > Permalinks, and double-check that your permalinks are set as they should be, if not, then set them as they should be, either way, click to save the settings. If you still have problems with some of your pages, change your permalink settings and change them back again then save again. Also try deactivating plugins.

    If, after that, you still have problems, post a link to your site here so someone can take a look at it.

Topic Closed

This topic has been closed to new replies.

About this Topic