Print Page | Close Window

Help with URL re-writing on IIS7

Printed From: Web Wiz Forums
Category: Web Wiz Web App Support Forums
Forum Name: Web Wiz Forums
Forum Description: Support forum for Web Wiz Forums application.
URL: https://forums.webwiz.net/forum_posts.asp?TID=29452
Printed Date: 01 April 2026 at 10:40am
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: Help with URL re-writing on IIS7
Posted By: dbramley
Subject: Help with URL re-writing on IIS7
Date Posted: 24 June 2011 at 10:19am
Hi,
Can anyone help me with URL rewriting please?

I have Wordpress installed and have the following web.config file for use with rewriting the wordpress url's:

<configuration>
  <system.webServer>
    <rewrite>
      <rules>
<rule name="wordpress" patternSyntax="Wildcard">
<match url="*"/>
<conditions>
<add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true"/>
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true"/>
<add input="/forum" negate="true" matchType="IsDirectory" />  
</conditions>
<action type="Rewrite" url="index.php"/>
</rule></rules>
    </rewrite>
  </system.webServer>
</configuration>


This works fine and I have no issues.

My problem is trying to get WebWiz url rewriting working in conjunction with wordpress.

If I upload the WebWiz one into my /forum folder then I receive page not found errors.

I *think* I need to exclude my /forum directory from being re-written in the wordpress web.config file but I'm not really sure.

Any suggestions?

Thanks!
Dan



Replies:
Posted By: WebWiz-Bruce
Date Posted: 24 June 2011 at 11:43am
Have a look at the following page:-
http://forums.iis.net/t/1172342.aspx" rel="nofollow -
http://forums.iis.net/t/1172342.aspx


-------------
https://www.webwiz.net/web-wiz-forums/forum-hosting.htm" rel="nofollow - Web Wiz Forums Hosting
https://www.webwiz.net/web-hosting/windows-web-hosting.htm" rel="nofollow - ASP.NET Web Hosting


Posted By: dbramley
Date Posted: 24 June 2011 at 1:47pm
Thanks - it kind of put me in the right direction. I didnt realise the re-write module added itself under IIS.

What I was able to do was upload a web.config file for wordpress in the root of my website.
Upload a WebWiz web.config file in the /forum folder on my website

Run IIS manager, browsed to /forum folder, run the URL Rewrite module and disable the wordpress rule only for the /forum folder.

Fingers crossed all seems to be working ok now.

I have no idea how to manually write a web.config file to sort this out mind...

Thanks



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net