CodeIgniter Forums
Forbidden when using .htaccess to hide index.php - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21)
+--- Thread: Forbidden when using .htaccess to hide index.php (/showthread.php?tid=57269)



Forbidden when using .htaccess to hide index.php - El Forum - 03-02-2013

[eluser]ibnclaudius[/eluser]
I'm doing exactly what says on the guide (http://ellislab.com/codeigniter/user-guide/general/urls.html) and removing the index.php from config.php, but when I do this and try to access my website I get a forbidden error! Any idea why?


Forbidden when using .htaccess to hide index.php - El Forum - 03-02-2013

[eluser]painkiller[/eluser]
Have you checked your phpinfo() to see if mod_rewrite is enabled ?


Forbidden when using .htaccess to hide index.php - El Forum - 03-02-2013

[eluser]ibnclaudius[/eluser]
Yep, I've followed this tutorial (http://www.noppanit.com/apache-enable-mod_rewrite-on-macosx/) but the error persists...


Forbidden when using .htaccess to hide index.php - El Forum - 03-03-2013

[eluser]greedyman[/eluser]
[quote author="ibnclaudius" date="1362245101"]I'm doing exactly what says on the guide (http://ellislab.com/codeigniter/user-guide/general/urls.html) and removing the index.php from config.php, but when I do this and try to access my website I get a forbidden error! Any idea why?[/quote]

You can find CodeIgniter .htaccess on the internet, change domain on it follow your website. And in the config file, you add base url and remove index.php from index page.