I tried to do this myself, but I am a newbie with regex.
I have this URL:
http://[DOMAIN]/[category]/27466-some-article-is-here
Which should redirect to this URL:
http://[DOMAIN]/[category]/some-article-is-here
I simply want to remove the ID from the URL. The category could be anything, which I want to keep.
How do I achieve this?
UPDATE: I adjusted the Redirect from @taduuda to this:
RewriteRule ^(.*)\/[\d]*\-(.*)$ $1/$
This looks good with a testing tool, but this still doesn't work on my wordpress site.
My htaccess:
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
# BEGIN - Custom Redirects
RedirectMatch 301 /heute(.*) /$1
RewriteRule ^(.*)\/[\d]*\-(.*)$ $1/$2
# END - Custom Redirects
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress