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 751 users currently browsing (tf).
 
  Our Partners:
 
  TalkFreelance     TalkFreelance Information     Suggestions and Feedback :

.htaccess edit

Thread title: .htaccess edit
     
    Thread tools Search this thread Display Modes  
Prev Previous Post   Next Post Next
02-05-2007, 08:12 PM
#9
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.

     


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