0
我必須將htaccess轉換爲web.config。如何將.htaccess轉換爲web.config?
主要重定向是刪除舊的.aspx擴展名。然後爲重新命名的文件提供一些重定向。
的htaccess:
<IfModule mod_rewrite.c>
RewriteEngine On
# redirect aspx to extensionless
RewriteRule ^(.+)\.aspx$ $1 [NC,L,R=301]
# old page redirects
Redirect 301 /folder/old-file http://www.website.com/new-file
Redirect 301 /folder/old-file-2 http://www.website.com/new-file-2
</IfModule>