New York Design & Development Forums  

Go Back   New York Design & Development Forums > Knowledge Bank > Tutorials
Connect with Facebook

Notices

Reply
 
LinkBack Thread Tools
Old 04-21-2006, 11:55 PM   #1 (permalink)
Junior Member
Casual Browser
 
Karl's Avatar
 
Join Date: Apr 2006
Posts: 23
Karl is on a distinguished road
Default domain.com to www.domain.com

Code:
Options +FollowSymlinks All -Indexes
rewriteEngine on
rewriteBase /

RewriteCond %{HTTP_HOST} ^domain.com$
RewriteRule ^(.*)$ http://www.domain.com/$1 [R=301,L]
Thus redirects all http://domain.com traffic to http://www.domain.com.

Add it to your .htaccess file, change domain.com to your actual domain, and you should see an increase in your PR. Very handy. Works on all browsers.
Karl is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit! Stumble this Post!Google Bookmark this Post!Blink this Post!
Reply With Quote
Old 04-22-2006, 06:35 AM   #2 (permalink)
Member
Enthusiast
 
CyCL3's Avatar
 
Join Date: Feb 2006
Posts: 89
CyCL3 is on a distinguished road
Default

wow thanks for the tip. I'm going to use this.
CyCL3 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit! Stumble this Post!Google Bookmark this Post!Blink this Post!
Reply With Quote
Old 04-22-2006, 08:08 PM   #3 (permalink)
Junior Member
Casual Browser
 
Dizaster's Avatar
 
Join Date: Apr 2006
Age: 22
Posts: 23
Dizaster is on a distinguished road
Default

Nice code, Karl, where did you get it? or did you make it up yourself?
Dizaster is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit! Stumble this Post!Google Bookmark this Post!Blink this Post!
Reply With Quote
Old 04-23-2006, 06:04 AM   #4 (permalink)
Senior Member
Aficionado
 
Klaas Koopman's Avatar
 
Join Date: Apr 2006
Age: 23
Posts: 135
Klaas Koopman is on a distinguished road
Send a message via MSN to Klaas Koopman
Default

I don't understand http://domain.com and www.domain.com wouldn't they both go to the same site? So how is traffic send to www.domain.com?
__________________
Visit my portfolio at:
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.

Great Webmaster Resource:
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
Klaas Koopman is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit! Stumble this Post!Google Bookmark this Post!Blink this Post!
Reply With Quote
Old 04-23-2006, 08:24 AM   #5 (permalink)
Junior Member
Casual Browser
 
sparky's Avatar
 
Join Date: Apr 2006
Age: 30
Posts: 24
sparky is on a distinguished road
Default

Cool nice tip! I didnt realise that getting hits to your www.domain.com rather than your http://domain.com would improve your PR!
sparky is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit! Stumble this Post!Google Bookmark this Post!Blink this Post!
Reply With Quote
Old 01-04-2007, 01:30 PM   #6 (permalink)
Member
Enthusiast
 
Join Date: Dec 2006
Posts: 78
Brighteyes is a glorious beacon of lightBrighteyes is a glorious beacon of lightBrighteyes is a glorious beacon of light
Send a message via Yahoo to Brighteyes
Default Re: domain.com to www.domain.com

so strange how the whole internet works.
Brighteyes is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit! Stumble this Post!Google Bookmark this Post!Blink this Post!
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Popular Domain Name Trends danielmichel Hosting & Domain 11 02-15-2010 08:52 PM
Domain renewel issues blaze_187 Hosting & Domain 10 10-27-2006 03:32 AM
How Many Domain ebittner Hosting & Domain 20 05-14-2006 07:25 AM
Domain Appraisal lpxxfaintxx Hosting & Domain 1 05-09-2006 05:38 PM
hyphens in the domain name john23 Hosting & Domain 14 04-24-2006 07:38 AM


All times are GMT -4. The time now is 06:37 PM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0

1 2 3 4 5 6 7 8 9 10 11 12 13