Guest User

Untitled

a guest
Aug 14th, 2018
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. RewriteEngine on
  2. RewriteCond $1 !^(index\.php|images|css|js|robots\.txt|favicon\.ico)
  3. RewriteCond %{REQUEST_FILENAME} !-f
  4. RewriteCond %{REQUEST_FILENAME} !-d
  5. RewriteRule ^(.*)$ ./index.php/$1 [L,QSA]
  6.  
  7.  
  8. $config['base_url'] = ((isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == "on") ? "https" : "http");
  9. $config['base_url'] .= "://".$_SERVER['HTTP_HOST'];
  10. $config['base_url'] .= str_replace(basename($_SERVER['SCRIPT_NAME']),"",$_SERVER['SCRIPT_NAME']);
Add Comment
Please, Sign In to add comment