Advertisement
julong

Fixed route problem

Jun 11th, 2015
274
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.81 KB | None | 0 0
  1.  
  2.  
  3. 1. Check if apache is configured to support .htaccess.
  4. Code:
  5. <Directory "/var/www/html">
  6. Options Indexes FollowSymLinks
  7. AllowOverride All
  8. Order allow,deny
  9. Allow from all
  10. </Directory>
  11.  
  12. 2. Put below .htaccess under xxxx-xxx folder if not exists or correct it if as per below example
  13. Code:
  14. <IfModule mod_rewrite.c>
  15. RewriteEngine On
  16. RewriteBase /CI220-CRUD/
  17. RewriteCond %{REQUEST_FILENAME} !-f
  18. RewriteCond %{REQUEST_FILENAME} !-d
  19. RewriteRule ^(.*)$ index.php?/$1 [L]
  20. </IfModule>
  21.  
  22. 3. Make sure, base_url config variable under config.php is set to as per below example
  23. Code:
  24. $config['base_url'] = 'http://localhost/xxxx-xxx';
  25.  
  26. 4. Make sure, index_page config variable under config.php is set to blank (Just check below example)
  27. Code:
  28. $config['index_page'] = '';
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement