.htaccess removing numbers

Hello,

I’d like to remove a number from my URL.
It is currently like this:
https://www.example.com/101/site-title

However, I’d like it to be:
https://www.example.com/site-title

Thus removing the 101 number from the URL. Any ideas?

my .htaccess file is below:

RewriteEngine On
# If an existing asset or directory is requested go to it as it is
RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} -f [OR]
RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} -d
RewriteRule ^ - [L]
RewriteRule ^(.*)-[0-9]+\.html$ /$1/ [L,R=301]
# If the requested resource doesn't exist, use index.html
RewriteRule ^ /index.html

Thank you

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.