Today's Posts Follow Us On Twitter! TFL Members on Twitter  
Forum search: Advanced Search  
Navigation
Marketplace
  Members Login:
Lost password?
  Forum Statistics:
Forum Members: 24,254
Total Threads: 80,792
Total Posts: 566,472
There are 1385 users currently browsing (tf).
 
  Our Partners:
 
  TalkFreelance     TalkFreelance Information     Suggestions and Feedback :

.htaccess edit

Thread title: .htaccess edit
Closed Thread    
    Thread tools Search this thread Display Modes  
02-05-2007, 08:12 PM
#1
kiplarson is offline kiplarson
Status: I'm new around here
Join date: Feb 2007
Location:
Expertise:
Software:
 
Posts: 15
iTrader: 0 / 0%
 

kiplarson is on a distinguished road

  Old

Originally Posted by Chaos King View Post

Code:
RewriteCond %{HTTP_HOST} !^(www\.|$) [NC]
RewriteRule ^ http://www.%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
So if I make a .htaccess file and put the above code in there, my sites will automatically go from http:// to always http://www. ?

Because this is something I've tried to figure out for a while, but never got around to doing. I want to do that so it will hopefully improve my PR. That and it's annoying to have the other issue with not being logged in when typing in the other on accident.

02-05-2007, 10:39 PM
#2
Gareth is offline Gareth
Status: Back in business...
Join date: May 2005
Location:
Expertise:
Software:
 
Posts: 1,317
iTrader: 13 / 100%
 

Gareth is on a distinguished road

Send a message via MSN to Gareth

  Old

Originally Posted by kiplarson View Post
So if I make a .htaccess file and put the above code in there, my sites will automatically go from http:// to always http://www. ?
Yes it will - I use it on all of my sites

02-10-2007, 04:55 AM
#3
kiplarson is offline kiplarson
Status: I'm new around here
Join date: Feb 2007
Location:
Expertise:
Software:
 
Posts: 15
iTrader: 0 / 0%
 

kiplarson is on a distinguished road

  Old

Originally Posted by Gareth View Post
Yes it will - I use it on all of my sites
Just open the .htaccess file, paste that code in (overwriting whatever else may or may not be there) and it's done?

Does this help with the PR? like the PR from the non www will move over to the www?

02-28-2007, 08:10 PM
#4
kiplarson is offline kiplarson
Status: I'm new around here
Join date: Feb 2007
Location:
Expertise:
Software:
 
Posts: 15
iTrader: 0 / 0%
 

kiplarson is on a distinguished road

  Old

Originally Posted by kiplarson View Post
Just open the .htaccess file, paste that code in (overwriting whatever else may or may not be there) and it's done?

Does this help with the PR? like the PR from the non www will move over to the www?
Does anyone know the answer to my question?

Closed Thread    


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

  Posting Rules  
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump:
 
  Contains New Posts Forum Contains New Posts   Contains No New Posts Forum Contains No New Posts   A Closed Forum Forum is Closed