[advanced search]
 

Go Back   NamePros.com > Discussion > Domain Names > Domain Newbies

Domain Newbies New to domain names? Have your questions answered here.


Closed Thread
 
LinkBack Thread Tools
Old 12-04-2006, 05:55 AM   #1 (permalink)
Senior Member
 
Join Date: Jul 2006
Location: UK
Posts: 1,982
13,483.66 NP$ (Donate)

Pound has much to be proud ofPound has much to be proud ofPound has much to be proud ofPound has much to be proud ofPound has much to be proud ofPound has much to be proud ofPound has much to be proud ofPound has much to be proud ofPound has much to be proud ofPound has much to be proud of


Redirect

How can I make it so that I can make the yoursite.com automatically forward to www.yoursite.com . I need it so that even if someone goes from google to yoursite.com/blahblah it changes to www.yoursite.com/blahblah .

I have cpanel hosting if this helps.

Thanks!
Pound is offline  
Old 12-04-2006, 06:21 AM   #2 (permalink)
NamePros Regular
 
Ultimatum's Avatar
 
Join Date: Dec 2006
Posts: 227
26.00 NP$ (Donate)

Ultimatum will become famous soon enough


You have to make 301 Redirect.
Ultimatum is offline  
Old 12-04-2006, 01:31 PM   #3 (permalink)
Ex-President

Forum Moderator

 
Ronald Regging's Avatar
 
Join Date: May 2006
Location: Marietta, PA
Posts: 2,477
400.00 NP$ (Donate)

Ronald Regging has much to be proud ofRonald Regging has much to be proud ofRonald Regging has much to be proud ofRonald Regging has much to be proud ofRonald Regging has much to be proud ofRonald Regging has much to be proud ofRonald Regging has much to be proud ofRonald Regging has much to be proud of

Ethan Allen Fund
RewriteEngine on
RewriteCond %{HTTP_HOST} !^www\.yoursite\.com [NC]
RewriteCond %{HTTP_HOST} !^$
RewriteRule ^(.*) http://www.yoursite.com/$1 [L,R=301]

Put that in your .htaccess file in the root site directory.
Ronald Regging is offline  
Old 12-04-2006, 06:15 PM   #4 (permalink)
It's MACHINE code.
 
slider's Avatar
 
Join Date: Dec 2005
Posts: 1,283
0.00 NP$ (Donate)

slider has much to be proud ofslider has much to be proud ofslider has much to be proud ofslider has much to be proud ofslider has much to be proud ofslider has much to be proud ofslider has much to be proud ofslider has much to be proud ofslider has much to be proud ofslider has much to be proud of

Animal Rescue
I usually just use:

Quote:
RedirectPermanent / http://www.yoursite.com/
in the .htaccess file.
slider is offline  
Old 12-04-2006, 06:34 PM   #5 (permalink)
Ex-President

Forum Moderator

 
Ronald Regging's Avatar
 
Join Date: May 2006
Location: Marietta, PA
Posts: 2,477
400.00 NP$ (Donate)

Ronald Regging has much to be proud ofRonald Regging has much to be proud ofRonald Regging has much to be proud ofRonald Regging has much to be proud ofRonald Regging has much to be proud ofRonald Regging has much to be proud ofRonald Regging has much to be proud ofRonald Regging has much to be proud of

Ethan Allen Fund
yeah if that works, use it. I wasn't too sure how to do it, but I found the above and it worked, so I used it
Ronald Regging is offline  
Old 12-05-2006, 02:10 PM   #6 (permalink)
Senior Member
 
Join Date: Jul 2006
Location: UK
Posts: 1,982
13,483.66 NP$ (Donate)

Pound has much to be proud ofPound has much to be proud ofPound has much to be proud ofPound has much to be proud ofPound has much to be proud ofPound has much to be proud ofPound has much to be proud ofPound has much to be proud ofPound has much to be proud ofPound has much to be proud of


Thanks everyone - brilliant help!
Pound is offline  
Old 12-05-2006, 02:20 PM   #7 (permalink)
NamePros Regular
 
Join Date: Feb 2005
Posts: 543
1,458.47 NP$ (Donate)

abcde is a jewel in the roughabcde is a jewel in the roughabcde is a jewel in the rough


one small quesion: Y do u do that?
abcde is offline  
Old 12-05-2006, 03:54 PM   #8 (permalink)
It's MACHINE code.
 
slider's Avatar
 
Join Date: Dec 2005
Posts: 1,283
0.00 NP$ (Donate)

slider has much to be proud ofslider has much to be proud ofslider has much to be proud ofslider has much to be proud ofslider has much to be proud ofslider has much to be proud ofslider has much to be proud ofslider has much to be proud ofslider has much to be proud ofslider has much to be proud of

Animal Rescue
Quote:
Originally Posted by abcde
one small quesion: Y do u do that?
Well, my hosts' FAQ answers this question fully, so I'll just copy their info.

Quote:
By default, this is the correct behavior. Using URLs of the form http://mydomain.com/ creates a number of problems, and we strongly recommend that you avoid it. Some of the limitations are:

* It creates noncanonical URLs for your site. It is highly desirable to have one URL for each page, for purposes of bookmarking, etc. Having multiple valid URLs for the same page makes your site look less popular, both in rankings and search engines.
* It is less reliable. DNS CNAME records cannot be used in this situation. You can put in a couple of A records, but this is still not as effective for load balancing and fault tolerance as doing it the "right" way.
* It becomes hopelessly confusing if you have (or might ever have) more than one site under the domain. (Which site does mydomain.com refer to?)
* One name should do one thing. Bare domain names already serve the purpose of organizing the domain, and often they do email duty as well. Web traffic is better kept in its own box.
slider is offline  
Closed Thread


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 Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Site Sponsors
Advertise your business at NamePros

All times are GMT -7. The time now is 12:44 PM.


Powered by: vBulletin® Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0
Template-Modifications by TMS
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85