Hi,
I have wordpress website. I want my service page to be visible for all the U.S states. For that I created a URL rewrite rule to show state name on URL like this example.com/service-page-statename
And also I added shortcode functionalty to display state name inside the content. Everything is working fine I created URL for all the U.S state and deployed in on my production site.
All the above process, I did it on functions.php file. And all these process are initially done on my demo site.
Latest week on Nov 7 my wordpress theme file got replaced automatically with old file on both demo site and production site, I don't know how it happend. So I replaced the latest functions.php file on production site and it is working fine. But same file when I update it on demo site, it is not working. The state based URL's redirected to service page example.com/service-page.
I need a solution for it. Why it is redirecting only on demo site.