I am trying to redirect an old URL to its new structure via htaccess. For example, instead of www.unawebcualquiera.org/contacto/ to www.unawebcualquiera.org/es/contacto /
Before changing to .htaccess I had this:
RewriteRule ^contacto/ contacto.php [L]
And now to redirect I'm tried with:
RewriteRule ^contacto/ contacto.php [L]
RedirectMatch 301 ^contacto/$ es/contacto/ [L,R=301]
But I returned the following error:
An internal error has occurred on the server and could not be complete your application An internal error has occurred in the server and your request could not be completed. Or the server is overloaded or there has been a failure in the execution of a CGI program.