I'm having a weird issue on IIS with a converted mod_rewrite rule involving hyphens.
This does NOT work: server.com/post/eie8eu/test/
This does work: server.com/eie8eu/te-st/
The actual URL does not contain a hyphen. I can't figure out why the server demands that the hyphen is present.
Code:<rule name="View Post" stopProcessing="true"> <match url="^post/([A-Za-z0-9-]+)/([A-Za-z0-9-]+)/?$" ignoreCase="false" /> <action type="Rewrite" url="/post.php?post_url_id={R:1}&post_url={R:2}" appendQueryString="false" /> </rule>









Bookmarks