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
- Does WordPress Change the .htaccess File When Updating?
- Move WordPress to subdirectory, keep ALL URLs
- 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)?
- Pretty Permalinks
- 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
- custom naming of search permalink /search/
- Change website URL without breaking links or images? WP 3.3
- Rewriting search permalink
- removing index.php IIS 7.5 webconfig
- Rewrite rule never matching
- Redirect user if it’s not logged in
- Custom url for a single page
- Using WP rather than .htaccess to redirect pages/posts
- Using ‘Primary Category’ in URL
- What happens when permalink settings are updated?
- custom permalink/shortlink with base62 encoded post ID
- Change of permalink structure – redirects in htaccess breaks the archive links
- How can I get the permalink of a post before it is published?
- Add a URL prefix to permalinks of News category and sub-categories of posts only
- How can I make my .htaccess file writeable by wp-admin?
- add new permalink structure from dynamic page
- echo post-permalink without http and www
- 404 with post name permalinks
- Confusion about how a URL is being parsed
- Permalinks not working
- Custom permalink for search and pagination
- WordPress 404 in development area
- Need Help Correct Regular Expression Redirect Code
- Custom Permalink
- Force wordpress to display page with same url structure as categories
- Redirect a Blogger Page URL to wordpress
- How to include sub directory in sitemap? [closed]
- Mod_Rewrite to show only last subcategory in URL
- Host frontpage via example.com and everything else via example.com/blog
- WordPress can generate numeric permalinks, which then 404
- Pre-populate Slug / Permalink with URL
- How to rewrite a URL to another rewritten URL without changing the address?
- How to use different domains for different blogs hosted in the same host in subdomains with .htaccess
- Custom permalinks in WordPress
- url rewrite .htaccess extension to permalink
- Unique one time use URL
- Changing WordPress routing to load the same page for different URLs
- cannot link a external url, present page url acting as parent url
- Test site pages go to main site
- Strange behavior: random HTTP error 500 fixed by visiting Permalinks settings page (htaccess issue with language code)
- Getting back a permalink from custom url
- how to prefer static page if it exists over wordpress page
- Permalink sub-routing catch-all
- Bulk append URL (add word to slug)
- Why will Pretty URLs not Work?
- How Can I Use a Custom AccessFileName?
- Conditional Permalink based on category?
- replicate url permalink after migrating to wordpress
- How to remove slug from front page?
- assets aren’t loading on a page but loads on others? slug permalink conflict?
- WordPress keeps removing query var from the URL
- Change Project permalink to custom URL
- How to construct a dynamic rewrite rule for child pages that passes more than one query var
- Got 404 error when changed siteurl via DB in WordPress
- Using a template file for a specific custom URL
- Cannot publish posts or pages when I change permalink structure
- Passing parameter through permalink structure
- rebuilding/ rewriting a url to make it SEO friendly
- Very strange behaviour related to htaccess and custom posts and custom posts substrings (BUG?)
- No Ones Been Able to Override my WordPress Rewrite Rule Issue!
- My permalinks for all pages and posts now include old page titles as parents/categories
- Imported posts using wrong domain name
- Using a taxonomy value as part of a post URL
- How do you put your own rules into .htaccess?
- WordPress home page showing 404 error
- Include language variable in url
- Permalinks is not working in my wordpress setup
- Use .htaccess to redirect homepage to its permalink
- 301 Redirect posts to newly added categories
- how to ensure url uses post_name and not query post id?
- Duplicate Content Issue with WordPress Permalink Structure and Primary Categories
- WordPress homepage shows default theme after migration – logged-out users see different content
- Updating failed. The response is not a valid JSON response. on Fedora