Forum Moderators: open
Instead of www.mydomain.com/asp/page.asp
in the addressbar it shows:
just www.mydomain.com/
Thanx
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.
Welcome to WebmasterWorld.
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 :(
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.