I need to change all of a site's URLs, right away.
The current URL is in the following structure: www.mydomain.com/site/ And I would like the site folder to be removed from all internal urls, without having to tinker with the file structure.
Another change is more delicate:
www.meudominio.com.br/site/Produtos/view/13
for
www.meudominio.com.br/nome-do-produto-ou-da-noticia
I studied and tested some mod_rewrite codes from .HTACCESS but I could not solve the situation. I also tried CakePHP's Routes :: also unsuccessful.
.HTACCESS:
Options +FollowSymLinks
RewriteEngine On
RewriteRule ^site/Home http://www.meudominio.com.br/ [L]
RewriteRule ^site/([a-zA-Z0-9-]+)/([a-zA-Z0-9-]+) http://www.meudominio.com.br/ [L]
RewriteRule ^([a-zA-Z0-9-]+)/([a-zA-Z0-9-]+).*$ http://www.meudominio.com.br/$2 [L]