forked from novius-os/novius-os
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.htaccess.shared-hosting
executable file
·32 lines (24 loc) · 1.35 KB
/
.htaccess.shared-hosting
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
# NOVIUS OS - Web OS for digital communication
#
# @copyright 2011 Novius
# @license GNU Affero General Public License v3 or (at your option) any later version
# http://www.gnu.org/licenses/agpl-3.0.html
# @link http://www.novius-os.org
Options +FollowSymLinks
# Replace novius-os-install-dir by the real Novius OS installed directory
ErrorDocument 404 /novius-os-install-dir/public/htdocs/novius-os/404.php
<IfModule xsendfile_module>
XSendFile On
</IfModule>
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} -f
RewriteRule - - [PT]
RewriteRule ^install.php public/install.php [L]
RewriteRule ^novius-os/(.*) public/htdocs/novius-os/$1 [PT]
RewriteRule ^(admin(|/.*))$ public/htdocs/novius-os/admin.php/$1 [QSA,PT]
RewriteRule ^(.*/|)$ public/htdocs/novius-os/front.php [QSA,PT]
RewriteRule ^(.+)\.html$ public/htdocs/novius-os/front.php [QSA,PT]
RewriteRule ^/?(static|data|media|cache)/(.*) public/$1/$2 [L]
RewriteRule ^/(.*) public/htdocs/$1 [L]
</IfModule>