Membership is FREE – with unlimited access to all features, tools, and discussions. Premium accounts get benefits like banner ads and newsletter exposure. ✅ Signature links are now free for all. 🚫 No AI-generated (LLM) posts allowed. Share your own thoughts and experience — accounts may be terminated for violations.

(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.

Rule #1: Be Respectful

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

Premium Members

Latest Comments

New Threads

Domain Forum Friends

Lastest Listings

Our Mods' Businesses

*the exceptional businesses of our esteemed moderators
General chit-chat
Help Users
  • No one is chatting at the moment.
  • Siusaidh AcornBot:
    Siusaidh has left the room.
      Siusaidh AcornBot: Siusaidh has left the room.
      Top Bottom