WP has global $is_iis7
variable, which is filled via following code:
$is_iis7 = $is_IIS && intval( substr( $_SERVER['SERVER_SOFTWARE'], strpos( $_SERVER['SERVER_SOFTWARE'], 'Microsoft-IIS/' ) + 14 ) ) >= 7;
If detection is not working correctly likely something is going wrong with this line, such as server vars not being filled with the info expected.
Related Posts:
- Permalinks on Windows IIS not working and web.config breaks site – does wordpress not support windows server now, if so how?
- IIS 7 Rewrite with parent categories
- IIS7.5 URL rewrite pboblem on index page
- All pages lead to home
- remove “index.php” from permalinks
- Passing and retrieving query vars in wordpress
- How does WordPress handle permalinks?
- Creating custom permalink structure for languages
- How to remove dates from existing permalinks?
- Getting the Site URL Including the Front Base
- Date based URLs for custom posts and pagination
- How to custom change author base without $this->front?
- How to prevent the default home rewrite to a static page
- URL Rewrite + Page + Custom Post Type = Unusual Redirect
- Make post slug have priority over category slug
- How to remove the index.php in the url?
- Remove subfolders from URL
- Remove parent slug for child pages
- flexible rewrite ‘ramble’ URLs with WordPress
- Change the custom post type permalink
- Rewrite user profile URL to be human friendly
- removing index.php IIS 7.5 webconfig
- Rewrite URL Parameter And Force ‘Pretty’ Permalink
- rewrite_rule for custom post type doesn’t affect get_permalink
- Add ‘articles’ prefix before blog posts url without affecting pagination
- Image Attachment Url Rewrite
- Incorrect 404 for pages when using permalink, a static front page, and posts page
- WordPress not respecting template hierarchy (fetches index.php instead of single.php or page.php)
- How to improve WordPress security by hiding non public facing files?
- Call to a member function add_rule() on a non-object
- Change author slug and functionality
- Why does chrome keep downloading a file instead of running the site?
- How can I add a page’s ID to its permalink using WP_Rewrite?
- Re-write specific custom post type category URL to go to another page
- Use Regular Expression to get tag from permalink url during wp_rewrite in generate_rewrite_rules
- Is it possible to keep all special letters for foreign languages in slug as in title?
- Change blog segment of URL
- WordPress Permalinks & Nginx Rewrite Rule Not Working
- How to redirect to correct pages after permalink structure change
- Share same Slug for a Custom Post Type and 2 Taxonomies
- Add prefix to page URL based on the page template
- How to remove specific category from URL in WordPress
- Redirect a Blogger Page URL to wordpress
- Custom permalink leads to index page
- Permalinks 404 error with HTTPS host
- Mirror content based on URL slug
- How to change hierarchical page permalinks to be flat
- How to rewrite a URL to another rewritten URL without changing the address?
- Passing the JQuery string to Worldpress URL
- One blog inside another
- Permalink opens attachment instead of page
- Format HTTP links
- wordpress how to replace url /bar with foo/bar for custom post type
- Change directory url to be same as page permalink?
- How Do I get the author’s page id?
- Order custom post type posts by custom field with pretty URL
- Show category name in the post URL only for specific categories
- Adding URL prefix for foreign language support
- 404 permalink errors on Pages only
- Exclude single page from permalink rule
- help to remove last trailing slash using add_rewrite_rule
- Change permalink to attachment
- home_url on IIS missing permalink index.php
- Problems with permalinks (.htaccess not working)
- WP-e-commerce (getshopped) – Annoying permalink issue [closed]
- Subdomains pointing to a permalink URL
- Can I change the URL structure for a CPT only?
- How to set add_query_arg properly for home page?
- corrupted URLs – can’t leave starting page
- Create different permalinks for same post
- Multiple Taxonomy Items for Separate URLs
- MySQL-inserted custom taxonomy term lead to 404, flush rewrites doesn’t help
- Permalink not changing according to post type
- Website URL Permalinks
- WP permalink working, but why content doesn’t display
- Flushing rewrite rules enables to see an article, but I didnt change anything
- Redirect page to homepage, keeping URL
- How can I put WordPress in a directory but keep just the home page at the domain root?
- Updates all internal links on permalink update
- how to have same rewrite rules for 2 different post type?
- rebuilding/ rewriting a url to make it SEO friendly
- What permastrusture tags are generated out of the box right after creating custom post types and taxonomies?
- Remove index.php from url in permalinks over IIS server (web.config)
- How to rewrite a folder in WordPress?
- On IIS, stop WordPress from resaving my web.config file when I enter the Permalinks config page
- Rewrite single template permalink?
- Category-dependent custom permalink
- Permalinks setting raises 500.0 error
- Folder Name and Category Name WordPress
- Editing the variables in a custom URL
- ?posts_type=xxx not rewritten
- Custom permalink variable on single post
- How to change pagination base from slash to query form?
- region selection
- WordPress custom permalinks, pages are now 404
- Include language variable in url
- Creating complex URLs with WordPress permalink structure
- Add additional URL variations for a Post
- Using a variable in page permalink
- How to make my custom permalink pull up the correct post