How to remove a word from the page address with .htaccess?

I have an URL like this: example.com/portfolio/uncategorized/name/, and I need to get something like this: example.com/portfolio/name/.

The site in question, is on WordPress, so in the file .htaccess already has the following lines:

# BEGIN WordPress
<ifmodule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</ifmodule>
# END WordPress


How do I remove `uncategorized` from address? That is, I want the user when following the link example.com/portfolio/uncategorized/name redirected to example.com/portfolio/name/, and it has been given content that is at example.com/portfolio/uncategorized/name.

PS: If anything, we are not talking about the settings of the CNC of WordPress, because the post type in this case is not the usual post/page and 'portfolio' that's built into my current theme (fluxus).
September 26th 19 at 07:13
1 answer
September 26th 19 at 07:15
Something like that, not sure, already asleep:
RewriteRule (.*?)/uncategorized(.*) $1$2
I have a solution, which removed the word in the address, the problem is that I don't know how I to apply them correctly so that:

a) not to harm what is already there (to stick to, after, or in between?)
b) user received the content not the error message. - Lavada.OReilly67 commented on September 26th 19 at 07:18

Find more questions by tags ApachehtaccessPHPWordPress