Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

htaccess, cannot get to work on mac os x lion server

I've enabled mod_rewrite.so in httpd.conf


I've updated the apache2/httpd.conf to...

Code:

DocumentRoot "/Library/WebServer/Documents"

<Directory />
Options Indexes MultiViews FollowSymLinks
AllowOverride All
Order deny, allow
Deny from all </Directory>

<Directory "/Library/WebServer/Documents">
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow, deny
Allow from all </Directory>


I've changed apache2 / users / [username].conf

( I also tried using /Users/[username]/Sites/ instead of the Documents root path.)


Code:

<Directory "/Library/WebServer/Documents">
Options Indexes MultiViews FollowSymLinks
AllowOverride All
Order allow, deny
Allow from all
</Directory>


I've added then removed AccessFilename .htaccess to the httpd.conf file to test.


I've ticked the "Allow overrides using .htaccess files" In the Server advanced configuration for the website.


Restarted Apache following all changes.


phpinfo shows mod_rewrite


htaccess file

(I am just trying a very simple change in the .htaccess to test. I've also tried garbage to pull an error. No avail. )


Code:

DirectoryIndex test.html


I've been messing around with this for 2 days now and cannot find an answer.

I really need this to work 😟


Any advise is appriciated.

Mac Pro, OS X Mountain Lion (10.8.5)

Posted on Feb 5, 2014 6:45 AM

Reply
1 reply

htaccess, cannot get to work on mac os x lion server

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.