Welcome to Linux Family

Linux is a powerful opensource OS. Once you are in it, you feel like a genious! Now what are you waiting for? Install Linux in your machine and make the world out of it!

Apache Webserver Installation guide

Have a Linux server or localmachine? Need to power your own websites in it? Here you go!! Click to unleash apache webserver installation guide and learn to host your own sites

Linux Processes Overview

This document will give you an overview of linux processes. Advanced topics yet to come!!

Stop spamming!Sign outgoing mails

DKIM is an excellent software to digitally sign your outgoing mails and thus ensuring proper inbox delivery of all your mails.

Thursday, February 24, 2011

redirecting urls with special chars

I fiddled away a lot of time trying to figure out how I can redirect URLS with special chars for eg:
http://www.test.com/index.php?page_id=13 to http://www.test.com/index.php?page_id=25 as every method to redirect this bit of url using .htaccess proved to be vain.
Eventually I found out a solution:
I used the following code in .htaccess and it worked like a charm:
RewriteCond %{QUERY_STRING} ^(.*&)?page_id=13(&.*)?$  
RewriteRule ^index\.php$ http://www.test.com/index.php?page_id=25 [R=301,L]