apache - Redirect scenarios with my domain name to https://www.foo.com/bar/index.xhtml? -
i have domain foo.com running on apache 2.2 ssl. time types following in browser:
- foo.com - http://foo.com - www.foo.com - https://foo.com
i want redirected to: https://www.foo.com/bar/index.xhtml
i've tried suggestions apache site:
rewritecond %{http_host} !^www\.example\.com [nc] rewritecond %{http_host} !^$ rewritecond %{server_port} !^80$ rewriterule ^/(.*) http://www.example.com:%{server_port}/$1 [l,r]
but not working. happy rewrite rule scenarios listed; not everything.
Comments
Post a Comment