Best Blogging Tips and Templates,Windows and Web Applications & Games

Best Blogging Tips and Templates,Windows and Web Applications & Games


How To Set Pretty Permalinks in Wordpress Runs On IIS 7

Posted: 10 Mar 2010 10:09 AM PST


After applying so many things finally i have managed to enable pretty permalinks in my wordpress blog which is hosted on windows server and runs on IIS 7.0 with PHP. I must admit that this was very tough solution for how to set pretty permalinks in wordpress 2.8. you will be able to set same pretty permalinks for wordpress 2.9 also, you need to add a web.config file on the root directory of your blog. i have write this article for the IIS users who want to setup their Wordpress(2.8 or 2.9) blog on windows server for getting every benefit from wordpress. The WordPress will offer the pretty permalinks option only if PHP is running via FastCGI.
iis 7 pretty permalinksThere are some points which needs to be clear for all of you, read all the things given below very carfully.

Pretty permalinks are available under
  • Apache web server with the mod_rewrite module
  • Microsoft IIS 7+ web server with the URL Rewrite 1.1+ module and PHP 5+ running as FastCGI
  • Microsoft IIS 6+ using ASAPI_Rewrite
  • Lighttpd using a 404 handler or mod_rewrite or mod_magnet
Permalinks without mod_rewrite

"Pretty" permalinks usually require mod_rewrite, and IIS (common on Windows servers) does not support mod_rewrite. (If you are using Apache 2.0.54, on Windows, mod_rewrite may work, provided it is enabled in apache\conf\httpd.conf.)
Note that for the purposes of this walkthrough it is assumed that WordPress is installed in a Web site root directory. If WordPress is installed in a subdirectory, then the rewrite rules that are used in this walkthrough should be included in the Web.config file located within the same subdirectory where the wordPress files are.

There are three conditions that need to be true in order for WordPress 2.8 to offer pretty permalinks on IIS7:

1. PHP is running via FastCGI
2. PHP version 5 is used
3. URL Rewrite Module 1.1 is installed and enabled.
If any of those is not true then WordPress will work as in previous versions and will offer "Almost Pretty Permalinks" option.

To check if FastCGI is used, call phpinfo() function and check the "Server API". It should say "CGI/FastCGI". Alternatively, call php_sapi_name() function. It should return 'cgi-fcgi'.

- All above procedure are kind of prerequisites to set Pretty Permalinks in Wordpress Blogs. After setting up the wordpress blog, Go to Settings and click on permalinks and you will have a permalink settings window. Now in custom strcuture type /%category%/%postname%/ and click on save changes. see the screen shot given below here.


Create a Rewrite rule and put it in web.config XML file resides in your root folder.

If you haven't any web.config file in your root folder where wordpress is installed, just copy the code given below and paste it in web.config (make new web.config if not available).

<?xml version="1.0"?>
<configuration>
<system.webServer>
<defaultDocument>
<files>
<remove value="index.php" />
<add value="index.php" />
</files>
</defaultDocument>
<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/{R:0}" />
</rule>
</rules>
</rewrite>
</system.webServer>
</configuration>

After changes in web.config just open your home page or post page and chill :) you have done the permalink structure for your wordpress blog.

Read more:
http://codex.wordpress.org/Using_Permalinks
http://learn.iis.net/page.aspx/466/enabling-pretty-permalinks-in-wordpress/

Please let me know if anyone have any kind of doubt. comment below your queries and thanks if you like this article.

Save Flash file from Google Chrome without any Plugin or Addons

Posted: 10 Mar 2010 08:05 AM PST


How to save flash video or flash file from your Google chrome browser? with increasing number of Google chrome users there is a demand for Plugin or Addon which can help the users to save the flash file from their browser window. we will discuss now on how you can save any flash file from Google Chrome without any Plugin or Addons. I have just figured out a simpler way to save flash files on Google chrome in four steps.save flash file from google chrome Steps to save flash(swf) from google chrome:
  1. Just Go to the page with flash file (swf file) you want to save.
  2. Press ctrl+U to enter view source of the page (it will be opened in a separate tab)
  3. Press ctrl+F to open the find box on top right corner of the "view source" page and type "swf" (withought quotes)
  4. now right-click on links ending with ".swf" (ie- http://google.com/interanet/a/frogsgame.swf or something similar like demoworking.swf) and click save as AND SAVE IT.
  5. If you don't succeed into save that file just open your temporary internet cache file and search for that file. see below image for how you can open the temporary internet file.
    Temp file pathEnter your username in the suggest place given above.
  6. Search your file in the temporary internet files after your file is fully loaded in the browser. (ie. Search file and save from here only after in your browser the swf file is loaded fully and completed the play time).
  7. It's Done :-)
Now let me know your doubt's if you have any :)

Post a Comment

Adsense Fortunes

Let's Learn

New Skills

  © Blogger template Shush by Ourblogtemplates.com 2009

Back to TOP