Forum Moderators: rogerd & travelin cat

Message Too Old, No Replies

My URL parameter with shortcode is stop working.

         

karthyy

6:08 am on Nov 15, 2023 (gmt 0)

Top Contributors Of The Month



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.

not2easy

2:56 pm on Nov 16, 2023 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



Hi karthyy and welcome to WebmasterWorld [webmasterworld.com]

Look for the differences in the .htaccess file for the demo site compared to the production site .htaccess file.

As for how a theme can be replaced by an older theme, that is more troubling. You should have a current backup of all WP files and your .sql file at all times. I would look at your access logs to see when and how the theme files were changed.