Forum Moderators: phranque
I have a computer setup to take requests for non-paying customers. I can get to anywhere on mysub.domain.net, but if I try to go to www.abc.com Apache just hangs.
How do I tell Apache to take any request from any domain and throw them to this index.html?
<IfModule mod_rewrite.c>
Options +FollowSymLinks
RewriteEngine On
RewriteCond %{HTTP_HOST}!^mysub.domain.net$
RewriteRule ^/(.*) [mysub.domain.net...] [L]
RewriteRule ^.*$ / [R=302,L]
</IfModule>
Will this even work?
I don't understand why you have two RewriteRules -- You may have a good reason, but you didn't say why.
I would suggest:
<IfModule mod_rewrite.c>
Options +FollowSymLinks
RewriteEngine On
RewriteCond %{HTTP_HOST} !^mysub\.domain\.net
RewriteRule ^/ http://mysub.domain.net/index.html [R=302,L]
</IfModule>