home_url() links in wordpress site is getting redirected to some other url -


i have developed website in wordpress (wordpress 3.5) links : http://localhost:1053/wp later, make accessible other computers (outside intranet), mapped url : http://somesite.com/wp

i have changed wordpress address (url) , site address (url) in settings->general page in admin area. have changed links in navigation (wherever required).

now, issue when click on logo (link), redirects me other url (http://somesite.com:1053/wp). happens action of search form also.

i have used <?php echo home_url(); ?> in href. when check in page source, href shows http://somesite.com/wp still gets redirected http://somesite.com:1053/wp

every other relative link working fine.

i don't understand wrong.

any appreciated.

thanks

[solved]

i solved issue replacing statement <?php echo home_url(); ?> <?php echo esc_url( home_url( '/' ) ); ?>.

run bad boy: http://interconnectit.com/products/search-and-replace-for-wordpress-databases/

it run full find , replace on database (old url new url), updating length of serialized arrays. make sure delete when you're done!


Comments

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

node.js - Bad Request - node js ajax post -

uitableview - Create and use custom prototype table cells in xamarin ios using storyboard -