--- Jeremy Knope <jerome (at mark) rainstormconsulting.com> wrote:
> I've ran into this issue before, and would be awesome if a feature was
> implemented to control it. Instead I have to edit the site's config
> file in /etc/httpd/conf/vhosts/siteXX
> In that file look for a block of rewrite rules, I comment them all out.
> Looks like this:
> RewriteEngine on
> RewriteCond %{HTTP_HOST} !^1.2.3.4(:80)?$
> RewriteCond %{HTTP_HOST} !^www.example.net(:80)?$ [NC]
> RewriteRule ^/(.*) http://www.example.net/$1 [L,R]
> RewriteOptions inherit
>
> commenting those all out will prevent the server from forcing the
> single domain on that site. I usually end up doing an .htaccess to do
> anything else like force www. or no www.
Can you give an example of .htaccess to force www without forcing a
specific domain?
--
Dan Kriwitsky