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

Created: 12 Oct '16

Last Reply: None

Replies: 0

Views: 1120

Votes: 0

Welcome to Aero Coding!

Aero Coding is a CakePHP-focused Q&A community for professional and enthusiast cake bakers. It's built and run by you as part of the community.


Join Now Tour

Download Cakephp

Start baking your own CakePHP application!


Cakephp All Versions