2016-07-26 40 views
1

我有一個運行這個htaccess沒有任何問題的網站。獲得500內部服務器錯誤HTACCESS

我已經將我的網站上傳到了我的其他主機上,現在我得到500個內部服務器錯誤。 這是我的htaccess:

RewriteEngine on 
# Don't allow any pages to be framed - Defends against CSRF stock CSRF attacks 
Header set X-Frame-Options DENY 

Header set Access-Control-Allow-Origin "*" 

RewriteRule ^([0-9]+)/* play.php?id=$1 [L] 
RewriteRule ^pr-([0-9]+)\/.*?$ index.php?p=dis_add&id=$1 [L] 
RewriteRule ^user_Account/chats/([0-9]+)$ index.php?p=fchat&id=$1 
RewriteRule ^فراموشی_رمز_عبور$ index.php?p=forgetPassword 
RewriteRule ^user_Account$ index.php?p=userAccount [L] 
RewriteRule ^logout$ index.php?p=logout [L] 
RewriteRule ^login$ index.php?p=login [L] 
RewriteRule ^newAdd$ index.php?p=newAdd [L] 
RewriteRule ^newAdd/([0-9]+)$ index.php?p=newAdd&catId=$1 [L] 
RewriteRule ^user_Account/ea/([0-9]+)$ index.php?p=userAccount&what=editadd&id=$1 
RewriteRule ^user_Account/(.*?)$ index.php?p=userAccount&what=$1 [L] 
RewriteRule ^ad-([0-9]+)/.*?$ index.php?p=dis_add&id=$1 [L] 
RewriteRule ^app index.php?p=info&pid=10 
RewriteRule ^stores/([0-9]+)/.*? index.php?p=displayStoreİ=$1 [L] 
RewriteRule ^page/(.*?)/.*?$ index.php?p=info&pid=$1 [L] 
RewriteRule ^adds/([0-9]+)/.*?/([0-9]+)/.*?/category-([0-9]+)/.*?/subcat-([0-9]+)/.*?$ index.php?p=display_adds&cityId=$2&subCatId=$4 
RewriteRule ^adds/([0-9]+)/.*?/([0-9]+)/.*?/category-([0-9]+)/.*?$ index.php?p=display_adds&cityId=$2&catId=$3 

RewriteRule ^adds/([0-9]+)/.*?/([0-9]+)/.*?/subcat-([0-9]+)/.*?$ index.php?p=display_adds&cityId=$2&subCatId=$3 
RewriteRule ^adds/([0-9]+)/.*?/subcat-([0-9]+)/.*?$ index.php?p=display_adds&stateId=$1&subCatId=$2 


RewriteRule ^adds/category-([0-9]+)/.*?/subcat-([0-9]+)/.*?/$ index.php?p=display_adds&subCatId=$2 
RewriteRule ^adds/category-([0-9]+)/.*?$ index.php?p=display_adds&catId=$1 

RewriteRule ^adds/([0-9]+)/.*?/category-([0-9]+)/.*?$ index.php?p=display_adds&stateId=$1&catId=$2 

RewriteRule ^adds/$ index.php?p=display_adds&all=true 
RewriteRule ^adds/([0-9]+)/.*?/([0-9]+)/.*?$ index.php?p=display_adds&cityId=$2 
RewriteRule ^adds/([0-9]+)/.*?/category/([0-9]+)/.*?$ index.php?p=display_adds&stateId=$1&catId=$2 

RewriteRule ^adds/([0-9]+)/.*?/([0-9]+)/.*?/category/([0-9]+)/.*?$ index.php?p=display_adds&cityId=$1&catId=$2 
RewriteRule ^adds/([0-9]+)/.*?$ index.php?p=display_adds&stateId=$1 


RewriteRule ^blog$ index.php?p=tuts 



RewriteRule ^category/([0-9]+)/.*?$ index.php?p=display_adds&catId=$1 


RewriteRule ^conrimPayment$ index.php?p=conrimPayment 

RewriteRule ^n([0-9]+)/.*?$ index.php?p=Disnews&id=$1 [L] 
RewriteRule ^blog/([0-9]+)/.*?$ index.php?p=DisBlog&id=$1 [L] 

RewriteRule ^c([0-9]+)/.*?$ index.php?p=adCat&catid=$1 [L] 

RewriteRule ^category/.*?/([0-9]+) index.php?p=adCat&catid=$1 
RewriteRule ^category/.*?/.*?/([0-9]+) index.php?p=adCat&catid=$1 

RewriteRule ^loc/.*?/([0-9]+) index.php?p=loc&ostanId=$1 
RewriteRule ^loc/.*?/.*?/([0-9]+) index.php?p=loc&cityId=$1 

RewriteRule ^vije\/pr-([0-9]+)\/.*?$ index.php?p=dis_add&id=$1&sp=1&special=0 [L] 
RewriteRule ^vije$ index.php?sp=1 [L] 

RewriteRule ^mosabeghe\/pr-([0-9]+)$ index.php?p=dis_addMosabeghe&id=$1 [L] 

RewriteRule ^ekhtesasi$ index.php?sp=1&special=1 [L] 

RewriteRule ^عمومی$ index.php?p=adds&kind=omu [L] 
RewriteRule ^مزایده$ index.php?p=adds&kind=moz [L] 
RewriteRule ^استخدام$ index.php?p=adds&kind=est [L] 


RewriteRule ^خبرها$ index.php?p=news 

Options -Indexes 

爲什麼我會得到我的另一臺主機上運行此500內部服務器error.I'm而且它的運行properly.What的問題呢?

+0

你的apache錯誤日誌顯示了什麼? – chris85

回答

0

我剛剛停用DOM保存,問題不復存在。