Go Back   WarriorForum - Internet Marketing Forums > The Warrior Forum > Adsense / PPC / SEO Discussion Forum
Register Blogs FAQ Social Groups CalendarHelp Desk

Reply
 
LinkBack Thread Tools
Old 02-17-2011, 10:06 AM   #1
Elite Warrior
 
Join Date: Oct 2009
Location: New York, NY U.S.A.
Posts: 348
Thanks: 39
Thanked 0 Times in 0 Posts
Lightbulb The .htaccess File

Where in the .htaccess file (top, bottom, or center) does the piece of code go to 301 redirect a URL? For example, a non-www to a www URL?
Terrence Taitt is offline   Reply With Quote
Old 02-17-2011, 10:22 AM   #2
ɹoıɹɹɐʍ ǝʌıʇɔɐɹǝdʎɥ
War Room Member
 
RobinInTexas's Avatar
 
Join Date: Dec 2008
Location: Texas
Posts: 258
Thanks: 55
Thanked 25 Times in 23 Posts
Social Networking View Member's FaceBook Profile  View Member's Twitter Profile 
Contact Info
Send a message via Skype™ to RobinInTexas
Default Re: The .htaccess File

Try this before anything else:

Code:
RewriteEngine On
RewriteCond %{HTTP_HOST} www.yoursite.com
RewriteRule ^(.*) http://yoursite.com/$1 [L,R=301]
that will transform www to no www

Robin


...Even if you're on the right track, you'll get run over if you just sit there.
RobinInTexas is offline   Reply With Quote
Reply

  WarriorForum - Internet Marketing Forums > The Warrior Forum > Adsense / PPC / SEO Discussion Forum

Tags
file, htaccess

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 Off
Pingbacks are Off
Refbacks are Off



All times are GMT -6. The time now is 12:21 AM.