I’m reaching out for assistance with an issue regarding the modification of taxonomy URLs. The original URL structure is as follows: https://domain.eu/listing-category/auto/
The code works in the sense that the desired URL structure is updated in the admin area. However, when I try to access the new URL in a browser, the content doesn’t load, and I receive a 404 error.
Steps I’ve Already Tried:
Permalink Settings Refresh: I saved the settings again under Settings > Permalinks.
Cache Clearing: I cleared both the website’s cache and my browser cache.
Unfortunately, these steps didn’t resolve the issue.
What could be causing this problem? Are there any additional steps or code adjustments I can implement to ensure the new URL structure works properly and the content loads without errors?
Problem is : if user “shortens” /cat-freelances/some-cat/ to /cat-freelances/
it leads to a 404 page.
If I want to do a simple redirect via .htaccess from /cat-freelances/ to /freelances/, it will also redirect “children” pages, creating as many 404 pages, hence not a proper solution.
The solution is as follows :
#redirect root "page" /cat-freelances/ to /freelances/ but not children pages.
RewriteCond %{REQUEST_URI} ^/cat-freelances/?$ [NC]
RewriteRule ^ /freelances/ [R=301,L]