Enable SEF on Joomla 1.6 with IIS6

I was informed by a customer that when installing Joomla 1.6 with IIS 6 server, and if you enabled SEF (Search Engine Friendly), you will get an Error 404 pages not found error.

To fix this issue, simply add the following line just after the php tag from index.php file and it will look like,

<?php:

if ( isset( $_SERVER[ 'HTTP_X_REWRITE_URL' ] ) )
{
$_SERVER[ 'REQUEST_URI' ] = $_SERVER['HTTP_X_REWRITE_URL' ];
}

 

Ruby on Rails Handy Guide

Some Useful command
To install ruby Gem,
gem install [gem_name]
eg, gem install rails

To install ruby Gem with certain version,
gem install [gem_name] –version=x.x.x
eg, gem install rails –version=2.3.5
eg, gem install rails -v=2.3.5

To update ruby Gem,
gem update [gem_name]
eg, gem update mysql

To update ruby Gem with latest version(for all)
gem update –system

To check missing gem
rake gems:install (must run from rails apps folder)

To install gem with lesser space
gem install –no-rdoc –no-ri [gem_name]
eg. gem install –no-rdoc –no-ri rails

To check RoR log,
Path: /home/[cpanel_username]/etc/rails_apps/[apps_name]/log

Continue reading Ruby on Rails Handy Guide

Enabling Permalink from WordPress with IIS7.x

This article is applicable for WordPress user who used IIS7.x as their web services and not able to work correctly with the permalink.

1. Log into your WordPress. Select on Setting and click on Permalink Settings.

2. Select any of the Common Setting or Custom Structure.
3. Click Update Permalink Structure button.
4. Now, you will see your blog get 404 error when click on any post or pages. No worry, refer to the following step to get this fix.
5. Log into your DotNetPanel file manager or FTP, modify the web.config file from your root folder (probably wwwroot folder) and add the following code to the web.config file.

Continue reading Enabling Permalink from WordPress with IIS7.x