Can't get Rewrite rule to keep original URL

Posted by user38100 on Pro Webmasters See other posts from Pro Webmasters or by user38100
Published on 2014-04-24T16:58:20Z Indexed on 2014/08/24 4:33 UTC
Read the original article Hit count: 185

Filed under:
|

I have these Rewrites, but I would like to have the URL stay the same as what is typed originally, I thought removing the [R] flags would stop it but it hasn't

RewriteCond %{HTTP_HOST} ^examplea\.example\.com$ [NC]
RewriteRule (.*) http://examplea.example.com:32400/web [L]

RewriteCond %{HTTP_HOST} ^exampleb\.example\.com$ [NC]
RewriteRule (.*) http://exampleb.example.com:9091 [L]

Edit: would this work better?

RewriteCond %{HTTP_HOST} ^hello.example.com$ 
RewriteRule ^(/)?$ welcome [L]

© Pro Webmasters or respective owner

Related posts about htaccess

Related posts about mod-rewrite