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
Sort By: 

Feb 8, 2014 9:27 PM in response to crittle100

I cross posted this and now it won't let me delete this post. So I will just say that this is resolved. I had to right click on the .htaccess file and remove the .txt from the get info box. It then started working. The .txt wasn't appended to the .htaccess from the file browser as it was hidden. Caused me some grief. 😐

Reply

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

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 Account.