Jump to content
uniGUI Discussion Forums
presaalfonso

how to hiding Dll extension in the url in IIS?

Recommended Posts

Try to create simple html and insert frame with your dll path


<head>
<script>
function getInlineFrame()
{
document.getElementById('InlineFrame1').src=s;
}
</script>
</head>
 
<body onload="getInlineFrame();">
 
<div id="Layer1" style="position:fixed;left:0px;top:0px;right:0px;bottom:0px;z-index:2;" title="">
<iframe name="InlineFrame1" id="InlineFrame1" style="position:absolute;left:0%;top:0%;width:100%;height:100%;z-index:0;" src="about:blank" frameborder="0">Your browser does not support inline frames or is currently configured not to display inline frames.</iframe>
</div>
 
</body>

Share this post


Link to post
Share on other sites

Just discovered how to do it on apache, just use DirectoryIndex

 

<Directory "C:/mydlldir/">
    Options FollowSymLinks ExecCGI
    AllowOverride None
    Order allow,deny
    Allow from all
    DirectoryIndex mydll.dll
</Directory>
Alias /myapp "C:/mydlldir"

 

Navigating to http://myserver.com/myapp will load the dll, hiding the extension in the url.

 

You should be able to set the directory index file specifically in IIS too, of course.

Share this post


Link to post
Share on other sites

Just discovered how to do it on apache, just use DirectoryIndex

 

<Directory "C:/mydlldir/">

    Options FollowSymLinks ExecCGI

    AllowOverride None

    Order allow,deny

    Allow from all

    DirectoryIndex mydll.dll

</Directory>

Alias /myapp "C:/mydlldir"

 

Navigating to http://myserver.com/myapp will load the dll, hiding the extension in the url.

 

You should be able to set the directory index file specifically in IIS too, of course.

 

 

i use this but every logout to login form again, original .dll will appear in url link so i use this

<html>
	<head>
	</head>
	<frameset rows="100%,*" border="0">
	  <frame src="http://domain.com/your.dll" frameborder="0"></frame>
	  <frame frameborder="0" noresize=""></frame>
	</frameset>
</html>

Share this post


Link to post
Share on other sites

Can anyone tell me if they got URL rewrite working.  I have tried all alterations and have been unable to get it to rewrite for the DLL.

 

Any help would be appreciated.

Share this post


Link to post
Share on other sites

I can make it the default document, but don't necessarily want it to be the default.  I am trying to get URL rewrite to work and while I can get test the matching successfully, the rewrite does not happen when coming into the server.

 

Can someone that has gotten URL rewrite to work give me their process?  I must be missing something somewhere.

 

Thanks

Share this post


Link to post
Share on other sites

Hi,

 

Click on "Add a rule", then fill the pop-up window as shown in this screenshot (it is the French-translated version of URLRewrite because my Windows Server is on a French server, but you'll find the same fields in the same place in English).

Don't forget to check the two checkboxes in the bottom of the screen.

 

More détails here: https://docs.microsoft.com/en-us/iis/extensions/url-rewrite-module/creating-rewrite-rules-for-the-url-rewrite-module

 

 

 

post-895-0-70972900-1496940905_thumb.png

Share this post


Link to post
Share on other sites

Thank you for your help.

 

Unfortunately,  I tried that way and it will not do the rewrite. The error shows it cannot find the file https://xx.xxxxx.com/xxxxx

 

I am thinking there must be some setting in the IIS server preventing the rewrite.  Just can't find it.

Share this post


Link to post
Share on other sites

×