Url rewrite configuration on iis

II am struggling with getting forums to work on iis 8.5 due to the rewrite rule error on iis. Does anyone know how to fill in the rewrite rules on iis as importing the htaccess file does not work. Cheers.

Quote · 28 Nov 2018

When I had a Windows IIS Server this is what I used.

 

http://www.micronovae.com/ModRewrite/ModRewrite.html

Quote · 29 Nov 2018

Which problem do you exactly have with the forum? I have the issue of a 404 with the forum when clicking a specific topic.

Quote · 29 Nov 2018

JJust cannot find the forum. It is installed btw. If you enter full path to forum you get a non working forum page. Defoe a rewrite error.

Quote · 29 Nov 2018

Here is my solution, dump Windows Server and use a good CentOS base server.  I have never had any issues with a Linux based server for Dolphin.

Geeks, making the world a better place
Quote · 29 Nov 2018

a usable web.config for windows.... 

<?xml version="1.0" encoding="UTF-8"?>

<configuration>

<system.web>

     <!--The default size is 4096 kilobytes (4 MB). MaxValue is 2147483647 KB (2 TB)-->

     <!-- 100 MB in kilobytes -->

     <httpRuntime maxRequestLength="2147483647" />

   </system.web>

    <system.webServer>

<security>

       <requestFiltering>          

         <!--The default size is 30000000 bytes (28.6 MB). MaxValue is 4294967295 bytes (4 GB)-->

         <!-- 100 MB in bytes -->

         <requestLimits maxAllowedContentLength="4294967295" />

       </requestFiltering>

     </security>

        <rewrite>

            <rules>

                <rule name="Imported Rule 1" stopProcessing="true">

                    <match url="^blogs/{0,1}$" ignoreCase="false" />

                    <action type="Rewrite" url="modules/boonex/blogs/blogs.php" appendQueryString="true" />

                </rule>

                <rule name="Imported Rule 2" stopProcessing="true">

                    <match url="^blogs/all/{0,1}$" ignoreCase="false" />

                    <action type="Rewrite" url="modules/boonex/blogs/blogs.php?action=all" appendQueryString="true" />

                </rule>

                <rule name="Imported Rule 3" stopProcessing="true">

                    <match url="^blogs/all/([0-9]+)/([0-9]+)/{0,1}$" ignoreCase="false" />

                    <action type="Rewrite" url="modules/boonex/blogs/blogs.php?page={R:2}&amp;per_page={R:1}" appendQueryString="true" />

                </rule>

                <rule name="Imported Rule 4" stopProcessing="true">

                    <match url="^blogs/top/{0,1}$" ignoreCase="false" />

                    <action type="Rewrite" url="modules/boonex/blogs/blogs.php?action=top_blogs" appendQueryString="true" />

                </rule>

                <rule name="Imported Rule 5" stopProcessing="true">

                    <match url="^blogs/top/([0-9]+)/([0-9]+)/{0,1}$" ignoreCase="false" />

                    <action type="Rewrite" url="modules/boonex/blogs/blogs.php?action=top_blogs&amp;page={R:2}&amp;per_page={R:1}" appendQueryString="true" />

                </rule>

                <rule name="Imported Rule 6" stopProcessing="true">

                    <match url="^blogs/top_posts/{0,1}$" ignoreCase="false" />

                    <action type="Rewrite" url="modules/boonex/blogs/blogs.php?action=top_posts" appendQueryString="true" />

                </rule>

                <rule name="Imported Rule 7" stopProcessing="true">

                    <match url="^blogs/top_posts/([0-9]+)/([0-9]+)/{0,1}$" ignoreCase="false" />

                    <action type="Rewrite" url="modules/boonex/blogs/blogs.php?action=top_posts&amp;page={R:2}&amp;per_page={R:1}" appendQueryString="true" />

                </rule>

                <rule name="Imported Rule 8" stopProcessing="true">

                    <match url="^blogs/tag/([^/.]+)/{0,1}$" ignoreCase="false" />

                    <action type="Rewrite" url="modules/boonex/blogs/blogs.php?action=search_by_tag&amp;tagKey={R:1}" appendQueryString="true" />

                </rule>

                <rule name="Imported Rule 9" stopProcessing="true">

                    <match url="^blogs/tag/{0,1}$" ignoreCase="false" />

                    <action type="Rewrite" url="modules/boonex/blogs/blogs.php?action=search_by_tag&amp;tagKey=" appendQueryString="true" />

                </rule>

                <rule name="Imported Rule 10" stopProcessing="true">

                    <match url="^blogs/posts/([^/.]+)/tag/([^/.]+)/{0,1}$" ignoreCase="false" />

                    <action type="Rewrite" url="modules/boonex/blogs/blogs.php?action=search_by_tag&amp;tagKey={R:2}&amp;ownerName={R:1}" appendQueryString="true" />

                </rule>

                <rule name="Imported Rule 11" stopProcessing="true">

                    <match url="^blogs/posts/([^/.]+)/category/([^/.]+)/{0,1}$" ignoreCase="false" />

                    <action type="Rewrite" url="modules/boonex/blogs/blogs.php?action=show_member_blog&amp;ownerName={R:1}&amp;categoryUri={R:2}" appendQueryString="true" />

                </rule>

                <rule name="Imported Rule 12" stopProcessing="true">

                    <match url="^blogs/entry/([^/.]+)/{0,1}$" ignoreCase="false" />

                    <action type="Rewrite" url="modules/boonex/blogs/blogs.php?action=show_member_post&amp;postUri={R:1}" appendQueryString="true" />

                </rule>

                <rule name="Imported Rule 13" stopProcessing="true">

                    <match url="^blogs/entry/{0,1}$" ignoreCase="false" />

                    <action type="Rewrite" url="modules/boonex/blogs/blogs.php?action=show_member_post&amp;postUri=" appendQueryString="true" />

                </rule>

                <rule name="Imported Rule 14" stopProcessing="true">

                    <match url="^blogs/posts/([^/.]+)/{0,1}$" ignoreCase="false" />

                    <action type="Rewrite" url="modules/boonex/blogs/blogs.php?action=show_member_blog&amp;ownerName={R:1}" appendQueryString="true" />

                </rule>

                <rule name="Imported Rule 15" stopProcessing="true">

                    <match url="^blogs/posts/{0,1}$" ignoreCase="false" />

                    <action type="Rewrite" url="modules/boonex/blogs/blogs.php?action=show_member_blog&amp;ownerName=" appendQueryString="true" />

                </rule>

                <rule name="Imported Rule 16" stopProcessing="true">

                    <match url="^blogs/posts/([^/.]+)/([0-9]+)/([0-9]+)/{0,1}$" ignoreCase="false" />

                    <action type="Rewrite" url="modules/boonex/blogs/blogs.php?action=show_member_blog&amp;ownerName={R:1}&amp;page={R:3}&amp;per_page={R:2}" appendQueryString="true" />

                </rule>

                <rule name="Imported Rule 17" stopProcessing="true">

                    <match url="^blogs/posts/([^/.]+)/category/([^/.]+)/([0-9]+)/([0-9]+)/{0,1}$" ignoreCase="false" />

                    <action type="Rewrite" url="modules/boonex/blogs/blogs.php?action=show_member_blog&amp;ownerName={R:1}&amp;categoryUri={R:2}&amp;page={R:4}&amp;per_page={R:3}" appendQueryString="true" />

                </rule>

                <rule name="Imported Rule 18" stopProcessing="true">

                    <match url="^blogs/home/{0,1}$" ignoreCase="false" />

                    <action type="Rewrite" url="modules/boonex/blogs/blogs.php?action=home" appendQueryString="true" />

                </rule>

                <rule name="Imported Rule 19" stopProcessing="true">

                    <match url="^blogs/all_posts/{0,1}$" ignoreCase="false" />

                    <action type="Rewrite" url="modules/boonex/blogs/blogs.php?action=all_posts" appendQueryString="true" />

                </rule>

                <rule name="Imported Rule 20" stopProcessing="true">

                    <match url="^blogs/all_posts/([0-9]+)/([0-9]+)/{0,1}$" ignoreCase="false" />

                    <action type="Rewrite" url="modules/boonex/blogs/blogs.php?action=all_posts&amp;page={R:2}&amp;per_page={R:1}" appendQueryString="true" />

                </rule>

                <rule name="Imported Rule 21" stopProcessing="true">

                    <match url="^blogs/popular_posts/{0,1}$" ignoreCase="false" />

                    <action type="Rewrite" url="modules/boonex/blogs/blogs.php?action=popular_posts" appendQueryString="true" />

                </rule>

                <rule name="Imported Rule 22" stopProcessing="true">

                    <match url="^blogs/popular_posts/([0-9]+)/([0-9]+)/{0,1}$" ignoreCase="false" />

                    <action type="Rewrite" url="modules/boonex/blogs/blogs.php?action=popular_posts&amp;page={R:2}&amp;per_page={R:1}" appendQueryString="true" />

                </rule>

                <rule name="Imported Rule 23" stopProcessing="true">

                    <match url="^blogs/featured_posts/{0,1}$" ignoreCase="false" />

                    <action type="Rewrite" url="modules/boonex/blogs/blogs.php?action=featured_posts" appendQueryString="true" />

                </rule>

                <rule name="Imported Rule 24" stopProcessing="true">

                    <match url="^blogs/tags/{0,1}$" ignoreCase="false" />

                    <action type="Rewrite" url="modules/boonex/blogs/blogs.php?action=tags" appendQueryString="true" />

                </rule>

                <rule name="Imported Rule 25" stopProcessing="true">

                    <match url="^blogs/show_calendar/{0,1}$" ignoreCase="false" />

                    <action type="Rewrite" url="modules/boonex/blogs/blogs.php?action=show_calendar" appendQueryString="true" />

                </rule>

                <rule name="Imported Rule 26" stopProcessing="true">

                    <match url="^blogs/my_page/{0,1}$" ignoreCase="false" />

                    <action type="Rewrite" url="modules/boonex/blogs/blogs.php?action=my_page&amp;mode=main" appendQueryString="true" />

                </rule>

                <rule name="Imported Rule 27" stopProcessing="true">

                    <match url="^blogs/my_page/add/{0,1}$" ignoreCase="false" />

                    <action type="Rewrite" url="modules/boonex/blogs/blogs.php?action=my_page&amp;mode=add" appendQueryString="true" />

                </rule>

                <rule name="Imported Rule 28" stopProcessing="true">

                    <match url="^blogs/my_page/manage/{0,1}$" ignoreCase="false" />

                    <action type="Rewrite" url="modules/boonex/blogs/blogs.php?action=my_page&amp;mode=manage" appendQueryString="true" />

                </rule>

                <rule name="Imported Rule 29" stopProcessing="true">

                    <match url="^blogs/my_page/pending/{0,1}$" ignoreCase="false" />

                    <action type="Rewrite" url="modules/boonex/blogs/blogs.php?action=my_page&amp;mode=pending" appendQueryString="true" />

                </rule>

                <rule name="Imported Rule 30" stopProcessing="true">

                    <match url="^blogs/my_page/edit/([0-9]+)/{0,1}$" ignoreCase="false" />

                    <action type="Rewrite" url="modules/boonex/blogs/blogs.php?action=edit_post&amp;EditPostID={R:1}" appendQueryString="true" />

                </rule>

                <rule name="Imported Rule 31" stopProcessing="true">

                    <match url="^blogs/member_posts/([0-9]+)/{0,1}$" ignoreCase="false" />

                    <action type="Rewrite" url="modules/boonex/blogs/blogs.php?action=show_member_blog&amp;ownerID={R:1}" appendQueryString="true" />

                </rule>

                <rule name="Imported Rule 32" stopProcessing="true">

                    <match url="^blogs/category/([^/.]+)/{0,1}$" ignoreCase="false" />

                    <action type="Rewrite" url="modules/boonex/blogs/blogs.php?action=category&amp;uri={R:1}" appendQueryString="true" />

                </rule>

                <rule name="Imported Rule 33" stopProcessing="true">

                    <match url="^ads/{0,1}$" ignoreCase="false" />

                    <action type="Rewrite" url="modules/boonex/ads/classifieds.php?Browse=1" appendQueryString="true" />

                </rule>

                <rule name="Imported Rule 34" stopProcessing="true">

                    <match url="^ads/my_page/{0,1}$" ignoreCase="false" />

                    <action type="Rewrite" url="modules/boonex/ads/classifieds.php?action=my_page" appendQueryString="true" />

                </rule>

                <rule name="Imported Rule 35" stopProcessing="true">

                    <match url="^ads/my_page/add/{0,1}$" ignoreCase="false" />

                    <action type="Rewrite" url="modules/boonex/ads/classifieds.php?action=my_page&amp;mode=add" appendQueryString="true" />

                </rule>

                <rule name="Imported Rule 36" stopProcessing="true">

                    <match url="^ads/my_page/edit/([0-9]+)/{0,1}$" ignoreCase="false" />

                    <action type="Rewrite" url="modules/boonex/ads/classifieds.php?action=my_page&amp;mode=add&amp;EditPostID={R:1}" appendQueryString="true" />

                </rule>

                <rule name="Imported Rule 37" stopProcessing="true">

                    <match url="^ads/my_page/edit/([0-9]+)/dimg/([0-9]+)/{0,1}$" ignoreCase="false" />

                    <action type="Rewrite" url="modules/boonex/ads/classifieds.php?action=my_page&amp;mode=add&amp;EditPostID={R:1}&amp;dimg={R:2}" appendQueryString="true" />

                </rule>

                <rule name="Imported Rule 38" stopProcessing="true">

                    <match url="^ads/my_page/manage/{0,1}$" ignoreCase="false" />

                    <action type="Rewrite" url="modules/boonex/ads/classifieds.php?action=my_page&amp;mode=manage" appendQueryString="true" />

                </rule>

                <rule name="Imported Rule 39" stopProcessing="true">

                    <match url="^ads/my_page/pending/{0,1}$" ignoreCase="false" />

                    <action type="Rewrite" url="modules/boonex/ads/classifieds.php?action=my_page&amp;mode=pending" appendQueryString="true" />

                </rule>

                <rule name="Imported Rule 40" stopProcessing="true">

                    <match url="^ads/my_page/expired/{0,1}$" ignoreCase="false" />

                    <action type="Rewrite" url="modules/boonex/ads/classifieds.php?action=my_page&amp;mode=expired" appendQueryString="true" />

                </rule>

                <rule name="Imported Rule 41" stopProcessing="true">

                    <match url="^ads/my_page/disapproved/{0,1}$" ignoreCase="false" />

                    <action type="Rewrite" url="modules/boonex/ads/classifieds.php?action=my_page&amp;mode=disapproved" appendQueryString="true" />

                </rule>

                <rule name="Imported Rule 42" stopProcessing="true">

                    <match url="^ads/cat/([^/.]+)/{0,1}$" ignoreCase="false" />

                    <action type="Rewrite" url="modules/boonex/ads/classifieds.php?catUri={R:1}" appendQueryString="true" />

                </rule>

                <rule name="Imported Rule 43" stopProcessing="true">

                    <match url="^ads/all/cat/([0-9]+)/([0-9]+)/([^/.]+)/{0,1}$" ignoreCase="false" />

                    <action type="Rewrite" url="modules/boonex/ads/classifieds.php?catUri={R:3}&amp;page={R:2}&amp;per_page={R:1}" appendQueryString="true" />

                </rule>

                <rule name="Imported Rule 44" stopProcessing="true">

                    <match url="^ads/subcat/([^/.]+)/{0,1}$" ignoreCase="false" />

                    <action type="Rewrite" url="modules/boonex/ads/classifieds.php?scatUri={R:1}" appendQueryString="true" />

                </rule>

                <rule name="Imported Rule 45" stopProcessing="true">

                    <match url="^ads/all/subcat/([0-9]+)/([0-9]+)/([^/.]+)/{0,1}$" ignoreCase="false" />

                    <action type="Rewrite" url="modules/boonex/ads/classifieds.php?scatUri={R:3}&amp;page={R:2}&amp;per_page={R:1}" appendQueryString="true" />

                </rule>

                <rule name="Imported Rule 46" stopProcessing="true">

                    <match url="^ads/entry/([^/.]+)/{0,1}$" ignoreCase="false" />

                    <action type="Rewrite" url="modules/boonex/ads/classifieds.php?entryUri={R:1}" appendQueryString="true" />

                </rule>

                <rule name="Imported Rule 47" stopProcessing="true">

                    <match url="^ads/tag/([^/.]+)/{0,1}$" ignoreCase="false" />

                    <action type="Rewrite" url="modules/boonex/ads/classifieds_tags.php?tag={R:1}" appendQueryString="true" />

                </rule>

                <rule name="Imported Rule 48" stopProcessing="true">

                    <match url="^ads/calendar/{0,1}$" ignoreCase="false" />

                    <action type="Rewrite" url="modules/boonex/ads/classifieds.php?action=show_calendar" appendQueryString="true" />

                </rule>

                <rule name="Imported Rule 49" stopProcessing="true">

                    <match url="^ads/categories/{0,1}$" ignoreCase="false" />

                    <action type="Rewrite" url="modules/boonex/ads/classifieds.php?action=show_categories" appendQueryString="true" />

                </rule>

                <rule name="Imported Rule 50" stopProcessing="true">

                    <match url="^ads/tags/{0,1}$" ignoreCase="false" />

                    <action type="Rewrite" url="modules/boonex/ads/classifieds.php?action=tags" appendQueryString="true" />

                </rule>

                <rule name="Imported Rule 51" stopProcessing="true">

                    <match url="^ads/all_ads/{0,1}$" ignoreCase="false" />

                    <action type="Rewrite" url="modules/boonex/ads/classifieds.php?action=show_all_ads" appendQueryString="true" />

                </rule>

                <rule name="Imported Rule 52" stopProcessing="true">

                    <match url="^ads/top_ads/{0,1}$" ignoreCase="false" />

                    <action type="Rewrite" url="modules/boonex/ads/classifieds.php?action=show_top_rated" appendQueryString="true" />

                </rule>

                <rule name="Imported Rule 53" stopProcessing="true">

                    <match url="^ads/popular_ads/{0,1}$" ignoreCase="false" />

                    <action type="Rewrite" url="modules/boonex/ads/classifieds.php?action=show_popular" appendQueryString="true" />

                </rule>

                <rule name="Imported Rule 54" stopProcessing="true">

                    <match url="^ads/featured_ads/{0,1}$" ignoreCase="false" />

                    <action type="Rewrite" url="modules/boonex/ads/classifieds.php?action=show_featured" appendQueryString="true" />

                </rule>

                <rule name="Imported Rule 55" stopProcessing="true">

                    <match url="^ads/member_ads/([0-9]+)/{0,1}$" ignoreCase="false" />

                    <action type="Rewrite" url="modules/boonex/ads/classifieds.php?UsersOtherListing=1&amp;IDProfile={R:1}" appendQueryString="true" />

                </rule>

                <rule name="Imported Rule 56" stopProcessing="true">

                    <match url="^search/tag/([^/.]+)/{0,1}$" ignoreCase="false" />

                    <action type="Rewrite" url="search.php?Tags={R:1}" appendQueryString="true" />

                </rule>

                <rule name="Imported Rule 57" stopProcessing="true">

                    <match url="^browse/([^/.]+)/([^/.]+)/([^/.]+)$" ignoreCase="false" />

                    <action type="Rewrite" url="browse.php?sex={R:1}&amp;age={R:2}&amp;country={R:3}" appendQueryString="true" />

                </rule>

                <rule name="Imported Rule 58" stopProcessing="true">

                    <match url="^m/(.*)$" ignoreCase="false" />

                    <action type="Rewrite" url="modules/index.php?r={R:1}" appendQueryString="true" />

                </rule>

                <rule name="Imported Rule 59" stopProcessing="true">

                    <match url="^forum/groups/(.*)$" ignoreCase="false" />

                    <action type="Rewrite" url="modules/boonex/forum/{R:1}?orca_integration=groups" appendQueryString="true" />

                </rule>

                <rule name="Imported Rule 60" stopProcessing="true">

                    <match url="^forum/events/(.*)$" ignoreCase="false" />

                    <action type="Rewrite" url="modules/boonex/forum/{R:1}?orca_integration=events" appendQueryString="true" />

                </rule>

                <rule name="Imported Rule 61" stopProcessing="true">

                    <match url="^forum/store/(.*)$" ignoreCase="false" />

                    <action type="Rewrite" url="modules/boonex/forum/{R:1}?orca_integration=store" appendQueryString="true" />

                </rule>

                <rule name="Imported Rule 62" stopProcessing="true">

                    <match url="^forum/$" ignoreCase="false" />

                    <action type="Rewrite" url="modules/boonex/forum/index.php" appendQueryString="true" />

                </rule>

                <rule name="Imported Rule 63" stopProcessing="true">

                    <match url="^forum/(.*)$" ignoreCase="false" />

                    <action type="Rewrite" url="modules/boonex/forum/{R:1}" appendQueryString="true" />

                </rule>

                <rule name="Imported Rule 64" stopProcessing="true">

                    <match url="^page/(.*)$" ignoreCase="false" />

                    <action type="Rewrite" url="viewPage.php?ID={R:1}" appendQueryString="true" />

                </rule>

                <rule name="Imported Rule 65" stopProcessing="true">

                    <match url=".+" ignoreCase="false" />

                    <conditions logicalGrouping="MatchAny">

                        <add input="{REQUEST_FILENAME}" matchType="IsFile" ignoreCase="false" />

                        <add input="{REQUEST_FILENAME}" matchType="IsDirectory" ignoreCase="false" />

                    </conditions>

                    <action type="None" />

                </rule>

                <rule name="Imported Rule 66" stopProcessing="true">

                    <match url="^([^/]+)$" ignoreCase="false" />

                    <action type="Rewrite" url="profile.php?ID={R:1}" appendQueryString="true" />

                </rule>

            </rules>

        </rewrite>

    </system.webServer>

</configuration>

https://dolphin-techs.com - Skype: Dolphin Techs
Quote · 15 Dec 2018

Does the forum module have a different kind of "rewrite" logic then other modules?

Quote · 15 Dec 2018

Hello mrtn!

 

Yes, it was integration from the singleton forum package. So it has the own lines in Dolphin .htaccess file:

 

RewriteRule ^forum/groups/(.*)$  modules/boonex/forum/$1?orca_integration=groups [QSA,L]
RewriteRule ^forum/events/(.*)$  modules/boonex/forum/$1?orca_integration=events [QSA,L]
RewriteRule ^forum/store/(.*)$  modules/boonex/forum/$1?orca_integration=store [QSA,L]
RewriteRule ^forum/$  modules/boonex/forum/index.php [QSA,L]
RewriteRule ^forum/(.*)$  modules/boonex/forum/$1 [QSA,L]
Quote · 18 Dec 2018
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.