I accidentally found a solution.
I was using a local XAMPP installation and there was no way around it.
Though when I uploaded the site to a live server it worked fine.
I hope this helps someone in the future.
I’ve seen a lot of people with the same issue but never saw a solution…
Related Posts:
- mod-rewrite exception? keep #hash in matching urls?
- remove “index.php” from permalinks
- “.#[random-char-string]” being inserted at end of URLs
- How to map permalinks with accented letters to sanitized slugs?
- Remove subfolders from URL
- Only default permalink is working mod_rewrite enabled
- URL rewriting: removing the site’s basename for a specific category
- .htaccess rewriterule being ignored – tyring to remove dates from WP posts
- WordPress Page Not Found if Permalink Settings is Postname
- Access posts while mod_rewrite is broken
- mod-rewrite rules grabs “broken permalinks”, too
- Remove/hide a specify category-name from the url
- Pretty permalinks (again)
- When using number in url it is redircting to same page but when using character it redirects to 404
- customize urls displayed by previous_post_link and next_post_link
- .htaccess not working in WordPress
- Standard Htaccess directives disappear by themselves
- How does WordPress create URLs that Apache knows about?
- Stop WordPress appending `-2` to the end of my url after i change it
- Get default permalink structure from pretty URL’s
- Get current URL (permalink) without /page/{pagenum}/
- How to get pretty URLs with add_query_arg in permalinks
- Change author permalink
- Creating custom permalink structure for languages
- How to remove dates from existing permalinks?
- Setting up WordPress with Custom Permalinks and no .htaccess File?
- Getting the Site URL Including the Front Base
- Does WordPress Change the .htaccess File When Updating?
- How to use relative links on my pages?
- WordPress Permalink changes to question mark (?) in URL
- Adding another word in front of post url
- Move WordPress to subdirectory, keep ALL URLs
- My permalinks are broken! Can I use mod_rewrite to ignore a physical file?
- How to prevent apostrophes and quotes from appearing in permalinks?
- Removing hierarchical pages in the permalink
- 301 Redirects for Changed Permalink Structure & Category Base
- Permalinks to Custom does not work (out of box)
- Update URL Snippet to Canonical Permalink URL
- WordPress permalinks Yahoo hosting(no .htaccess allowed)
- why does anchor name add a slash to url?
- How do I turn off 301 redirecting posts (not canonical)?
- mod_rewrite enabled but Permalinks show index.php
- Permalink Issues by Installing WordPress in Subdirectory / Subfolder
- Passing variables through permalink structure
- URL Rewrite + Page + Custom Post Type = Unusual Redirect
- Pretty Permalinks
- How to create a permalink structure for posts in a specific category
- How to get url of a post from admin panel
- How to Remove Slug From Database?
- How to make draft posts or posts in review accessible via full url / slug?
- Without index.php in permalinks I get 404 across site
- Changing Permalinks to a Custom Permalink causes a 404 Error [no matter what I do]
- Limiting the number of words or characters in the slug/permalink
- flexible rewrite ‘ramble’ URLs with WordPress
- How to increase the character limit for post name of 200?
- htaccess or redirect to cloak portion of a link?
- How to get the post id from a permalink?
- WordPress overrides the GET variables, (page_id) set in HTACCESS
- Custom rewrite rules for feeds of custom queries (query_var query strings in URL)?
- custom naming of search permalink /search/
- Auto 301 to full post permalink? (using /posts/%post_id%/%postname%)
- Changing URL from /%postname%/%post_id to /%category%/%postname%/%post_id%
- Using only %postname%
- Change website URL without breaking links or images? WP 3.3
- removed index.php now all pages 404
- Rewriting search permalink
- removing index.php IIS 7.5 webconfig
- Rewrite rule never matching
- wordpress permalinks tweeks
- Getting a 500 internal server error ONLY on wp-admin/options-permalink.php
- WordPress 3.4 Permalinks Redirection Problem
- Redirect user if it’s not logged in
- Make attachment pages require a base url
- Custom url for a single page
- Using WP rather than .htaccess to redirect pages/posts
- How to Remove -14 from WordPress URL (Permalink)
- How to Modify Existing Rewrite Rules?
- .htaccess – Redirect duplicated post ended in ‘-number/’ to the same url without the -number/
- Using ‘Primary Category’ in URL
- What happens when permalink settings are updated?
- display URL or permalink instead of page title in dashboard
- htaccess strip url
- How to get the perfect WordPress, WooCommerce, Custom Post Type pretty permalinks?
- WordPress keep redirecting me to random URLs
- Permalinks is not working in my wordpress setup
- Use .htaccess to redirect homepage to its permalink
- Remove parent product category slug from product_cat url woocommerce
- 301 Redirect posts to newly added categories
- Settings > Permalinks – mod_rewrite ineffective if expression not preceded by /index.php/
- How to use ‘blogs.dir’ as media upload instead of ‘uploads’ directory in WordPress multisite setup
- Change default URL (or permalinks) in the back-end
- Accidentally Changed Permalink Structure
- how to ensure url uses post_name and not query post id?
- Best way to approach creating a sitemap with unique URLS (No Permalink Changes)
- How to Stop WordPress Change Slug Automatically Same as Title When Publish?
- Duplicate Content Issue with WordPress Permalink Structure and Primary Categories
- Get Page URl when changing slug and permalink
- Can’t Remove Unnecessary Slug
- WordPress homepage shows default theme after migration – logged-out users see different content
- After post URL change also automatically change references in posts to that new URL?