Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- link.com/teste.html ou link.com/teste.php
- Ai você sempre quis deixa-lo assim: link.com/teste
- Bom para fazer isso você terá que ter o arquivo ".htaccess" (Isso é de servidor Apache. Ex: Hostinger; Não funciona no seu pc! )
- Abra ele e cole este Código:
- HTML:
- RewriteEngine on
- RewriteCond %{REQUEST_FILENAME} !-d
- RewriteCond %{REQUEST_FILENAME}\.html -f
- RewriteRule ^(.*)$ $1.html
- PHP:
- RewriteEngine on
- RewriteCond %{REQUEST_FILENAME} !-d
- RewriteCond %{REQUEST_FILENAME}\.php -f
- RewriteRule ^(.*)$ $1.php
- pronto agora tanto faz acessa-lo como: link.com/teste; quanto link.com/teste.html
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement