Welcome Guest, Not a member yet? Register   Sign In
Mod_rewrite not working
#1

Hello,

I just started with CodeIgniter, I did the tutorial and now I'm at the General topic - CodeIgniter URLs: https://codeigniter.com/user_guide/general/urls.html

I modified the .htaccess file that comes with the CodeIgniter install, I added the following:
Code:
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L]

So now the complete .htaccess file is:

Code:
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L]

<IfModule authz_core_module>
    Require all denied
</IfModule>
<IfModule !authz_core_module>
    Deny from all
</IfModule>

I'm using MAMP as webserver, it runs on localhost:8888
Here is a link to my httpd.conf file: http://pastebin.com/Am0ew0C0

the codeigniter folder is located at: /Users/Roy/Websites/CodeIgniter-3.0.2

Please tell me if I'm posting this on the wrong forum, I'm hoping someone knows why this isn't working because I'm pretty lost.
Reply


Messages In This Thread
Mod_rewrite not working - by roy1523 - 10-15-2015, 06:44 AM
RE: Mod_rewrite not working - by macruzgi - 10-15-2015, 01:27 PM
RE: Mod_rewrite not working - by ignitedcms - 10-15-2015, 01:31 PM
RE: Mod_rewrite not working - by CroNiX - 10-16-2015, 12:15 PM
RE: Mod_rewrite not working - by InsiteFX - 10-19-2015, 04:49 AM



Theme © iAndrew 2016 - Forum software by © MyBB