I have a problem similer to this post
I have tried this
RewriteCond %{HTTP_HOST} ^myApplication.com
RewriteCond %{REQUEST_URI} !myApplication/
RewriteRule ^(.*)$ myApplication/$1 [L]
RewriteCond %{HTTP_HOST} www.myApplication.com
RewriteCond %{REQUEST_URI} !myApplication/
RewriteRule ^(.*)$ myApplication/$1 [L]
but the problem is url is working only with http://www.myApplication.com/myApplication but I want to hide myApplication subfolder .
I will really appreciate any help on this.
UPDATE:
I have tried this which is giving 500 server error.
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<handlers>
<add name="mod_rewrite" path="*" verb="*" modules="IsapiModule" scriptProcessor="path to scriptproc" resourceType="Unspecified" requireAccess="None" preCondition="bitness32" />
</handlers>
<rule name="Rewrite to myApplicaton" stopProcessing="true">
<match url="(.*)" />
<conditions>
<add input="{HTTP_HOST}" pattern="^(www\.)myApplication\.com$" />
<add input="{REQUEST_URI}" pattern="^myApplication/" negate="true" />
</conditions>
<action type="Rewrite" url="/myApplication/{R:0}" />
</rule>
</system.webServer>
</configuration>
The following should do what you want: