Welcome to WebmasterWorld Guest from

Forum Moderators: ocean10000

Message Too Old, No Replies

Hide/Mask URL in default homepage

Hide/Mask URL in default homepage - Please help!

3:16 am on Feb 5, 2009 (gmt 0)

New User

10+ Year Member

joined:Feb 5, 2009
posts: 3
votes: 0

I'm currently in the process of modifying my site's URL to hide the redirect path.

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?



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]

9:03 pm on Feb 6, 2009 (gmt 0)


WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month

joined:Jan 14, 2004
votes: 3

Why didn't you make /home/ your root directory instead. I think that would make things easier on you, and you wouldn't have to hide anything.


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]

7:15 am on Feb 7, 2009 (gmt 0)

New User

10+ Year Member

joined:Feb 5, 2009
posts: 3
votes: 0

hi Ocean,

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!

1:13 pm on Feb 10, 2009 (gmt 0)

Junior Member

10+ Year Member

joined:Dec 19, 2006
votes: 0

I think you will have to use ISAPI_Rewrite or similar to accomplish this.
7:40 pm on Feb 10, 2009 (gmt 0)

Senior Member

WebmasterWorld Senior Member g1smd is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:July 3, 2002
votes: 0

You'll need to link to the URL that you want users to "see" and "use".

You'll need a rewrite to connect the URL request to the right server filepath.

Additionally, you'll need a redirect such that if anyone asks for the content at the wrong URL, they are redirected to the correct URL.

1:36 am on Feb 11, 2009 (gmt 0)

New User

10+ Year Member

joined:Feb 5, 2009
votes: 0

Hi darrenG, Thanks for your reply..

I am currently new to that kind of method (ISAPI_Rewrite). Can you give me the procedure how can I accomplish this? many thanks...