Forum Moderators: open

Message Too Old, No Replies

ASP and URL-Cloaking

         

anderzzo

6:17 am on May 13, 2001 (gmt 0)



How can I do URL-Cloaking in ASP?

Instead of www.mydomain.com/asp/page.asp
in the addressbar it shows:
just www.mydomain.com/

Thanx

sugarkane

2:31 pm on May 13, 2001 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hi anderzzo, and welcome to webmasterworld.

My first thought is that this is more likely to be a server configuration issue rather than something you'd do in ASP, but hopefully someone with more knowledge of ASP can give you a better answer.

Another option is to use a 100% frame to display your ASP page in - this would effectively cloak your URL.

Xoc

4:22 am on May 17, 2001 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Let me first try to understand what you mean: Do you mean that if someone enters or links to the URL [mydomain.com...] that you want to display the home page? Or do you mean that you want the home page to use the page at /asp/page.asp? If you can clarify what you want, I should be able to help.

Welcome to WebmasterWorld.

anderzzo

5:58 am on May 17, 2001 (gmt 0)



Thanx :)
I mean if someone goes to www.domain.com and click a link, the url don't change in the addressbar.

I got a script, if someone write [sub.domain.com...] they get redirected to [domain.com...] but I want to have the URL [sub.domain.com...] still in the addressbar.
And I can't use frames for it :(

Xoc

3:37 pm on May 17, 2001 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Then you have a real problem. The issue is that the URL identifies a web page, or in your case an Active Server Page. The easiest way to get this to work is to use frames. Without frames, <see the answer below>

Edited by: Xoc

Xoc

3:44 pm on May 17, 2001 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



After looking at your reply again, I realized that you did already explain somewhat what you wanted.

What you want in this case is to configure IIS to have two separate web sites, not a redirect from one to the other. The two sites, however, can share content. Just have the home directory for sub.domain.com point to the subdirectory /sub of the other site.

The only thing to be careful about is absolute URLs within your web pages.

This should solve all your problems and let all content get indexed. One thing to worry about: search engines will treat them as two separate sites with exactly the same content. They may refuse to index one or the other. You may choose to add a robots.txt to the root of one of them to keep the search engine from indexing the content on that site.

Gronvold

2:33 pm on Jun 6, 2001 (gmt 0)



What I want to know is somewhat related to this.
I use a redirect service which cloaks the url from
real server "home.ispdomain/username/file.html" to "mydomain" by way of frames. Is it possible in any way to have the redirect cloaking work on only up to a part of the url ("home.ispdomain/username/")and not the rest? Must this eventually be done by way of the frames from the redirect service (easyDNS) or is it something I can do with scripts on the webserver or/and in my webpages? They ar currently on a Apache server, but I may go to IIS 5.