0
我顯示404錯誤信息顯示404錯誤,如果用戶試圖訪問特定文件夾struture在訪問特定的文件夾結構
像
RewriteCond %{REQUEST_URI} ^/protected$
RewriteRule .* /404.cfm [NC,L]
RewriteCond %{REQUEST_URI} ^/protected/pdf$
RewriteRule .* /404.cfm [NC,L]
有什麼辦法既
/protected/pdf and /protected
結合
在一種情況下,並在結束時正斜槓作爲可選
我試圖讓最後一個正斜槓可選,如
RewriteCond %{REQUEST_URI} ^/protected/?$
但它不工作。