URL Rewriting

URL rewriting on IIS is possible only when you install URL Rewriting module on the server.

Please follow the link below to download URL Rewrite module for IIS:

http://www.microsoft.com/en-au/download/details.aspx?id=7435

URL Rewriting is a rule-based mechanism. After the successful installation of the module, you will be able to see an icon for  “URL Rewrite Module”. Create rules for rewriting URLs as per your requirement.

You can write rules for modifying the URLs individually on each website by adding “WEB.CONFIG” with appropriate code.

Ex : Removing ‘.php’ extension from URLs, code for web.config file as follows:

<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<rewrite>
<rules>
<rule name="Imported Rule 1" stopProcessing="true">
<match url="^(.*)$" />
<conditions logicalGrouping="MatchAll">
<add input="{REQUEST_FILENAME}" matchType="IsFile" ignoreCase="false" negate="true" />
<add input="{REQUEST_FILENAME}.php" matchType="IsFile" ignoreCase="false" />
</conditions>
<action type="Rewrite" url="{R:1}.php" />
</rule>
</rules>
</rewrite>
</system.webServer>
</configuration>

WordPress.com VS WordPress.org

WordPress is now powering 1 of every 6 websites on the internet. They have done something for experienced developers and also for novice users. I can’t simply say “WordPress.com” is for novice users & “WordPress.org” is for developers. Both have advantages & disadvantages.

WordPress.com – “Hosted for you” 

WordPress.org – “Open Source, Self-Hosted”

The differences are listed below:

WordPress.com Advantages:

  • Gives you a free blog
  • Free hosting
  • No charges for increased traffic
  • No need to manage the server
  • Very few security risks

WordPress.com Disadvantages:

  • Limited themes, plugins & settings
  • Can’t edit themes
  • Can’t edit PHP code
  • Custom domain names costs ($30 per year including security for personal information)
  • You can’t make money through advertising
  • No control over anything

WordPress.org Advantages:

  • Full control over everything
  • Install anything you want
  • Can customize plugins, settings & themes
  • Can modify PHP pages

WordPress.org Disadvantages:

  • Depending on your hosting service, additional cost may incur if you need more band width for increased traffic
  • Needs your efforts & money to make the site faster
  • Security risks from malicious themes & plugins

WordPress.com is blogging platform,  It is the easiest way to get a blog up & running for a completed beginner.

WordPress.org is where you can download the open source version of the software. You can put this site on your own web hosting service and run everything yourself.

Installing IIS Server on Windows 7

  1. Click Start and then click Control Panel.
  2. In Control Panel, click Programs and then click Turn Windows features on or off.
  3. In the Windows Features dialog box, click Internet Information Services
  4. Internet Information Services > World Wide Web Services > Application Development Features > CGI, tick the checkbox next to CGI and then click OK.
  5. When the installation finishes, go to start menu and search for inetmgr
  6. You can start creating the websites on your home computer
  7. To see if your IIS server working, go to your favorite browser and type in “http://localhost” , this directs you to the default page on your IIS server
  8. If the above link doesn’t work, type in your IP Address in address bar which can be found by entering the “ipconfig” command in your command prompt window.