I'm having a problem with CakePHP 1.3 while transferring it from Nginx to Apache, as I said in the title the URLs don't work apart from the home page.
Also, I've made some changes to CakePHP so the directory structure is slightly different. It looks like this:
This is my .htaccess file which resides inside 'webroot':
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php?url=$1 [QSA,L]
</IfModule>
Any suggestions?
从命令行启用 mod 重写,如下所示:
a2enmod rewrite
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.