A step by step tutorial teaching you how to create your own chat client and chat server easily in C#, for local networks or the Internet.
A C# tutorial showing you how to make use of WMI to extract information on disk drives, such as model, capacity, sectors and serial number.
This tutorial will teach you how to calculate the shipping cost based on the weight, height, length and depth of the box, the distance and the UPS service type.
Creating a Rich Text Editor using JavaScript is easier to do than you might think, thanks to the support of modern browsers; this tutorial will walk you through it.
How to redirect www requests to non-www URL |
On Wednesday, March 19th 2008 at 12:18 AM By Andrew Pociu (View Profile) ![]() ![]() ![]() ![]() (Rated 5 with 3 votes) |
||
|
Advertisement
If you would like to redirect all the requests to the www version of an URL to the non-www version - for example http://www.geekpedia.com to http://geekpedia.com - you can do that by placing the following mod_rewrite rule in your .htaccess file: RewriteCond %{HTTP_HOST} ^www\.geekpedia\.com$ [NC] The redirect code 301 means Moved Permanently so most search engines will pick this up and send visitors directly to the non-www version of your URL. |
|||
Digg It!
Del.icio.us
Reddit
StumbleIt
Newsvine
Furl
BlinkList
|
|||
|
|||
Current CommentsGreat tutorial, Im alwas looking at new tips and tricks I always sent 301's through modifying headers but never seen this way of doing it before
Related Knowledge Base Articles
Related Source Code
Related Tutorials
Apache Job Search