• 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

GTA 6, Wookies, Steam Machine and stuff

25 Things You Didn’t Know About Xbox

NVIDIA in bed with Chinese Spies?, Steam…

Don’t Build a DIY SSD Until You…

Why Do PC Game Boxes Feel So…

Why Is My Linux Storage Full? Find…

OLED VR Headsets Won’t Succeed Until This…

Gaming Friends, PC Builds, Moon Sweepers, and…

The Steam Frame’s 16GB RAM Wastes Nothing

Is Steam The Best Way To Save…

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, 20140164
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: 292
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

How to center two inline images in WordPress

Alan McCloskeyOctober 11, 2012June 21, 2014

WordPress vs .NET app?

Alan McCloskeyDecember 12, 2008August 25, 2014

Adding FLVs to Windows Server 2003

Alan McCloskeyFebruary 21, 2009August 25, 2014
Free customized computer parts listFree customized PC parts list

Latest podcast

Join the OCmodshop NewsletterJoin the newsletter!

Recent Posts

  • GTA 6, Wookies, Steam Machine and stuff
  • 25 Things You Didn’t Know About Xbox
  • NVIDIA in bed with Chinese Spies?, Steam Machine crisis over, Xbox 25 & SHREK IS LIFE
  • Don’t Build a DIY SSD Until You Watch This
  • Why Do PC Game Boxes Feel So Good in 2026?
  • Why Is My Linux Storage Full? Find Out Here
  • OLED VR Headsets Won’t Succeed Until This Is Fixed
  • Gaming Friends, PC Builds, Moon Sweepers, and the GTA 6 Countdown | OCmodcast episode 26
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}