Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- RewriteEngine On
- # Redireciona
- RewriteCond %{REQUEST_METHOD} !^(PUT|POST)$ [NC] #ignora o POST e PUT
- RewriteCond %{THE_REQUEST} ^[A-Z]{3,}s([^.]+).php [NC]
- RewriteRule ^ %1 [R,NC,L]
- # Reescreve
- RewriteCond %{REQUEST_FILENAME} !-d
- RewriteCond %{REQUEST_FILENAME} !-f
- RewriteRule ^(.*)(/|)$ $1.php [L]
Add Comment
Please, Sign In to add comment