Posts: 14
Threads: 6
Joined: Aug 2012
Hi, I wrote an extension with some configurations for IIS to allow Fancy URLs which you can download from
http://get-simple.info/extend/plugin/fan...n-iis/496/
Feel free to let me know how it goes and if there are any problems.
Posts: 13
Threads: 2
Joined: Dec 2009
Really thanks, it works successfully!
But for that case, can you explain how to use for subfolders? such as
http://tur-ip.com/ main GS
http://tur-ip.com/en/ a new GS at subfolder
How should change web.config file for both / and /en/ GSs?
Thanks a lot
Posts: 14
Threads: 6
Joined: Aug 2012
Hi Oratoran,
lucky you PM'd me last week so we could get this sorted because I've only just seen this forum post
For anyone else having this problem, the fix is easy. Open web.config in the sub-installation and change the text "GetSimple Fancy URLs" (e.g. change it to "GetSimple Fancy URLs2") The problem is that IIS likes all rule names to be unique, so making this change will avoid any issues.
I've added a note on the extension page to this effect. Happy coding!
@oratoran since you had this problem I updated the extension so now it only requires one file.
Posts: 2
Threads: 1
Joined: Jan 2013
2013-11-14, 21:45:41
(This post was last modified: 2013-11-15, 00:14:34 by sharkbait.)
(2012-11-20, 02:33:08)rjenkins1984 Wrote: Hi Oratoran,
lucky you PM'd me last week so we could get this sorted because I've only just seen this forum post
For anyone else having this problem, the fix is easy. Open web.config in the sub-installation and change the text "GetSimple Fancy URLs" (e.g. change it to "GetSimple Fancy URLs2") The problem is that IIS likes all rule names to be unique, so making this change will avoid any issues.
I've added a note on the extension page to this effect. Happy coding!
@oratoran since you had this problem I updated the extension so now it only requires one file.
Just in case anybody wants an example of this, your web.config file should contain the following...
Code:
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<location path="." inheritInChildApplications="false">
<system.webServer>
<rewrite>
<rules>
<rule name="GetSimple Fancy URLs" stopProcessing="true">
<match url="^([^/]+)/?$" />
<conditions>
<add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
</conditions>
<action type="Rewrite" url="?id={R:1}" />
</rule>
<rule name="GetSimple Fancy URLs 2" stopProcessing="true">
<match url="([^/]+)/?/?$" />
<conditions>
<add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
</conditions>
<action type="Rewrite" url="?id={R:1}" />
</rule>
</rules>
</rewrite>
</system.webServer>
</location>
</configuration>
Posts: 14
Threads: 6
Joined: Aug 2012
Thanks sharkbait, good example!