# tulis semula ^(.*)$ /index.php/ $1 terakhir;
# rehat;
# }
lokasi ~ .+.php($|/) st /php-cgi.sock;
fastcgi_pass 127.0.0.1: 9000, ument_root$fastcgi_path_info;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include nginx/fastcgi_params;
}
}
.htaccess
<IfModule mod_rewrite.c>
Options +FollowSymritesReview
%{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !- f
RewriteRule ^(.*)$ index.php?/$1 [QSA,PT,L]
</IfModule>
首页:
http://cy.280878.com/newswork/
404页面:http://cy.280878.com/newswork/details/index.html?id=4
Adakah laluan imej tidak dilalui dengan betul