So when the user types domain.com/public/ in the address bar of the browser you want to show a webpage in stead of the list of files?
This is what i usually do in php:
redirect to index page:
<?php
header("Location: ../index.php");
?>
And then of course you have to provide an index.php file in the root folder.
Greetings,
Paul
'Filter class
Sub Class_Globals
End Sub
Public Sub Initialize
End Sub
'Return True to allow the request to proceed.
Public Sub Filter(req As ServletRequest, resp As ServletResponse) As Boolean
If req.Secure Then
Return True
Else
resp.SendRedirect(req.FullRequestURI.Replace("/public", "/your redirect"))
'resp.SendRedirect(req.FullRequestURI.Replace("http:", "https:") _
'.Replace(Main.srvr.Port, Main.srvr.SslPort))
Return False
End If
End Sub
'Filter class
Sub Class_Globals
End Sub
Public Sub Initialize
End Sub
'Return True to allow the request to proceed.
Public Sub Filter(req As ServletRequest, resp As ServletResponse) As Boolean
If req.Secure Then
Return True
Else
resp.SendRedirect(req.FullRequestURI.Replace("/public", "/your redirect"))
'resp.SendRedirect(req.FullRequestURI.Replace("http:", "https:") _
'.Replace(Main.srvr.Port, Main.srvr.SslPort))
Return False
End If
End Sub