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
- Stop WordPress appending `-2` to the end of my url after i change it
- Get current URL (permalink) without /page/{pagenum}/
- How to get pretty URLs with add_query_arg in permalinks
- Does WordPress Change the .htaccess File When Updating?
- Permalinks to Custom does not work (out of box)
- why does anchor name add a slash to url?
- Permalink Issues by Installing WordPress in Subdirectory / Subfolder
- How to create a permalink structure for posts in a specific category
- 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
- How to increase the character limit for post name of 200?
- WordPress overrides the GET variables, (page_id) set in HTACCESS
- custom naming of search permalink /search/
- Changing URL from /%postname%/%post_id to /%category%/%postname%/%post_id%
- Change website URL without breaking links or images? WP 3.3
- Rewriting search permalink
- Rewrite rule never matching
- WordPress 3.4 Permalinks Redirection Problem
- Redirect user if it’s not logged in
- Custom url for a single page
- Using ‘Primary Category’ in URL
- WordPress redirection problem after moving to a new server?
- Change of permalink structure – redirects in htaccess breaks the archive links
- WP Site in subdirectory Joomla! Site – Permalinks not working
- Add a URL prefix to permalinks of News category and sub-categories of posts only
- 404 with post name permalinks
- Confusion about how a URL is being parsed
- How to protect htaccess so it can’t be overwritten?
- Permalinks not working
- Need Help Correct Regular Expression Redirect Code
- wordpress api using rest_route for other pages
- Permalinks settings page blank
- 301 Redirects Result in 404 for WordPress Search Query Strings
- After updating to 4.8 permalinks will not work (all 404)
- Force wordpress to display page with same url structure as categories
- WordPress Sub domain
- How can i have a custom post type with more slugs for each post?
- Redirecting all posts after changing URL structure with htaccess
- Mod_Rewrite to show only last subcategory in URL
- Redirect all posts permalinks from “.html” to “/”
- 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 use all tags in post permalinks
- Allow Permalinks to Work with and without Hyphens
- url rewrite .htaccess extension to permalink
- Remove parent page from url
- Problem with parent page slug only in WordPress admin
- “-2” Being added to end of URL (no duplicate pages, no pages in trash)
- Change permalinks for specific pages
- How Can I Use a Custom AccessFileName?
- xammp server permalink by postname not working
- Custom permalink structure only saves with index.php inserted
- replacing post ID by custom post name in url
- Need to capture “keyword” added to the end of the post, even with “pretty permalinks”
- Already have htaccess but permalink settings not working. Getting 404
- Post with no tag permalink problem
- assets aren’t loading on a page but loads on others? slug permalink conflict?
- .htaccess to redirect to a wp page
- Change Project permalink to custom URL
- Got 404 error when changed siteurl via DB in WordPress
- Category URL’s 404 after setting category base to ‘.’
- All files in public_html, Cannot launch WordPress site via wp-admin
- Extra url paths as variable
- How to create a standard WP Page that has the same url as an archive
- Can I add a rewrite rule in htaccess to remove the multisite subdirectory from the URL?
- How to change the URL using rewrite rule in wordpress
- Get value from URL with different types of parameters
- a way to support totally different url structure
- Page permalink redirects to home page
- How to change URL of my pages?
- Accessible Subcategory URL’s pages without using .php hack
- Removing or hiding slug/permalink from htaccess
- Once redirected by Rewrite rules, how can WordPress know the page?
- Custom Permalink Base
- Files placed in directory with wordpress 404
- Change permalink in wp-property
- 404 posts error after 301 redirection of changed category / tag base
- How to get the perfect WordPress, WooCommerce, Custom Post Type pretty permalinks?
- WordPress keep redirecting me to random URLs
- Remove parent product category slug from product_cat url woocommerce
- How to use ‘blogs.dir’ as media upload instead of ‘uploads’ directory in WordPress multisite setup