• 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

R36S Review: The best $40 you’ll ever…

Steam Frame adapter, E-Day, and Xbox Protests…

Gears of War E-Day Multiplayer Beta Gameplay

OCmodshop YouTube perks

The Steam Frame Adapter: Why Valve Is…

The Number 3,000!

SteamOS on Windows? This Winhanced UI Comes…

You Don’t Own Your Digital Games (And…

Disc Rot Is Real and Here’s Why…

Steam E502 L3 Error Keeps Happening? Try…

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, 2014032
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: 72
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

Server Room Cooling and Considerations

Guest WriterAugust 27, 2008November 28, 2014

WordPress vs .NET app?

Alan McCloskeyDecember 12, 2008August 25, 2014

Trying Server 2008

Alan McCloskeyMarch 1, 2009August 25, 2014

Latest podcast

Recent Posts

  • R36S Review: The best $40 you’ll ever spend on gaming
  • Steam Frame adapter, E-Day, and Xbox Protests | OCmodcast ep 14
  • Gears of War E-Day Multiplayer Beta Gameplay
  • OCmodshop YouTube perks
  • The Steam Frame Adapter: Why Valve Is Preparing This Now
  • The Number 3,000!
  • SteamOS on Windows? This Winhanced UI Comes Close
  • You Don’t Own Your Digital Games (And Here Is Why)
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}