forked from URW-CE-IT/veloframe
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.htaccess
More file actions
15 lines (12 loc) · 675 Bytes
/
Copy path.htaccess
File metadata and controls
15 lines (12 loc) · 675 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
RewriteEngine On
# Please change the RewriteBase to the Base Directory of your public domain path to WebFramework (e.G. example.org/webframework/ -> RewriteBase /webframework/)
RewriteBase /
# Exclude requests for img, css, and js directories
# Uncomment the following line if you want to exclude these directories from being rewritten
# and automatically optimized by the framework.
# RewriteRule ^(img|css|js)/(.*)$ - [L]
# Only rewrite if the request is not for a real file or directory
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
# Capture the entire path and pass it as a GET parameter "path"
RewriteRule ^(.*)$ index.php?rpath=$1 [QSA,L]