Home > Backend Development > PHP Tutorial > nginx下的重定向配置

nginx下的重定向配置

WBOY
Release: 2016-06-23 14:05:45
Original
901 people have browsed it

在apache下运行正常。但移到nginx下就不正常了。不知要怎么配置?
以下是.htaccess内容:

RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php/$1 [QSA,PT,L]



不知在nginx.conf里要怎么配置才能正常????


回复讨论(解决方案)

http://www.ccvita.com/319.html

Rewrite “^(.*)$” index.php/$1 [QSA,PT,L]
是直接这样吗?

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template