Forums

[resolved] Server redirecting to localhost. (6 posts)

  1. thatsrightjack
    Member
    Posted 2 years ago #

    I have installed WordPress 2.8 on my host's server. They setup a sql db for me. IThe install worled oK, but trying to access the blog
    http://www.diagesis.com/blog i get redirected to http://localhost/blog/

    (in chrome I simply get page cannot be found)

    I have set both the wp_options siteurl and home to http://www.diagesis.com/blog (using phpMyAdmin).

    If I set wp_options home to http://localhost:11031/blog/ I get the home page loading OK, but all post links point to http://localhost:11031/blog/

    I found this on the web, but do know what it means:"Ensure Apache ServerName directive is set to the external IP/Domain name"

    thanks.

  2. esmi
    Theme Diva & Forum Moderator
    Posted 2 years ago #

  3. thatsrightjack
    Member
    Posted 2 years ago #

    In The above, the only way I could get the home page working was to set wp_options home to http://localhost:11031/blog But all links were obviosly pointing to the local host...

    I have now set wp_option home to be http://www.diagesis.com/blog and the page redirects back to http://localhost/blog/

    Has any of this to do with "Ensure Apache ServerName directive is set to the external IP/Domain name"?

  4. thewebhostingdir
    Member
    Posted 2 years ago #

    Did you have set up any kind of mod_rewrite rules for your blog?

    Check in .htaccess file if there are any redirection code exists..

  5. thatsrightjack
    Member
    Posted 2 years ago #

    There are no .htaccess files

    Even though the page redirects to http://localhost/blog/ the browser reports the page is not found.

    There is no error log but there is log entry that refers to:
    "http://www.diagesis.com/blog/wp-cron.php?doing_wp_cron"

  6. thatsrightjack
    Member
    Posted 2 years ago #

    proxypreserve host had to be turned on

Topic Closed

This topic has been closed to new replies.

About this Topic