Created
April 29, 2013 03:38
-
-
Save jonahvsweb/5479580 to your computer and use it in GitHub Desktop.
How to Setup WordPress Permalinks on Windows IIS
======================================= Place this file into the base directory of your WordPress installation to allow permalinks (or "pretty URLs") on Windows IIS.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<configuration> | |
<system.webServer> | |
<rewrite> | |
<rules> | |
<rule name="wordpress" stopProcessing="true"> | |
<match url=".*" /> | |
<conditions logicalGrouping="MatchAll"> | |
<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> | |
</system.webServer> | |
</configuration> |
Hi, I'm trying to upload an image into website .image is updated in database but not showing ,only gray color box is displaying in the media library.
I've tried to uninstall all plugins and the theme which i was using but didn't work
This was so helpful... I ended up creating a slightly different version for my situation where Wordpress was in a subdirectory and where I needed the REST api to be reachable. https://gist.github.com/jeremymoore/82bebfbf164a07f63ea3ef4cdf5a1cd7
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks, you saved my day! One question: what if the Wordpress website is located in a subfolder, i.e /blog, but I want it to be accessible from the main domain example.com? I know in Apache all I have to do is to keep an .htaccess copy in both the root and /blog directory, but how about in IIS?