Category: Installation

Q: .htaccess not working

I am new to CakePHP and recently I failed to install on nginx. And I also have some difficulties trying to install Cake on apache:

I have got mod_rewrite working but still get the 500 internal server error. This is my .htaccess file:

/Users/khanct/Sites/app/ is my Cake application's web root.

# Uncomment the following to prevent the httpoxy vulnerability
# See:
#<IfModule mod_headers.c>
#    RequestHeader unset Proxy

<IfModule mod_rewrite.c>
    RewriteEngine on
    RewriteRule    ^$    app/webroot/    [L]
    RewriteRule    (.*) app/webroot/$1    [L]

I'll be grateful if someone could provide your .htaccess configuration.

*using CakePHP 3

0 Answers

Version: 3.0



No answers yet!

The community needs your help!

Post your Answer