-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.htaccess
More file actions
28 lines (22 loc) · 751 Bytes
/
.htaccess
File metadata and controls
28 lines (22 loc) · 751 Bytes
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
Options +FollowSymLinks -Indexes
# Options +FollowSymLinks +Indexes
# IndexIgnore */*
ErrorDocument 403 "you don't even *go* here."
# ErrorDocument 500 "is *this* thing on?"
# Turn on the RewriteEngine
RewriteEngine On
# delete trailing slash (not sure this works)
# or maybe it works -- but not for directories?
# RewriteCond %{REQUEST_FILENAME} !-d
# RewriteCond %{REQUEST_URI} (.+)/$
# RewriteRule ^ %1 [L,R=301]
# remove .php
# RewriteCond %{REQUEST_FILENAME}.php -f
# RewriteRule !.*\.php$ %{REQUEST_FILENAME}.php [L]
# direct everything to index.php
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^.*$ index.php [L]
# change upload limit
php_value upload_max_filesize 100M
php_value post_max_size 102M