.htaccess重写规则不重定向特定url

.htaccess重写规则不重定向特定url,.htaccess,rewrite,.htaccess,Rewrite,我编写了重写url的规则 RewriteRule ^([a-zA-Z0-9-/]+)$ news.php?id=$1 RewriteRule ^([a-zA-Z0-9-/]+)/$ news.php?id=$1 但我需要这个http://mysite.com/blog/不被这些规则重写。 谢谢你的建议:) 我的.htaccess文件: RewriteEngine On RewriteBase / RewriteCond %{REQUEST_URI} !news\.php [NC] Rew

我编写了重写url的规则

RewriteRule ^([a-zA-Z0-9-/]+)$ news.php?id=$1
RewriteRule ^([a-zA-Z0-9-/]+)/$ news.php?id=$1
但我需要这个
http://mysite.com/blog/
不被这些规则重写。 谢谢你的建议:)

我的.htaccess文件:

RewriteEngine On 
RewriteBase / 
RewriteCond %{REQUEST_URI} !news\.php [NC] 
RewriteCond %{REQUEST_URI} !/blog [NC] 
RewriteCond %{REQUEST_URI} ^/([^/]+) [NC] 
RewriteRule .* news.php?id=%1 [R=301,L] 
RewriteRule ^video_([^/]+) video.php?page=Video&table=$1 
RewriteRule ^en/([a-zA-Z0-9-/]+)$ en/news_en.php?no=$1 
RewriteRule ^en/([a-zA-Z0-9-/]+)/$ en/news_en.php?no=$1 
RewriteRule ^it/([a-zA-Z0-9-/]+)$ it/news.php?id=$1 
RewriteRule ^it/([a-zA-Z0-9-/]+)/$ it/news.php?id=$1 

RewriteRule ^photo_([^/]+) photogalery.php?page=Photo&part=$1 
RewriteRule ^en/photo_([^/]+) en/photogalery.php?page=Photo&part=$1 
RewriteRule ^it/photo_([^/]+) it/photogalery.php?page=Photo&part=$1 
ErrorDocument 404 /404.html 
使用

重新启动发动机 重写规则^blog/([a-zA-Z0-9_-]+)$news.php?id=$1
传入URL中的域部分是什么,是否也是
mysite.com
? RewriteEngine On RewriteRule ^blog/([a-zA-Z0-9_-]+)$ news.php?id=$1