Turns out this was caused by IIS. If you already have <action type="Rewrite" url="index.php" />
in your web.config, that should be enough with this addition to your index.php
in the WordPress root installation directory
if (isset($_SERVER['UNENCODED_URL'])) {
$_SERVER['REQUEST_URI'] = $_SERVER['UNENCODED_URL'];
}
The php code is quite self explanatory.
Related Posts:
- WooCommerce return 404 on category pages
- Permalinks for WooCommerce Categories and Subcategories
- Can two products with the same name but different category produce unique URLs?
- Add .html to Woocommerce permalinks [closed]
- Woocommerce Product Attribute Permalink doesn’t work?
- remove product-category base but still redirect to page with same permalink
- Woocommerce subcategory 404
- Add sku to product url woocommerce [closed]
- WordPress rewrite_rules_array rule not working properly
- Permalinks problem woocommerce no separating slash between categories
- Woocommerce product page 404 not found
- Added .html to Woocommerce permalink but pagination don’t work!
- WooCommerce product permalink changed
- Add a product attribute to permalink in WooCommerce
- Single product link in woocomerce
- permalinks url with woocommerce
- How to get the perfect WordPress, WooCommerce, Custom Post Type pretty permalinks?
- Change media item permalink
- Creating custom permalink structure for languages
- Permalink not working for page without title
- What is the difference between get_permalink vs get_the_permalink?
- Is the permalink structure /%post_id%/%postname% faster or slower than just /%postname%?
- Using underscores instead of hyphens in the permalink
- How can I force WordPress to redirect to canonical permalinks?
- 404 on category.php pagination
- flexible rewrite ‘ramble’ URLs with WordPress
- Changing pemalink structure to /%post_id%/%postname%/
- Relative or Absolute Paths for Flash Video Player Files
- Update Old Links To Pretty Permalinks Custom Post Type
- WordPress Permalinks %postname% for RSS2 Feed URL
- remove permalink trailing slash
- Use Single Blog Post as Site Front Page Without Redirect
- wordpress permalinks tweeks
- Redirect old permalinks with Month and name to Post name on new site
- .htaccess – Redirect duplicated post ended in ‘-number/’ to the same url without the -number/
- WordPress Permalinks on Mac OSX Server 5 (El Capitan)
- How to find out who handles a permalink?
- Getting links to work the same on development and production
- Permalink /%category%/%postname%/ returns 404 on OSX
- Page Attachment Permalink Structure based on Menu Order?
- stop the_permalink printing and save as variable?
- Setting up two separate blogs while using WordPress as a CMS
- Custom theme navigation
- get permalink and append it
- How to redirect to correct pages after permalink structure change
- Moving local wordpress page to a real server subdomain broke my permalinks?
- Remove parent category from permalink but keep breadcrumbs structure
- Only plain permalinks working
- next_posts_link URL does not include name of custom post type
- How to remove specific category from URL in WordPress
- How to set permalinks when posts and pages have different URL structures?
- redirect/ %category%/%postname%.html to /%category%/%postname%
- WordPress disallows changing page to a specific permalink
- Permalink Doesnt Work – URL Not Found
- WordPress 4.4 old permalink redirect
- 404 when going to /blog
- WordPress keeps giving me the wrong permalink
- Empty permalinks settings in .htaccess
- Rewriting single post url; add_rewrite_rule problem?
- curl problem or permalinks
- Multiple permalinks
- Redirect From Url To Url
- how do prevent wordpress from creating permalinks for media files
- custom query var NOT working on a plain permalink: http://10.8.10.9/?page_id=1774/?location=968&floor=1
- How to flush Global query variables in wordpress?
- How to disable permalinks to some custom post content?
- Changing permalink structure and domain
- How to add a base/front slug/url to specific post types?
- How to use page jumps to top of banner and page title?
- Permalinks not working in WordPress
- Why does enabling Permalinks make pages not found?
- Problem by $output and permalinks
- Permalinks by Post Name Are Not Working
- WordPress upgrade from 2.7 to 3.3 Permalink problem
- Change url of page according to my requirements in wordpress
- I use wordpress wp-page navi
- Multiple Taxonomy Items for Separate URLs
- MySQL-inserted custom taxonomy term lead to 404, flush rewrites doesn’t help
- Post name permalinks File not found — Mac High Sierra
- Permalink issue with WordPress Site at domain root and another WordPress Site in a Subfolder
- Custom optional parameter in page URL
- Posts containing a specific tag and a category in one permalink
- Create new URL structure for custom post types
- append current user-id to all internal permalinks
- How to find a page in admin based on it’s permalink
- Page returns 404 for specific permalink
- issue with the_permalink
- Pagination links for taxonomy archive page 404 error on every page except first
- Facebook Share Permalink Javascript href
- Change all pages permalinks instead of hierarchical to have id of the page
- where is the media permalink info stored in database?
- Links after changing hosting and domain
- Custom permalink structure for custom post type results in 404
- ?posts_type=xxx not rewritten
- Change permalink when page category selected in admin
- Category pagination first link works, remaining don’t
- Custom rewrites for pages and categories
- Why doesn’t my page know it’s a page (won’t return true for is_page())?
- How to make my custom permalink pull up the correct post
- How to Set Both Category and Sub-Category Level at Root. It should also obey post rule as /category/sample-post and /sub-catgeory/sample-post?