我已在我的.htacces文件中進行了設置,以便任何試圖訪問該網站的人都被重定向到index.html,這是一個正在建設中的頁面。我對那裏的圖像,這並不顯示COS的鏈接被重定向到index.html的,我如何從規則中排除圖像,路徑是/images/underConstruction.png.
從重定向重寫規則中排除圖像文件夾
RewriteEngine On
RewriteCond %{REQUEST_URI} !=/index.html
RewriteRule^/index.html [R=301]
試試這個: 的http:// stackover flow.com/questions/1848500/htaccess-mod-rewrite-how-to-exclude-directory-from-rewrite-rule – androbin