Forum Moderators: open
My objective here is that i want to mask my redirect url so that only my domain would only appear in the URL/Address bar so when you tried to navigate to my default homepage, the redirect path will not be visible. Can anyone guide me how can i accomplish my goal?
Illustration:
From:
http://www.example.com/home/default.html
To:
http://www.example.com
here is my asp code:
<%@ Language=VBScript %>
<%
Response.Redirect "/home/default.html"
%>
I used the asp page in my default page content in the IIS. I tried also server.transfer("/home/default.html") in aspx as my default page content but a consistent error is being thrown - "Error executing child request for home/default.html".
Note also that frames will not fit my needs since this method will cover all the folders in my site and i dont want to do that, i would just likt to implement this in my default home page URL.
FYI: I used IIS6.0
Thank in advance!
[edited by: phranque at 1:41 pm (utc) on Feb. 5, 2009]
[edit reason] exemplified urls [/edit]
FYI
server.transfer will only work on pages processed by Asp. On a normal install of iis 6, html is handled by the static file handler not asp.
[edited by: Ocean10000 at 9:04 pm (utc) on Feb. 6, 2009]
Thanks for your reply. I cannot make the /home/ channel my root directory because I am currently using MCMS technology. The system restricts me from creating a posting under the root domain itself, and even if i can make the /home/ channel my root directory, the posting name "default.htm" will still display in the address bar. This still doesnt solve my dillemma.
I am currently asp file as my default content file in the IIS, but this doesnt limit my modifications. I have also tried using aspx file and html, but still resulted to no avail. In aspx, I used the server.transfer directive but consistently encounters error upon execution ("Error executing child..."). In html, I used it's redirect method on the meta tag but i cant figure out how to hide the actual redirected path. Can i use javascript to mask the url? I dont want to go to the actual output url of the script, i would just like to mask it. Thanks in advance!