-
Jan 8th, 2011, 07:11 AM
#1
Redirect all www subdomain requests to root domain
Hi,
I'd like to redirect all of my http://www.MYDOMAIN.com/whatever requests to http://MYDOMAIN.com/whatever, but I'm not sure how to set this up on my CloudFoundry EC2 instance. I'm just running a single Grails application on a small instance right now.
I think what I want is to use Apache .htaccess to add something like this:
RewriteEngine on
RewriteCond %{HTTP_HOST} ^www\.MYDOMAIN\.com$ [NC]
RewriteRule ^(.*)$ http://MYDOMAIN.com/$1 [R=301,L]
But I don't know where to put this. Any help?
Jeff
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules