• 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

FPS vs Hz, PHP’s bad week, and…

10 Songs That Every Geek Needs to…

Xbox Mode on Windows 11 Is a…

I Used the Steam Frame for a…

Why Adults Are Obsessed with ‘Bluey: Happy…

The Invisible Trailer — Why Big Tech…

Steam Frame Tour, Elon Musk Controversy, Hellraiser…

Hellraiser: Revival 60 fps on Steam Deck

I Tried DLSS 5 on AMD –…

I Unboxed Valve’s Steam Frame and I’m…

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, 20140118
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: 222
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

Exchange is a pain

Alan McCloskeyOctober 20, 2008August 25, 2014

Trying Server 2008

Alan McCloskeyMarch 1, 2009August 25, 2014

Similar Posts WordPress Problem Solved

Alan McCloskeyApril 9, 2009August 25, 2014
Free customized computer parts listFree customized PC parts list

Latest podcast

Join the OCmodshop NewsletterJoin the newsletter!

Recent Posts

  • FPS vs Hz, PHP’s bad week, and remembering PC Game boxes | Ocmodcast episode 24
  • 10 Songs That Every Geek Needs to Hear Right Now!
  • Xbox Mode on Windows 11 Is a Console Experience (Turn It On Now)
  • I Used the Steam Frame for a Week and Here’s the Truth
  • Why Adults Are Obsessed with ‘Bluey: Happy Snaps’ (And Why We Need It)
  • The Invisible Trailer — Why Big Tech Blocked the Elon Musk Documentary
  • Steam Frame Tour, Elon Musk Controversy, Hellraiser Revival, and Bluey! | OCmodcast episode 23
  • Hellraiser: Revival 60 fps on Steam Deck
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}