Welcome Guest, Not a member yet? Register   Sign In
Beginner: Getting "index.php' to go away
#1

[eluser]agentkirb[/eluser]
Edit: my bad, said it didn't work but it turns out I messed up and it DOES work. Thanks
#2

[eluser]jairoh_[/eluser]
add an .htaccess file with this content.
Code:
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule .* index.php/$0 [PT,L]
the .htaccess file must be in the base folder, i mean along w/ the application, systems folders and etc. and empty the $config [ 'index_page' ] = '';


hope this help sir
#3

[eluser]PravinS[/eluser]
Refer: http://ellislab.com/codeigniter/user-gui.../urls.html
#4

[eluser]agentkirb[/eluser]
[quote author="jairoh_" date="1375493485"]add an .htaccess file with this content.
Code:
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule .* index.php/$0 [PT,L]
the .htaccess file must be in the base folder, i mean along w/ the application, systems folders and etc. and empty the $config [ 'index_page' ] = '';


hope this help sir[/quote]

I created an .htaccess folder in the CodeIgniter folder (the one with application/system and all that). Added those rules, toggled $config['index_page'] to equal empty string (''). And now it's saying access forbidden to those websites (lhttp://localhost/CodeIgniter/averages as well as index.php/averages). So I'm wondering if I need to add a way to view the averages controller or averages view (I guess it's the view that outputs everything).

I'll look at the URL guide to see if there's anything there.

Edit: Wow I suck at editing, accidently updated the OP.

Anyways, the problem is solved. Thanks for the help.




Theme © iAndrew 2016 - Forum software by © MyBB