473,387 Members | 1,844 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Could we use .htm to redirect

ad
Hi,
The default document of IIS Virtual directory is Default.htm(not
Default.aspx)

Coud we use Default.htm to redirect to another page (like redirect to
Default.aspx)?
Nov 19 '05 #1
3 5505
Do you have access to IIS? If so, why not add the default.aspx to the list
of default files. If you need to leave the default.htm file in the directory
and want the default.aspx file to override it, move the default.aspx file up
the list to the top of the list of default pages for the virtual directory.

If you don't have access to IIS, you could use a meta refresh to redirect
immediately from default.htm to default.aspx. The tag would look like:
<meta http-equiv="refresh" content="0;url=default.aspx">
This would go in the <head> of the default.htm.
--
Todd
"ad" wrote:
Hi,
The default document of IIS Virtual directory is Default.htm(not
Default.aspx)

Coud we use Default.htm to redirect to another page (like redirect to
Default.aspx)?

Nov 19 '05 #2
If you have Default.htm at the top of your list and Default.aspx further
down, it will use the default.htm first if they are both in the same
directory.

The Default.htm can call the default.aspx. When it redirects, the
application and session is started as normal.

Landers
"ad" <fl****@wfes.tcc.edu.tw> wrote in message
news:OU**************@TK2MSFTNGP09.phx.gbl...
Hi,
The default document of IIS Virtual directory is Default.htm(not
Default.aspx)

Coud we use Default.htm to redirect to another page (like redirect to
Default.aspx)?

Nov 19 '05 #3
Yes, you could put some JavaScript in default.htm to set the
document.location = "default.aspx"

It would be preferable to change the startup page in IIS if possible though.

--
I hope this helps,
Steve C. Orr
MCSD, MVP
http://Steve.Orr.net

"ad" wrote:
Hi,
The default document of IIS Virtual directory is Default.htm(not
Default.aspx)

Coud we use Default.htm to redirect to another page (like redirect to
Default.aspx)?

Nov 19 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

10
by: Bob Garbados | last post by:
forgive my ignorance, as I'm new to php coming from a ms background... If I create a page named redirect.php and it's only content is: <?php header("Location: http://www.google.com"); ?>...
5
by: Steve Lutz | last post by:
Hello, I have a page that creates a class, and then on certain conditions, redirects user to another page. The class has a Class_Terminate() function that saves itself to a database. The class...
3
by: Paul | last post by:
I'm not getting the results I want when I use Response.Redirct in a ASP page. I enter this line of code in a asp page from domain1.com. Response.Redirect...
7
by: Donna Hawkins | last post by:
I want to use javascript to redirect to a URL which has been passed as a variable (in php). I have searched but cannot find any solution. I think this code is a basic redirect: <script...
2
by: benny | last post by:
Hi, I am trying on redirect the to the file EnterpriseManager2.0.zip without having to show the absolute link on http://w0018/EnterpriseManager2.0.zip where the download utility cannot get that...
1
by: Peter Kirk | last post by:
Hi there I have a program written by another company (it's a "web control" which returns a web-page: can I compare this to a servlet in the Java world?), which they think is causing problems on...
3
by: Justin | last post by:
Hi, Im confused here over the usage of Response.Redirect and Server.Transfer. I used frameset for my work, what are the proper usages of the two methods that seems working similar.. The...
5
by: venner | last post by:
I'm having an issue with an ASP.NET website after upgrading to ASP.NET 2.0. The website makes use of a central authentication service (CAS) provided at the university I work for. Each page checks...
10
by: Eirik Eldorsen | last post by:
How can I 301 redirect www.example.com/default.aspx to www.example.com without using ISAPI filters?
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.