Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 2.0 > ASP.NET 2.0 Basics
|
ASP.NET 2.0 Basics If you are new to ASP or ASP.NET programming with version 2.0, this is the forum to begin asking questions. Please also see the Visual Web Developer 2005 forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 2.0 Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old September 20th, 2007, 03:02 AM
Authorized User
 
Join Date: Sep 2005
Posts: 20
Thanks: 0
Thanked 0 Times in 0 Posts
Default how do i remove the page/filename from my URL?

Hello all,

I've wondered this for quite some time and would finally like to implement this on my own site. I'm not sure if this is an IIS, ASP, HTML, or some other categorical question...so please excuse me if I've posted this in the wrong forum.

What I'd like to know is how some sites hide the actual file name of the page you're visiting. For example, if you navigate to MySpace, you'll see only "http://www.myspace.com"; the actual full URL is "http://www.myspace.com/index.cfm".

How do they do this and how can I? I usually use "index.asp" for my default homepage(s), but I can change this if I need to.

Thanks in advance!

Panuvin

 
Old September 20th, 2007, 05:45 AM
Wrox Author
 
Join Date: Oct 2005
Posts: 4,104
Thanks: 1
Thanked 64 Times in 64 Posts
Send a message via AIM to dparsons
Default

This is an IIS question.

To set this up go to start --> run --> inetmgr right click on your website and select properties and go to the default document tab and add index.asp as the first element in the list box. You will then be able to do: www.mydomain.com and have index.asp automatically displayed.

hth.

================================================== =========
Read this if you want to know how to get a correct reply for your question:
http://www.catb.org/~esr/faqs/smart-questions.html
================================================== =========
Technical Editor for:
Professional Search Engine Optimization with ASP.NET

Professional IIS 7 and ASP.NET Integrated Programming

================================================== =========
 
Old September 21st, 2007, 09:12 AM
planoie's Avatar
Friend of Wrox
 
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

Keep in mind that this only works for the default page in the root and each sub directory. If you want to keep the complete address hidden all the time you need to use frames (standard or inline) to keep the outer page always at the same place.

-Peter





Similar Threads
Thread Thread Starter Forum Replies Last Post
Remove Page from Cache Harjinder Forum and Wrox.com Feedback 0 August 8th, 2008 08:53 AM
Remove URL from message ramone_johnny Classic ASP Basics 10 August 6th, 2008 12:58 PM
Page and URL Structure [email protected] ASP.NET 2.0 Professional 2 October 7th, 2007 07:56 AM
How to remove URL rewriting using tomcat config or mintnovate Apache Tomcat 0 November 13th, 2005 01:01 AM
how do I strip a URL down to the filename? mikehsu317 VBScript 1 July 3rd, 2005 02:52 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.