Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 1. Check if apache is configured to support .htaccess.
- Code:
- <Directory "/var/www/html">
- Options Indexes FollowSymLinks
- AllowOverride All
- Order allow,deny
- Allow from all
- </Directory>
- 2. Put below .htaccess under xxxx-xxx folder if not exists or correct it if as per below example
- Code:
- <IfModule mod_rewrite.c>
- RewriteEngine On
- RewriteBase /CI220-CRUD/
- RewriteCond %{REQUEST_FILENAME} !-f
- RewriteCond %{REQUEST_FILENAME} !-d
- RewriteRule ^(.*)$ index.php?/$1 [L]
- </IfModule>
- 3. Make sure, base_url config variable under config.php is set to as per below example
- Code:
- $config['base_url'] = 'http://localhost/xxxx-xxx';
- 4. Make sure, index_page config variable under config.php is set to blank (Just check below example)
- Code:
- $config['index_page'] = '';
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement