Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #application/config/config.php
- $config['allow_get_array'] = TRUE;
- $config['enable_query_strings'] = TRUE;
- $config['controller_trigger'] = 'c';
- $config['function_trigger'] = 'm';
- $config['directory_trigger'] = 'd';
- #application/controller/web.php (Nekem ez a main controllerem)
- public function index(){
- $item = $_GET['item'];
- if(empty($item)){$item = "index";};
- (..)
- };
- #.htaccess file
- DirectoryIndex index.php
- RewriteEngine on
- RewriteBase /
- RewriteCond %{REQUEST_FILENAME} !-f
- #RewriteCond %{REQUEST_FILENAME} !-d
- #RewriteCond %{REQUEST_FILENAME} !-l
- RewriteRule ^(.*).html$ /index.php?c=web&m=index&item=$1 [L]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement