troubleshooting Question

Helicon Ape - mod_rewrite

Avatar of trg_dk
trg_dkFlag for Denmark asked on
Microsoft IIS Web Server
2 Comments1 Solution643 ViewsLast Modified:
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
Brad Howe
Senior Enterprise Architect
Join our community to see this answer!
Unlock 1 Answer and 2 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 2 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros