user types: domain1.com
user gets: domain1.com/main/home.do?d=uk
but user sees: domain1.com
That's nothing like the mod_rewrite you posted. For the above you would use
- Code: Select all
Options +FollowSymLinks
RewriteEngine On
RewriteCond %{HTTP_HOST} ^(www\.)?example\.com$ [NC]
RewriteRule ^/$ /main/home.do?d=uk [QSA,L]