-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.htaccess
More file actions
20 lines (15 loc) · 858 Bytes
/
Copy path.htaccess
File metadata and controls
20 lines (15 loc) · 858 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
RewriteEngine On
# You may need to uncomment and set this one, if you install Up! in a subdirectory of your domain
# RewriteBase /
# The following RewriteCond rules catch calls to md files/non-existent files,
# as also replace fully mdwiki (when installed) explicit calls
# Uncommenting the following line will make all calls to .html files be rendered by Up!
# RewriteCond %{REQUEST_URI} .*\.html [OR]
# Uncommenting the following line will make all .txt files be rendered by Up! (caution: highly experimental!)
# RewriteCond %{REQUEST_URI} .*\.txt [OR]
RewriteCond %{REQUEST_URI} .*\.md [OR]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_URI} !.*\.(css|js|png|gif|jpg|pdf|ico)
RewriteRule ^ index.php [QSA,L]
# Fix a bug where mdwiki might be invoked, which might invoke index.php in turn for embedding
DirectoryIndex index.php index.html