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,471
There are 1356 users currently browsing (tf).
 
  Our Partners:
 
  TalkFreelance     Design and Development     Programming     PHP and MySQL :

.htaccess www. adding

Thread title: .htaccess www. adding
Closed Thread    
    Thread tools Search this thread Display Modes  
03-02-2006, 08:41 PM
#1
aSAPcreations is offline aSAPcreations
aSAPcreations's Avatar
Status: I love this place
Join date: Dec 2005
Location: Pennsylvania USA
Expertise:
Software:
 
Posts: 565
iTrader: 1 / 100%
 

aSAPcreations is on a distinguished road

Send a message via AIM to aSAPcreations Send a message via MSN to aSAPcreations

  Old  .htaccess www. adding

I had this before but I forget where I got it from. It was a script that made every link you type in goto www.page.com instead of page.com

Does anyone know how to do this?

Thanks,
Flash-matic

03-02-2006, 08:46 PM
#2
aSAPcreations is offline aSAPcreations
aSAPcreations's Avatar
Status: I love this place
Join date: Dec 2005
Location: Pennsylvania USA
Expertise:
Software:
 
Posts: 565
iTrader: 1 / 100%
 

aSAPcreations is on a distinguished road

Send a message via AIM to aSAPcreations Send a message via MSN to aSAPcreations

  Old

I found this but I can not get it to work.

Options +FollowSymLinks
RewriteEngine on

RewriteCond %{HTTP_HOST} ^example.(.*) RewriteRule ^(.*)$
http://www.example.com/$1 [R=301,L>

03-03-2006, 12:22 AM
#3
cpvr is offline cpvr
cpvr's Avatar
Status: IMA G
Join date: Aug 2005
Location:
Expertise:
Software:
 
Posts: 1,694
iTrader: 0 / 0%
 

cpvr is on a distinguished road

  Old

Not sure what's wrong with that one.

Try this

Options +FollowSymLinks
RewriteEngine on

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

03-04-2006, 02:12 AM
#4
Nirvana- is offline Nirvana-
Status: Member
Join date: Sep 2005
Location: United States
Expertise:
Software:
 
Posts: 286
iTrader: 0 / 0%
 

Nirvana- is on a distinguished road

  Old

Here is the one that I personally use...

Code:
RewriteEngine on

RewriteCond %{HTTP_HOST} !^www [NC]
RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L]

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