Url Amigável reescrevendo todos os links do site
Bom dia, fiz um .htaccess e funciono porém ele esta reescrevendo todos os links do site, exemplo: menu>home era pra ser somente www.teste.com.br ele está www.teste.com.br/78/index.php. alguém tem ideia do que esta errado.
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
#SSL descomente as linhas abaixo para forçar HTTPS
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
RewriteCond %{HTTP_HOST} !^www\.
RewriteRule ^(.*)$ https://www.%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
RewriteRule ^vaga/([0-9]+)/([a-z0-9-]+)/?$ /vaga.php?id=$1&slug=$2 [NC,L]
RewriteRule ^/([a-z0-9-]+)/?$ /index.php?pg=$1 [NC,L]
Discussão (0)
Carregando comentários...