![](/img/trans.png)
[英]Redirect http://www.domain.com to https://www.domain.com using .htaccess
[英]How to redirect www.domain.com/subfolder/ to www.domain.com/subfolder/blog.html using htaccess
如何將www.domain.com/subfolder/
重定向到www.domain.com/subfolder/blog.html
,因為我無法使用index.html。 所以這就是為什么我問這個問題。
嘗試:
RedirectMatch ^/subfolder/?$ http://www.domain.com/subfolder/blog.html
這會將/subfolder/
重定向到http://www.domain.com/subfolder/blog.html
。
創建一個文件/subfolder/.htaccess
如果不存在),並在頂部添加以下行:
DirectoryIndex blog.html
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.