My new site was initially set up with an IP address (say http://123.123.12.12/). I later changed the siteurl and homeurl to my domain (say xyz.com). I also pointed the domain to the IP address so I don't lose out on the indexing in search engines.
But now whenever I click on any of the links in the home page, it redirects back to http://123.123.12.12/ instead of going to http://123.123.12.12/newpage/
The anchor tag shows the URL as http://xyz.com/newpage/
Any relative URLs on any other pages work fine. But otherwise all links (from the menu) redirect to the home page.
To summarize, any urls saying http://xyz.com/somepage redirect to home page
Any ideas what I might be missing?
Thanks.
P.S. I changed the siteurl and homeurl in the database directly. Do I need to change it on the Wordpress Settings page as well?