/%category%/%postname%-%post_id%.html
to
/%postname%-%post_id%.html
My .htaccess looks like this:
Options +FollowSymlinks
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
Options -Indexes
RewriteRule ^/(.*)/(.*).html$ hxxp://www.example.com/$2.html [r=301,nc]
A typical URL looks like:
hxxp://www.example.com/xxx/test-123.html
I know how to shorten the URL in WordPress but am concerned about indexed URLs in search engines which could take a while to go away.
I'd like incoming requests for it to be redirected to:
hxxp://www.example.com/test-123.html
(hxxp used to make it unclickable)
Suggestions welcome. Thanks.