daily pastebin goal
18%
SHARE
TWEET

Script htacess untuk subdomain dan maindomain di Codeighnite

algotechcoid Jan 19th, 2019 82 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <!--  Sub domain : -->
  2. RewriteEngine on
  3.  
  4. RewriteCond $1 !^(index\.php|images|robots\.txt)
  5.  
  6. RewriteCond %{REQUEST_FILENAME} !-f
  7.  
  8. RewriteCond %{REQUEST_FILENAME} !-d
  9.  
  10. RewriteRule ^(.*)$ /index.php/$1 [L]
  11.  
  12.  
  13. <!--  Main Domain : -->
  14.  <IfModule mod_rewrite.c>
  15.  
  16.     RewriteEngine On
  17.  
  18.     RewriteCond %{REQUEST_URI} ^system.*
  19.  
  20.     RewriteRule ^(.*)$ /index.php?/$1 [L]
  21.  
  22.     RewriteCond %{REQUEST_URI} ^application.*
  23.  
  24.     RewriteRule ^(.*)$ /index.php?/$1 [L]
  25.  
  26.     RewriteCond %{REQUEST_URI} ^asset.*
  27.  
  28.     RewriteRule ^(.*)$ /index.php?/$1 [L]
  29.  
  30.     RewriteCond %{REQUEST_FILENAME} !-f
  31.  
  32.     RewriteCond %{REQUEST_FILENAME} !-d
  33.  
  34.     RewriteRule ^(.*)$ index.php/$1 [L]
  35.  
  36. </IfModule>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top