RewriteBase /
RewriteCond %{REQUEST_URI} !.(gif|jpeg|png|jpg|bmp)$
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . index.php [L]
如何转æ¢æˆnginxçš„rewrite规则
谢谢大家
RewriteBase /
RewriteCond %{REQUEST_URI} !.(gif|jpeg|png|jpg|bmp)$
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . index.php [L]
如何转æ¢æˆnginxçš„rewrite规则
谢谢大家
æ¨å»·å‹‡ wrote:
RewriteBase /
RewriteCond %{REQUEST_URI} !.(gif|jpeg|png|jpg|bmp)$
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . index.php [L]如何转æ¢æˆnginxçš„rewrite规则
谢谢大家
这里懂ä¸æ–‡çš„很少,还是用英文æé—®å§
These are rewrite rules for apache:
RewriteBase /
RewriteCond %{REQUEST_URI} !.(gif|jpeg|png|jpg|bmp)$
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . index.php [L]
How to change these rules for nginx?
On Thu, Mar 05, 2009 at 01:38:45PM +0800, Weibin Y. wrote:
These are rewrite rules for apache:
RewriteBase /
RewriteCond %{REQUEST_URI} !.(gif|jpeg|png|jpg|bmp)$
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . index.php [L]How to change these rules for nginx?
If you use FastCGI and nginx 0.7.x:
location / {
try_files $uri $uri/ @php;
}
location ~ .(gif|jpe?g|png|bmp)$ {
}
location @php {
fastcgi_pass …;
fastcgi_param SCRIPT_FILENAME /path/to/index.php;
... other fastcgi_param
}
我英文水平有é™ï¼Œè°èƒ½å¸®æˆ‘译一下,谢谢
在2009-03-05,"Big Bet" [email protected] 写é“:
Hello æ¨å»·å‹‡,
Thursday, March 5, 2009, 9:55:01 AM, you wrote:
我英文水平有é™ï¼Œè°èƒ½å¸®æˆ‘译一下,谢谢
ما الذي تتØدث عنه؟
在2009-03-05,"Big燘et"?lt;[email protected]>犘å¹æºƒ?>æ¨å»·å‹‡çˆ“rote:
燫ewriteBase?
燫ewriteCond?{REQUEST_URI}牋牋!.(gif|jpeg|png|jpg|bmp)$
燫ewriteCond?{REQUEST_FILENAME}?-f
燫ewriteCond?{REQUEST_FILENAME}?-d
燫ewriteRule?爄ndex.php燵L]
?>>犎绾巫怀蒼ginx的rewrite规则
?>>犘ææ·®è ¹?>这里懂ä¸æ–‡çš„很少,还是用英文æé—®å§
–?>Posted爒ia爃ttp://www.ruby-forum.com/.
Hi æ¨å»·å‹‡,
Try this.
Terence
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs