I need some help with .htaccess as I am very new at this.. Here is my situation:
I want to have a short url http://example.com/shorturl point to https://example.com/apps/appname (non-ssl to ssl) but I want to make sure the URL doesn't change in the browser.
now, at example.com/apps/appname level, I have iis url rewrite rule set up so all http traffic is redirected to https and it works as it should.
to achieve my goal i spent a few good hours trying to figure out by researching online but couldn't get it to keep the shorturl. No matter what I tried it keeps changing the URL in the browser to https://example.com/apps/appname.
Here is one of many methods i tried
RewriteCond %{REQUEST_URI} (shorturl) [NC] RewriteRule ^(.+)$ http://example.com/apps/appname [P]
also tried RewriteRule ^(.+)$ https://example.com/apps/appname [P] but again, it doesn't keep the URL.
does having the http to https redirect set up at the ../../appname level make any kind of difference as oppose to having it configured at the root?
Any help in getting this figured out would be greatly appreciated. Thanks in advance and hopefully I included all the detail