Created
September 27, 2017 13:11
-
-
Save profburnes/479b17dc521df1438b0fb691b3813848 to your computer and use it in GitHub Desktop.
Exemplo simples de .htaccess para URL Amigáveis
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
RewriteEngine on | |
RewriteCond %{SCRIPT_FILENAME} !-f | |
RewriteCond %{SCRIPT_FILENAME} !-d | |
RewriteRule ^(.*)$ index.php?param=$1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Boa! talvez seja necessário usar a condição If para verificar se este módulo Rewrite está ativado!
Fonte: http://www.linhadecodigo.com.br/artigo/3555/aprendendo-urls-amigaveis.aspx#ixzz7pMFd91tm