Advertisement
Guest User

Untitled

a guest
Nov 30th, 2015
137
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 0.99 KB | None | 0 0
  1. Options +FollowSymlinks
  2.  
  3. RewriteEngine On
  4. RewriteCond %{REQUEST_FILENAME} !-f
  5. RewriteCond %{REQUEST_FILENAME} !-d
  6. RewriteRule ^watch/([^/]+)/? view.php?id=$1 [NC,L]
  7. RewriteRule ^([0-9_-]+)/?$ index.php?id=$1 [L]
  8. RewriteRule ^([a-z-]+)/?$ search.php?q=$1 [NC,L]
  9. RewriteCond %{THE_REQUEST} \ /search(?:\.php|)\?q=([^\ &]+)
  10. RewriteRule ^ /%1? [L,R]
  11.  
  12. RewriteCond %{HTTP_REFERER} !^$
  13. RewriteCond %{HTTP_REFERER} !^http(s)?://(www\.)?thomaskowalski.net [NC]
  14. RewriteRule \.(jpg|jpeg|png|mp4)$ - [NC,F,L]
  15.  
  16. RewriteBase /
  17. RewriteRule ^index\.php$ - [L]
  18. # uploaded files
  19. RewriteRule ^([_0-9a-zA-Z-]+/)?files/(.+) wp-includes/ms-files.php?file=$2 [L]
  20. # add a trailing slash to /wp-admin
  21. RewriteRule ^([_0-9a-zA-Z-]+/)?wp-admin$ $1wp-admin/ [R=301,L]
  22. RewriteCond %{REQUEST_FILENAME} -f [OR]
  23. RewriteCond %{REQUEST_FILENAME} -d
  24. RewriteRule ^ - [L]
  25. RewriteRule ^([_0-9a-zA-Z-]+/)?(wp-(content|admin|includes).*) $2 [L]
  26. RewriteRule ^([_0-9a-zA-Z-]+/)?(.*\.php)$ $2 [L]
  27. RewriteRule . index.php [L]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement