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.
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"?
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..
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"
thatsrightjack
Member
Posted 2 years ago #
proxypreserve host had to be turned on