Open PHuhn opened 6 years ago
Are you setting up the default WP rewrite rules or applying some custom rules of your own?
Hi Patrick:
The web.config is here https://github.com/PHuhn/ProjectNami-Windows-Install-Utils/blob/master/web.config. I am not familiar with default WP rewrite rules. The rewrite section is as follows:
<rewrite>
<rules>
<rule name="Main WordPress Rule" stopProcessing="true">
<match url=".*" />
<conditions logicalGrouping="MatchAll">
<!-- add input="{REQUEST_URI}" matchType="Pattern" pattern="^/wp-admin/" negate="true" /-->
<add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
</conditions>
<action type="Rewrite" url="index.php" />
</rule>
</rules>
</rewrite>
I pulled this together in September 2017, at that time this worked fine.
Phil
Hi Patrick:
I failed to assign the URL rewrite in the IIS Manager, that solved part of the problem. But, I am still getting the crop image problem.
Phil
Try using this ruleset instead. There are some slight differences.
<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"/>
</conditions>
<action type="Rewrite" url="index.php"/>
</rule></rules>
</rewrite>
@patrickebates I inserted your code but I still got the same error.
@andrewnyr what can you tell me about your server environment? Also, are you configured as a single WP site or a multisite? If multisite, subdir or domains?
Windows Server 2008 R2 x64 Single site one domain
On Thu, Jan 24, 2019 at 9:43 PM Patrick Bates notifications@github.com wrote:
@andrewnyr https://github.com/andrewnyr what can you tell me about your server environment? Also, are you configured as a single WP site or a multisite? If multisite, subdir or domains?
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/ProjectNami/projectnami/issues/290#issuecomment-457435604, or mute the thread https://github.com/notifications/unsubscribe-auth/As1Dw3vRAZS4zJuZ5KtpnVlUa44lBb_Iks5vGm9UgaJpZM4VLtOh .
URL Rewrite 2.0 is installed and operating?
Yep
Version of PHP and .Net running on the site? I assume the site is running Integrated Pipeline.
Php 7.2 net up to date
Can you provide an example of an image src which is failing?
Note: I never got it working with URL rewrite.
Hi Patrick:
I have a new local install of Project-Nami. No active plugins. If I use my web.config to turn on URL rewrite, I get a broken image and a Crop image error:
Phil