Skip to content
Permalink
Browse files

[.htaccess] Update indentation + Upsate comment about RewriteBase (mo…

…re accurate now :-))
  • Loading branch information...
pH-7 committed Apr 7, 2019
1 parent 211e8f3 commit 96a29ce8569f1a21329052a5f1a2d8b2c620019d
Showing with 16 additions and 17 deletions.
  1. +16 −17 .htaccess
@@ -1,22 +1,21 @@
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteEngine on

## Uncomment "#RewriteBase /" line below (remove "#") if pH2Date is installed in a folder and so 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.
## 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 /

#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 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>
# Prevent user access to the CI application folder
RewriteCond %{REQUEST_URI} ^application.*
RewriteRule ^(.*)$ /index.php?/$1 [L]
</IfModule>

0 comments on commit 96a29ce

Please sign in to comment.
You can’t perform that action at this time.