My new site was initially set up with an IP address (say http://220.127.116.11/). 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.
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?
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?