Good
I have the friendly url routes in the htacess file I am viewing the users by url so by the profile file
But I wanted to now edit the profile of this user that is another file edit_profile.php but I wanted the url to look like this:
But I can not get it to work
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
# Rotas para o menu principal
RewriteRule ^(comer|dormir|comprar|servicos|lazer|o-que-visitar|login|recuperar- password|registo|contactos|invite|erro|actualizar-password)$ index.php?controller=$1
# Rotas para os estabelecimentos
RewriteRule ^estabelecimentos/([a-zA-Z-0-9-_]+)$ index.php? controller=estabelecimentos&option=tipo&tipo=$1 [L]
RewriteRule ^([a-zA-Z-0-9-_]+)$ index.php?controller=ver_estabelecimento&option=local&local=$1
# Rotas dos Users
RewriteRule ^users/([a-zA-Z-0-9-_]+)$ index.php?controller=perfil&option=user_id&user_id=$1
#Erro 404
ErrorDocument 404 /erro