• Sign in / Join

Login

Forgot your password?
Do not have an account ?Register here
X

Register

Have an account?Login here
X
  • Home
  • Blog
  • Image Gallery
  • News Archive
    • Hardware News
    • Gaming News
    • Affiliate News
Trending now

Steam Frame Released! $1059 to $1299!

SteelSeries Aeon Pro vs 8BitDo Ultimate 3E:…

What You Need to Know: Apple iPhone…

Xbox Layoffs: What Can Developers Do Now?

I Played Halloween: The Game So You…

Do Yourself a Favor: Buy a Steam…

Halloween: The Game, Apple Foldables, Google’s Hollywood…

Divinum: The Indie Platformer You Can’t Ignore

12 Minutes of Rapid-Fire Tech Tips (volume…

Why We Defend Our VR Hardware To…

OCmodshop.com

  • Hardware
    • Audio
    • Cases
    • Coolers
    • Gadgets
    • Home Theater
    • Input Devices
    • Laptops
    • Memory (RAM)
    • Motherboards
    • Networking
    • Power Supplies
    • Processors (CPU)
    • Storage
    • Video Cards
  • Gaming
    • Gaming Accessories
    • Game Walkthroughs
    • PC Games
    • Xbox
    • Playstation
    • Nintendo
  • Articles
    • How-To Guides
    • Case Mod Projects
    • Software
    • Event Coverage
    • Movies
    • Interviews
  • Podcast
FacebookTwitterYoutubeSpotifyTwitchSteam
How-To Guides

How to set up Pretty Permalinks on IIS7

by Alan McCloskeyMarch 21, 2009June 24, 2014058
Share0

WordPress was originally meant for Linux servers running Apache.  Apache has a nice module called mod-rewrite, which basically allows the usage of pretty permalinks.  Pretty permalinks are URLs that are easy to understand by a user, and really help search engines index your pages… hence the main reason webmasters want to implement these in the first place. 

Windows server have been out of luck when it comes to WordPress.  The didn’t have a good URL-rewriter or a good caching system… and installing PHP on IIS isn’t a walk in the park either. 

IIS7 changes all of that.  I’ve blogged about these features in other posts, so I won’t rant about them here.  Here’s how you enable pretty permalinks in WordPress on IIS7.

In WordPress, go to Settings, and then Permalink.

Click Custom and enter your permalink format.  I use

/%year%/%monthnum%/%day%/%postname%/

It’s pretty  much the same as the default date, but without index.php at the front.

Click Update Permalink Structure

Now you have to edit the web.config file at the root of the WordPress site.  Insert the following code between the system.webServer elements…

<rewrite>
    <rules>
        <rule name=”Main Rule” 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>

Save it, and POOF!  Your URLs should magically work without the ugly index.php parameter.  Now let Google and the other search engines go crazy on your site!

Post Views: 116
IISWindows ServerWordpressShare0
previous post
OCmodblog moved over to Server 2008
next post
Wallace and Gromit Info Straight from Telltale
Alan McCloskey
Alan is a web architect, stand-up comedian, and your friendly neighborhood Grammar Nerd. You can stalk him on the Interwebs via Facebook and follow him on X @ocmodshop.

Related posts

Multipage Toolkit screwing up WordPress Permalinks FIXED!

Alan McCloskeyJune 15, 2011June 21, 2014

Server 2008 Woes Over

Alan McCloskeyMarch 19, 2009August 25, 2014

Exchange is a pain

Alan McCloskeyOctober 20, 2008August 25, 2014

Latest podcast

Recent Posts

  • Steam Frame Released! $1059 to $1299!
  • SteelSeries Aeon Pro vs 8BitDo Ultimate 3E: A Brutal Comparison
  • What You Need to Know: Apple iPhone Duo, Xbox Controllers, and Gaming News | Ocmodcast
  • Xbox Layoffs: What Can Developers Do Now?
  • I Played Halloween: The Game So You Don’t Have To
  • Do Yourself a Favor: Buy a Steam Deck in 2026
  • Halloween: The Game, Apple Foldables, Google’s Hollywood Heist, Console GPUs | Episode 17
  • Divinum: The Indie Platformer You Can’t Ignore
OCmodshop.com
FacebookTwitterYoutubeSpotifyTwitchSteam
@2026 - ocmodshop.com. All Right Reserved.
  • About Us
  • Terms of Use / Privacy Policy
  • Copyrights
  • Our Rating System
  • Publish an Article on OCmodshop
  • Contest Rules
OCmodshop.com
FacebookTwitterYoutubeSpotifyTwitchSteam
  • Hardware
    • Audio
    • Cases
    • Coolers
    • Gadgets
    • Home Theater
    • Input Devices
    • Laptops
    • Memory (RAM)
    • Motherboards
    • Networking
    • Power Supplies
    • Processors (CPU)
    • Storage
    • Video Cards
  • Gaming
    • Gaming Accessories
    • Game Walkthroughs
    • PC Games
    • Xbox
    • Playstation
    • Nintendo
  • Articles
    • How-To Guides
    • Case Mod Projects
    • Software
    • Event Coverage
    • Movies
    • Interviews
  • Podcast
Manage Consent
To provide the best experiences, we use technologies like cookies to store and/or access device information. Consenting to these technologies will allow us to process data such as browsing behavior or unique IDs on this site. Not consenting or withdrawing consent, may adversely affect certain features and functions.
Functional Always active
The technical storage or access is strictly necessary for the legitimate purpose of enabling the use of a specific service explicitly requested by the subscriber or user, or for the sole purpose of carrying out the transmission of a communication over an electronic communications network.
Preferences
The technical storage or access is necessary for the legitimate purpose of storing preferences that are not requested by the subscriber or user.
Statistics
The technical storage or access that is used exclusively for statistical purposes. The technical storage or access that is used exclusively for anonymous statistical purposes. Without a subpoena, voluntary compliance on the part of your Internet Service Provider, or additional records from a third party, information stored or retrieved for this purpose alone cannot usually be used to identify you.
Marketing
The technical storage or access is required to create user profiles to send advertising, or to track the user on a website or across several websites for similar marketing purposes.
  • Manage options
  • Manage services
  • Manage {vendor_count} vendors
  • Read more about these purposes
View preferences
  • {title}
  • {title}
  • {title}