-
Notifications
You must be signed in to change notification settings - Fork 11
/
htaccess-bu
41 lines (33 loc) · 1.05 KB
/
htaccess-bu
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
php_flag log_errors on
php_value error_log /usr/home/openlab/public_html/php_error.log
# -FrontPage-
IndexIgnore .htaccess */.??* *~ *# */HEADER* */README* */_vti*
<Limit GET POST>
order deny,allow
deny from all
allow from all
</Limit>
<Limit PUT DELETE>
order deny,allow
deny from all
</Limit>
AuthName openlab.citytech.cuny.edu
AuthUserFile /usr/www/users/openlab/_vti_pvt/service.pwd
AuthGroupFile /usr/www/users/openlab/_vti_pvt/service.grp
RewriteEngine On
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).*) $1 [L]
RewriteRule ^[_0-9a-zA-Z-]+/(.*\.php)$ $1 [L]
RewriteRule . index.php [L]
#AuthUserFile /usr/www/users/openlab/.htpasswd
#AuthType Basic
#AuthName <E2><80><9C>OpenLab<E2><80><9D>
#Require valid-user