How To remove index.php from myurl |
[eluser]vamsisnikky[/eluser]
Actually i'm new to codeigniter & my URL is http://localhost/CodeIgniter/index.php/pages/create now i dont want to display index.php in my url so what can i do.. here pages is my controller & create is my method name Please help Thankx Advance
[eluser]CroNiX[/eluser]
http://ellislab.com/codeigniter/user-gui.../urls.html There are also hundreds of posts on this topic in this forum.
[eluser]hot_sauce[/eluser]
project: www/codeigniter/ ex. http://localhost/codeigniter/ htaccess Options +FollowSymLinks Options -Indexes RewriteEngine On RewriteBase /codeigniter/ RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteCond $1 !^(index\.php) RewriteRule ^(.*)$ index.php [L] application/config/config.php file $config[‘base_url’] = ‘http://localhost/codeigniter/’; $config[‘index_page’] = ‘’; $config[‘uri_protocol’] = ‘AUTO’; $config[‘enable_query_strings’] = FALSE; |
Welcome Guest, Not a member yet? Register Sign In |