apache<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?%{QUERY_STRING} [NE,L]
</IfModule>nginx conf如下?
server{
listen 80;
server_name space4.abcd.com
error_page 404 /404.html;
root /usr/local/apache/space4;
location / {
index index.php index.html;
}
location ~ .*\.php?$
{
include /usr/local/webserver/nginx/conf/fcgi.conf;
#fastcgi_pass unix:/tmp/php-cgi.sock;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
}
location ~ .*\.(php|php5)?$
{
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
include fcgi.conf;
}
access_log off;
}改了后conf怎么写这个 urlrewrite?
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?%{QUERY_STRING} [NE,L]
</IfModule>nginx conf如下?
server{
listen 80;
server_name space4.abcd.com
error_page 404 /404.html;
root /usr/local/apache/space4;
location / {
index index.php index.html;
}
location ~ .*\.php?$
{
include /usr/local/webserver/nginx/conf/fcgi.conf;
#fastcgi_pass unix:/tmp/php-cgi.sock;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
}
location ~ .*\.(php|php5)?$
{
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
include fcgi.conf;
}
access_log off;
}改了后conf怎么写这个 urlrewrite?
http://www.linuxnotes.cn/?p=544&akst_action=share-this