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

Popular posts from this blog

yii2 - Yii 2 Running a Cron in the basic template -

asp.net - 'System.Web.HttpContext' does not contain a definition for 'GetOwinContext' Mystery -

wso2esb - How to concatenate JSON array values in WSO2 ESB? -