Advertisement
algotechcoid

Script htacess untuk subdomain dan maindomain di Codeighnite

Jan 19th, 2019
260
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 0.69 KB | None | 0 0
  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>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement