Guest User

Untitled

a guest
Jan 13th, 2018
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. ## Remove .php -and- Force Trailing Slash
  2. RewriteCond %{REQUEST_FILENAME} !-d
  3. RewriteCond %{REQUEST_FILENAME}\.php -f
  4. RewriteRule ^(([^/]+/)*[^./]+)/$ $1.php
  5. RewriteCond %{REQUEST_FILENAME} !-f
  6. RewriteCond %{REQUEST_FILENAME} !-d
  7. RewriteCond %{REQUEST_URI} !(\.[a-zA-Z0-9]|/)$
  8. RewriteRule (.*)$ /$1/ [R=301,L]
Add Comment
Please, Sign In to add comment