[英]URL rewriting 500 error
我是重寫URL的初學者。 我試圖進行簡單的重寫,但是效果很糟。 我不知道為什么 搜索答案,但未找到任何內容。
我遇到的錯誤:
500內部服務器錯誤| 此外,嘗試使用ErrorDocument處理請求時遇到404 Not Found錯誤。
我的htaccess
文件是在/admin/.htaccess
我還有另一個/.htaccess
-在此我有這樣的代碼: Options -Indexes
# Rewriting URLs
RewriteEngine On
RewriteRule ^custom dashboard.php [NC, L]
謝謝您的幫助
嘗試在[NC,L]中沒有空格:
# Rewriting URLs
RewriteEngine On
RewriteRule ^custom dashboard.php [NC,L]
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.