2011-06-20 79 views
0

我不知道是否有人能看一看这个htaccess的,告诉我为什么要在本地主机的工作,但不能在服务器htaccess的网址缩短本地工作不在服务器上

Options +FollowSymlinks 
RewriteEngine On 
RewriteBase /subdirectory 


RewriteCond %{REQUEST_FILENAME} !-f 
RewriteCond %{REQUEST_FILENAME} !-d 
RewriteRule ^news(.*)$ news.php?q=$1 [L,QSA] 

RewriteRule ^view/([^/]+)/([^/]+).html /view.php?content_id=$1&content_id=$2 [NC] 
+0

你在服务器上遇到什么错误? – Tomgrohl

回答

0

尝试删除RewriteBase /subdirectory或将其重命名到RewriteBase /

相关问题