-
-
Notifications
You must be signed in to change notification settings - Fork 28
/
.htaccess
executable file
·21 lines (17 loc) · 942 Bytes
/
.htaccess
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<IfModule mod_rewrite.c>
RewriteEngine on
## Uncomment the below "#RewriteBase /" (remove "#") if pH2Date is installed in a folder, and add the folder name after the slash "/"
## Example: If pH2Date is installed in "/public_html/ph2date/", then it should be "RewriteBase /ph2date/", however it may depends of your Apache configuration.
## If you need, please ask your hosting company or check the Apache doc: http://httpd.apache.org/docs/current/mod/mod_rewrite.html
# RewriteBase /
# Prevent CI index.php
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule .* index.php/$0 [PT,L]
# Prevent user access to the CI system folder.
RewriteCond %{REQUEST_URI} ^system.*
RewriteRule ^(.*)$ /index.php?/$1 [L]
# Prevent user access to the CI application folder
RewriteCond %{REQUEST_URI} ^application.*
RewriteRule ^(.*)$ /index.php?/$1 [L]
</IfModule>