I need to add a .html file to a Wordpress installation that works on IIS. What I have now is:
//mydomain.com/userpage.html
What I want to achieve is: //mydomain.com/userpage/
I fixed all the other rules (pretty urls and so on...) but which code should I use to achieve the above result?
Thank you!
Max
Your rule should be like that:
<rule name="hide userpage.html">
<match url="^userpage/?$" />
<action type="Rewrite" url="/userpage.html" />
</rule>
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.