I have a URL on my website: https://www.miweb.com/componente/nombre/contratar
I would like it to not show "name" because the company has changed, but that the URL continues to lead to the same place, because if the contract does not work.
Is it possible to show the user a URL but that it is pointing to the real one?
I've done it this way in the .htaccess file with mod_rewrite, but it just redirects me and of course, error 404 comes out.
RewriteEngine On
Rewritebase /
<IfModule mod_rewrite.c>
RewriteRule ^componente/nombre/contratar$ http://%{HTTP_HOST}/componente/contratar$1 [R=302,L]
</IfModule>
How can I solve it?