I have a PHP application running on our company's LAN. Recently, my supervisor asked me to make it available for the world so that interested partners can check online the invoices generated by the said application.
I would like internet users to access a form that processes users input without logging in.
On the LAN users enter something like http
://subdomain.domainname.gov.bi/ and are redirected to a login form. On the internet I would like people to enter something like http
://subdomain.domainname.gov.bi/web/ where they would access the said form to enter the identifier of the invoice. What I want is internet user to get 'Access Denied' or 'Forbidden' if they enter http
://subdomain.domainname.gov.bi/ instead of http
://subdomain.domainname.gov.bi/web/ with the trailing /web at the end. I've never done that before but I suspect it has something to do with detecting the IP address where the request is coming from and generate a response accordingly. Please help me. Your Idea will be highly appreciated.
[edited by: phranque at 9:48 am (utc) on May 6, 2013]
[edit reason] unlinked urls [/edit]