Membership is FREE, giving all registered users unlimited access to every Acorn Domains feature, resource, and tool! Optional membership upgrades unlock exclusive benefits like profile signatures with links, banner placements, appearances in the weekly newsletter, and much more - customized to your membership level!

(help) htaccess WWW

Status
Not open for further replies.
Joined
Sep 28, 2006
Posts
402
Reaction score
6
Does anyone have a snippet or could help change my standard .htaccess to something dynamic?

Within all my sites I force WWW with the following code.
Code:
RewriteEngine On
RewriteCond %{HTTP_HOST} !^www\.domain\.com [NC]
RewriteRule ^(.*)$ http://www.domain.com/$1 [R=301,L]

For each site the htaccess file needs to be manualy edited to the domain name. How could I make this dynamic?
 
My god is that it!
Looks about right, i'll give it a spin

Thanks for a quick reply.
 
Status
Not open for further replies.

The Rule #1

Do not insult any other member. Be polite and do business. Thank you!

Members online

Premium Members

New Threads

Domain Forum Friends

Our Mods' Businesses

*the exceptional businesses of our esteemed moderators
General chit-chat
Help Users
  • No one is chatting at the moment.
      There are no messages in the current room.
      Top Bottom