Welcome Guest, Not a member yet? Register   Sign In
Help with htaccess on MAMP
#1

[eluser]Miguel Diaz[/eluser]
Hi I just move to mac and I already install the MAMP in my MAC and transfered all my local sites from my old pc, All is working perfectly the problem that I am havin is with the htaccess is not working I already change my htaccess to remove my index.php and still doesnt work, In my old pc I use to have appserv that works incredible in that one I just have to activate the mod rewrite and works perfect but in this one I dont have idea please can someone help me this is the htaccess that i am using in each of my folder sites.

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


Do the MAMP have a module or something where i have to activate the mod rewrite¨ or please any idea is a great help.
#2

[eluser]chrisilk[/eluser]
did you check phpinfo for mod_rewrite?
#3

[eluser]guidorossi[/eluser]
First, take a look at httpd.conf on /Applications/MAMP/conf/apache to see if the "LoadModule rewrite_module modules/mod_rewrite.so" line is uncommented (without the # at the beginning)

If that`s ok, then I'm using this super documented .htaccess file on my MAMP by Daniel Moore

http://ellislab.com/forums/viewthread/112024/

Code:
Options -Indexes
Options +FollowSymLinks
Options -MultiViews

DirectoryIndex index.php

<IfModule mod_rewrite.c>
  RewriteEngine on
  RewriteBase /CI_Application/
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteRule ^(.*)$ index.php/$1 [L,QSA]
</IfModule>

<IfModule !mod_rewrite.c>
  ErrorDocument 404 index.php
</IfModule>
#4

[eluser]Miguel Diaz[/eluser]
thank you I already put it working i forgot to put in each of my htaccess before the index the name of the folder




Theme © iAndrew 2016 - Forum software by © MyBB