Advertisement
mrlongshen

[CORA] .htaccess

Jul 13th, 2015
274
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.00 KB | None | 0 0
  1. <IfModule mod_rewrite.c>
  2.     RewriteEngine On
  3.     RewriteBase /cp
  4.  
  5.     #Removes access to the system folder by users.
  6.     #Additionally this will allow you to create a System.php controller,
  7.     #previously this would not have been possible.
  8.     #'system' can be replaced if you have renamed your system folder.
  9.     RewriteCond %{REQUEST_URI} ^system.*
  10.     RewriteRule ^(.*)$ /index.php?/$1 [L]
  11.    
  12.     #When your application folder isn't in the system folder
  13.     #This snippet prevents user access to the application folder
  14.     #Submitted by: Fabdrol
  15.     #Rename 'application' to your applications folder name.
  16.     RewriteCond %{REQUEST_URI} ^application.*
  17.     RewriteRule ^(.*)$ /index.php?/$1 [L]
  18.  
  19.     #Checks to see if the user is attempting to access a valid file,
  20.     #such as an image or css document, if this isn't true it sends the
  21.     #request to index.php
  22.     RewriteCond %{REQUEST_FILENAME} !-f
  23.     RewriteCond %{REQUEST_FILENAME} !-d
  24.     RewriteRule ^(.*)$ index.php?/$1 [L]
  25. </IfModule>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement