| | |||||
| ||||||||
| Domain Newbies New to domain names? Have your questions answered here. |
![]() |
| | LinkBack | Thread Tools |
| | THREAD STARTER #1 (permalink) |
| Senior Member Join Date: Jul 2006 Location: UK
Posts: 2,065
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | 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! |
| |
| | #3 (permalink) |
| Ex-President Join Date: May 2006 Location: Mount Joy, PA
Posts: 2,652
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | 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. |
| |
| | #7 (permalink) |
| NamePros Regular Join Date: Feb 2005
Posts: 579
![]() ![]() ![]() | one small quesion: Y do u do that?
__________________ Freebies and Giveaways - Printable Coupons - Hot Deals - Coupons - Deal of the Day |
| |
| | #8 (permalink) | ||||||||
| It's MACHINE code. Join Date: Dec 2005
Posts: 1,289
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
![]()
| ||||||||
| |