forked from beverloo/peter.sh
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.htaccess
22 lines (18 loc) · 804 Bytes
/
.htaccess
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# Copyright 2016 Peter Beverloo. All rights reserved.
# Use of this source code is governed by the MIT license, a copy of which can
# be found in the LICENSE file.
# Enable PHP errors and warnings
php_flag display_startup_errors on
php_flag display_errors on
php_flag html_errors on
php_value error_reporting -1
# Disallow access to .git and .gitignore entirely.
RedirectMatch 404 /\.git
RedirectMatch 404 /\.gitignore
# Redirects to make the old blog content work
RewriteRule ^(style|javascript|images)/(.+?)$ /wordpress/wp-content/themes/default/$1/$2 [L]
RewriteRule ^chromium-switches(/)? /wordpress/experiments/chromium-command-line-switches/ [L,R=301]
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /wordpress/index.php [L]