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
- change the blog in the url if you go from a specific page wordpress
- Processing data and redirecting with query string
- php script to change slug in post automatically
- wp_trim_words() does not work with my code Am I doing any mistake in my code?
- Dynamic content based on a URL parameter
- Colon is Missing In My Website Url in WordPress
- Changes in permalink structure in WordPress and how to apply to in-site links
- WordPress Persistent connection rule does not work for “posts”
- WordPress homepage infinite redirect
- WordPress every page is 404 not found including admin resources
- How to change redirection route to a php page for making it only accessible by logged-in members?
- WordPress returning 404 for multisite pages
- Redirect undesirable domain
- Extend PHP regex to cover “srcset” and “style” attributes
- How do I display the main domain for my WordPress install?
- My php header() function is not working [closed]
- Scrape external webpage for first image and add it to new post
- Search Query: how to construct a search string from two select elements?
- Problem with login form
- Get URL Parameters from referer
- Need help enqueueing webfonts
- Permalinks settings
- 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
- Having Issue on Redirecting With Session in WordPress
- Why is $wp->request empty in WordPress 6.0?
- Get the URL of the page from which an ajax request has been launched within ajax callback
- How to check if the current page is at a specified path in the URL?
- How to get post permalink url without a href
- get_template_directory_uri() providing wrong path for img
- Using a $GET parameter from a URL, to redirect to a URL (WordPress)
- How to pass a PHP $_GET variable and fetch/output it?
- stripping tags from excerpt in WordPress is not working
- Post’s ID pattern?
- Change product_base programmatically
- WordPress redirect redirecting too many times or not at all
- Divi change project category slug
- Using Argument from Function to Re-Direct Visitor (WordPress)
- I am receiving a pluggable.php warning sign on my only http:// page
- Login redirect. Check user meta and redirect accordingly
- Where to insert redirect code based on http_referer?
- Is this a correct usage of ob_start() in my WordPress project?
- How to allow download url redirection only if user logged in WordPress site?
- I’m unable to call img path using single quotes in an array?
- 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?
- Need to Modify a WordPress Shortcode with another wordpress shortcode
- Remove slugs from custom posts type
- .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
- Can’t change website Title on wordpress
- PHP Redirect condition
- Nginx WordPress and another Web app URL structure
- Search only working on front page (index) , not working on other pages
- How to use title attributes in sidebar widget?
- 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
- Call featured image url
- Creating customized php files in theme folder
- Creating a Category Taxonomy
- WordPress theme showing blank page
- How do I include an external PHP file in a subdir WordPress install?
- How to add PHP pagination to wordpress
- Use an anchor link to open an iframe inside a WordPress page
- Adding custom url to readmore link using get_permalink()
- How to set base url for php widget
- Comment_author_url doing nothing
- Redirect to current user page upon link click
- Strip hashtag off permalink with php
- Ajax URLs without #!, how to prevent falling into single.php on load or reload?
- Insert PHP code in Text
- Modifying WP URL handing code?
- How to deal with a GET variable of ‘name’?
- Permalinks: site.com/post-tite vs site.com/post-id/post-title for SEO and Speed
- Can not call .php files after switching to %postname%
- Writing a link cloaking plugin
- WP insert post Redirect after function has executed
- WordPress is removing query variables like page, p from the URL of a custom static page
- How to redirect non logged in mobile users to page on same site?