mod rewrite - Pulling my hair out with mod_rewrite and MAMP -


i'm using mamp , can't mod_rewrites work.

after lots of playing numerous http.conf files , looked @ php_info, there no mod_rewrite exstension installed.

i opened php.ini files in applications > mamp > conf > php5.2 & php5.3 , looked @ exstensions , there no mod_rewrite.so. can see is:

extension=imap.so extension=yaz.so extension=mcrypt.so extension=gettext.so extension=pgsql.so extension=pdo_pgsql.so extension=pdo_mysql.so 

i added expecting stroke of luck - no joy!

i had same problem , solve you.

i added site in host file instead of going through locahost/..... had own url redirected 127.0.0.1. i.e. host file looked this

127.0.0.1 mysite.local

i set virtual host in mamp. find vhosts.conf file in /applications/mamp/conf/apache

my host file looks this

namevirtualhost * <virtualhost *>     documentroot "/applications/mamp/htdocs"     servername localhost </virtualhost>  <virtualhost *>     documentroot "/applications/mamp/htdocs/mysite-folder"     servername mysite.local </virtualhost> 

hope helps :d


Comments

Popular posts from this blog

php - What is the difference between $_SERVER['PATH_INFO'] and $_SERVER['ORIG_PATH_INFO']? -

fortran - Function return type mismatch -

queue - mq_receive: message too long -