.htaccess for cakephp

后端 未结 5 2131
时光取名叫无心
时光取名叫无心 2020-11-28 04:52

I\'m trying to get a CakePHP application to work. For this, I\'ve set up a brand new Debian installation, updated the configuration and put everything in /var/www, which has

5条回答
  •  南方客
    南方客 (楼主)
    2020-11-28 05:48

    The correct .htaccess is the default:

    
      RewriteEngine on
      RewriteRule    ^$    webroot/    [L]
      RewriteRule    (.*) webroot/$1    [L]
    
    

    You have to add this in "/etc/apache2/sites-enabled/default":

    
      Options Indexes FollowSymLinks MultiViews
      AllowOverride All
      Order allow,deny
      allow from all
    
    

    if section already exists change AllowOverride None to AllowOverride All

提交回复
热议问题