Linux – Does Snow Leopard Server support .htaccess

.htaccessapache-2.2linuxmac-osx-serverosx-snow-leopard

I'm working on a site which requires mod_rewrite rules in an .htaccess file.

But when uploading the file to this new OSX 10.6 Server install (with Apache 2.2.13) it just disappears. I'm pretty sure that this isn't just invisible files not being shown – I have these set to visible in my FTP app though I don't have shell access to verify they are there.

And phpinfo shows mod_rewrite as being enabled. Yet none of the rules are applied.

I am not the server admin but he says that any files beginning with a "." are not supported by any OSX servers. I'm pretty sure this isn't the case but wanted some clarification.

If this is actually possible and what advice might I give him for getting this to work?

Best Answer

.htaccess files are disabled by default in OS X's Apache config. You can enable them with the Server Admin GUI by selecting the Web service in the sidebar -> Sites in the toolbar -> your virtual site under that -> Options tab under that, and enabling "Allow All Overrides". Or, equivalently, you can edit the site config file (under /etc/apache2/sites) and change the line that says AllowOverride None to AllowOverride All.