L
L
Lorem Ipsum2015-03-23 19:41:13
macOS
Lorem Ipsum, 2015-03-23 19:41:13

Why doesn't .htaccess work on mac os x?

Good evening everyone. I have a bitnami mamp stack 5.4.9-0 server on mac os x, everything works correctly, but the computer or mamp does not see .htaccess files. Please tell me what could be the problem?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Sergey Petrikov, 2015-03-23
@GeorgeGeorge

Check that there is an option in the virtualhost config:
It is also possible that .htaccess itself works, but some features such as rewrite do not work, then we load the necessary modules, because. the problem with rewrites is the most common, it is done something like this:
go to httpd.conf here /Applications/MAMP/conf/apacheand unravel LoadModule rewrite_module modules/mod_rewrite.so
the Knonfig of the virtual host and bring it to the form

<VirtualHost *:80>
    ServerAdmin ...
    ServerName ...

    DocumentRoot ...
    <Directory ...>
        Options FollowSymLinks
        AllowOverride None
    </Directory>
    <Directory ...>
        Options Indexes FollowSymLinks MultiViews
        AllowOverride All
        Order allow,deny
        allow from all
    </Directory>
</VirtualHost>

We restart Apache and voila the module works, with others by analogy.

A
Alexey, 2015-03-23
@a1exDi

In fact, it's just hidden. In the terminal, you can write

defaults write com.apple.Finder AppleShowAllFiles 1 && killall Finder

Or through any FTP / File manager to look.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question