2011-06-20 80 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 /

相關問題