My wordpress site is working fine on my staging url. When I move it from staging to live url i.e from my subdomain to the root folder, all the inner pages (blogs, shop page etc.) is showing 404 error. However, the home page is showing up correctly.
Following are the steps that I took to move the files from subdomain to root:
Copy all the files in the staging folder in cpanel and paste it in the public_html folder.
Used this script to search and replace the url in the database.
I have checked the db and all the urls have been replaced correctly.
Thanks