Syed Raza Muhammad Ali — Blog

Thinking is Another way to stop yourself, but …

redirecting to localhost

Posted by Raza Ali on February 6, 2008

Issue: when you upload your wordpress site to server and import your DB, then opening your site url redirect to localhost domain. e.g; http://www.sample.com/mywordpress redirects to http://localhost/mywordpress.

Solution: When you upload your site with import db from your localhost, not configuring it on the server. wp-options,table, has the information to where to redirect it, so what you need delete all tables from your server DB except wp-options and export all tables from your localhost DB except wp-options then import these tables to your server DB. :)

One Response to “redirecting to localhost”

  1. Mihai said

    i had some troubles with this! based on your post i find out that you have to modify entry no.39 in table ‘wp_options’, option name ‘home’! i was tryng to access the blog with my personal ip ex: http://ip/wordpress/ and it was poining to http://localhost/wordpress/ making impossible to access from another computer on the internet ! thanks & forgive my poor english! that solve my problem.

Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <pre> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>