I think the problem comes from the rewrite rules that had been saved when you developed the site locally. To fix it, you should go to Settings -> Permalinks and set the permalink structure again. Note that, you may just click on the save button, that will flush the rewrite rules for you.
Related Posts:
- How to get URL of current page displayed?
- How is WordPress manipulating the posts like there are folders?
- How to use $_GET function WordPress backend
- Create custom permalinks to show Custom Post Type’s relationship?
- How to define a rule in functions.php that ONLY disables the default wp functionality that undesirably changes ‘&’ to ‘#038;’?
- Allow two posts (from different categories) to have the same slug
- 404 on old link after changing post url
- how can i redirect dynamic URL in worpress base on ID in htaccess or wp-config or function.php
- Rewrite rule not working, but only when parameter is text
- Get WordPress username to customize url
- WordPress/NGINX not respecting the category URL for new posts
- How do I generate formatted permalinks as specified in backend options?
- redirect 301 with special character like WIX site “#!”
- Get permalink for a post from inside WordPress and route to a related site
- Remove /category/ from category (archive) page URLs (without using a plugin)
- How to create a WordPress PAGE in another folder?
- How to extract URLs from wordpress taxonomies
- Processing data and redirecting with query string
- How do I make a redirect in PHP?
- Encode text string being appended as query to URL [closed]
- Is it safe to use $_SERVER[‘REQUEST_URI’]?
- The correct method to pass query vars in AJAX using ajaxurl
- How to check if feed URL was requested?
- PHP – redirect https to http and www to non-www
- What is the best practice for escaping data URIs?
- Facebook Comment Count
- urlencoding of the_title() doesn’t work?
- Redirect to Page after Post Submit
- Insert code when users come from an specific referer
- Is Auto Post recognition a WordPress feature? How to turn it off?
- WordPress template_include filter not working properly
- Add filename to attachment page url
- Featured image fallback link to permalink
- PHP If user is logged in & on home page redirect
- Get canonical link
- Remove query string specific key value
- Echo URL of large version of Featured Image
- WordPress does not load page.php, return 404.php
- 200 Rewrite blog post links
- wp_trim_words() does not work with my code Am I doing any mistake in my code?
- WordPress Persistent connection rule does not work for “posts”
- Extend PHP regex to cover “srcset” and “style” attributes
- My php header() function is not working [closed]
- Get URL Parameters from referer
- Set Cache-Control header for 301 redirects
- How to redirect users based on role and content of redirect_to?
- Moving code from theme header to functions.php
- Showing latest post without 301 redirect
- Using a $GET parameter from a URL, to redirect to a URL (WordPress)
- Post’s ID pattern?
- Divi change project category slug
- Using Argument from Function to Re-Direct Visitor (WordPress)
- Custom post type permalinks do not appear using the link functions
- How to Handle Going Backwards in Navigation When Referrer in PHP/JavaScript won’t work?
- .html end of URl affected to SEO?
- change default RSS feed URL
- How do i add slugs to a URL, but still redirecting to the same page
- Nginx WordPress and another Web app URL structure
- how to get attached file url for current post?
- how to edit a specific post slug using a php code?
- Manually Create PHP Page For A Redirect
- Creating customized php files in theme folder
- Creating a Category Taxonomy
- Comment_author_url doing nothing
- Insert PHP code in Text
- Can not call .php files after switching to %postname%
- Workaround for og:image unsupported webp image type, Yoast SEO?
- understand what code is doing when prepending /blog
- WordPress url By country code?
- Get nice name of category from slug (remove dashes of category)
- url not using query string no longer working
- Implementing a multilingual WordPress site by installing several instances of WordPress and redirecting
- Add Link to PHP message
- Current WordPress Page Title as Search Parameter into A Tag
- Remove all feeds and return custom 404 page
- Permalink doesn’t navigate to post (changes only url)
- Permalink changes after several minutes after saving post
- How to edit button permalink inside function.php using a child theme?
- How does one make a URL return dynamic JSON with custom Content Type?
- Require advice handling a URL redirect from a Third Party. URL Params need to populate and then forward to payment
- wp-login.php?redirect_to=https problem
- ERR_TOO_MANY_REDIRECTS / To Force SSL Logins and SSL Admin Access
- 403 Forbidden Localhost Wamp Apache Php
- Override 404 when navigating to single php file
- changing static link to relative link
- Permalinks and custom PHP application
- 301 redirect from webpage to wordpress page in the same root
- Submitting my form to the database and then redirecting to payment site
- Create a dynamic buddupress tab
- WordPress Rewrite Issue
- Would it be possible to route WordPress Through an MVC Application
- Make a permalink to the most recent blog post
- Link to external page has wordpress blog-url inside
- PHP code for link with text
- Accessing WordPress Functions get_permalink() in Vanilla PHP?
- WPMU – How to echo only one URL
- wp_login_url always redirects me to wp-admin
- Create a custom plugin with dynamic child pages listing database records
- Remove slug of multiple custom post types with and without hierarchical
- Post returns 404 after changing the permalink using post_type_link