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: https://httpoxy.org/
#<IfModule mod_headers.c>
#    RequestHeader unset Proxy
#</IfModule>

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

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

*using CakePHP 3

htaccess
0 Answers

Version: 3.0

user
Khan

3

No answers yet!

The community needs your help!

Post your Answer