Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Options +FollowSymlinks
- RewriteEngine On
- RewriteCond %{REQUEST_FILENAME} !-f
- RewriteCond %{REQUEST_FILENAME} !-d
- RewriteRule ^watch/([^/]+)/? view.php?id=$1 [NC,L]
- RewriteRule ^([0-9_-]+)/?$ index.php?id=$1 [L]
- RewriteRule ^([a-z-]+)/?$ search.php?q=$1 [NC,L]
- RewriteCond %{THE_REQUEST} \ /search(?:\.php|)\?q=([^\ &]+)
- RewriteRule ^ /%1? [L,R]
- RewriteCond %{HTTP_REFERER} !^$
- RewriteCond %{HTTP_REFERER} !^http(s)?://(www\.)?thomaskowalski.net [NC]
- RewriteRule \.(jpg|jpeg|png|mp4)$ - [NC,F,L]
- RewriteBase /
- RewriteRule ^index\.php$ - [L]
- # uploaded files
- RewriteRule ^([_0-9a-zA-Z-]+/)?files/(.+) wp-includes/ms-files.php?file=$2 [L]
- # add a trailing slash to /wp-admin
- RewriteRule ^([_0-9a-zA-Z-]+/)?wp-admin$ $1wp-admin/ [R=301,L]
- RewriteCond %{REQUEST_FILENAME} -f [OR]
- RewriteCond %{REQUEST_FILENAME} -d
- RewriteRule ^ - [L]
- RewriteRule ^([_0-9a-zA-Z-]+/)?(wp-(content|admin|includes).*) $2 [L]
- RewriteRule ^([_0-9a-zA-Z-]+/)?(.*\.php)$ $2 [L]
- RewriteRule . index.php [L]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement