Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //CONFIG.PHP
- $http = 'http' . ((isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == 'on') ? 's' : '') . '://';
- $root = $http.$_SERVER['HTTP_HOST'];
- $root .= str_replace(basename($_SERVER['SCRIPT_NAME']),"",$_SERVER['SCRIPT_NAME']).'/';
- $config['base_url'] = $root;
- $config['index_page'] = '';
- $config['uri_protocol'] = 'REQUEST_URI';
- //HTACCESS
- <IfModule mod_rewrite.c>
- RewriteEngine on
- RewriteCond $1 !^(index\.php|resources|robots\.txt)
- RewriteCond %{REQUEST_FILENAME} !-f
- RewriteCond %{REQUEST_FILENAME} !-d
- RewriteRule ^(.*)$ ./index.php/$1 [L,QSA]
- </IfModule>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement