Link to home
Create AccountLog in
Avatar of trg_dk
trg_dkFlag for Denmark

asked on

Helicon Ape - mod_rewrite

I a previous question, I got the following code - and it works...

RewriteEngine on
RewriteBase /
rewritecond %{http_host} ^domain.com [NC]
rewriterule ^(.*)$ http://www.domain.com/$1 [NC,R=301]

But I really wnat it to be generic - so it can be deployed on the generel .HTAccess tab in APE.

So please help me out here - instead of domain.com - I need the generic term for the current site. I have almost 300 sites on the server and dont want to do this for each and every one of them :)
ASKER CERTIFIED SOLUTION
Avatar of Brad Howe
Brad Howe
Flag of Canada image

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer
Avatar of trg_dk

ASKER

Works brilliantly :) Thanks!!