Closed Thread
Old 10-02-2007, 02:48 AM ASP Redirect
Junior Talker

Posts: 2
Trades: 0
Hello,

I have an html page (index.html) I want to redirect to /folder/default.asp how can I do this?
thanks
YallaWeb is offline
View Public Profile
 
 
When You Register, These Ads Go Away!
Old 10-02-2007, 02:58 AM Re: ASP Redirect
ADAM Web Design's Avatar
Canadastaninianite

Posts: 5,943
Name: Adam for web page design, not program
Location: Toronto, Ontario, Canada
Trades: 0
The only way you can do that is to delete the index page and use a custom 404 page to perform the redirect.

http://www.4guysfromrolla.com/webtech/101701-1.shtml

Mind you, if you have an index.html page you're trying to forward to a default.asp page in a subfolder, one has to wonder why, and if you're not potentially doing any search engine damage in the process.
ADAM Web Design is offline
View Public Profile Visit ADAM Web Design's homepage!
 
Old 10-02-2007, 03:16 AM Re: ASP Redirect
Junior Talker

Posts: 2
Trades: 0
I want to use 301 redirect so this will not do any search engine damages, I guess... I am doing this, because I dont like this landing page and I want people to go to the "store" directly without passing by this landing page.
YallaWeb is offline
View Public Profile
 
Old 10-02-2007, 11:21 PM Re: ASP Redirect
Experienced Talker

Posts: 44
Name: Kuldeep Sahi
Trades: 0
To redirect your page in HTML, you have to use HTML meta tag refresh:

<meta http-equiv="refresh" content="0;url=yoururlhere">

I am not sure how the SEs will see it though.
Kuldeep2195 is offline
View Public Profile Visit Kuldeep2195's homepage!
 
Old 10-07-2007, 06:28 AM Re: ASP Redirect
Novice Talker

Posts: 7
Trades: 0
It is easy!You can use a meta varible.It is called 'refresh'.
A Sample:
<head>
<meta http-equiv="refresh" content="5;url=YourURL">
</head>
Please replace YourURL with your own.
xuzheng is offline
View Public Profile
 
Old 10-07-2007, 06:32 AM Re: ASP Redirect
Novice Talker

Posts: 7
Trades: 0
You can also use javascript to realize this.
A Sample:
<script>
window.location.href = "YourURL"
(or parent.location = "YourURL")

</script>


It will go to another page immediately.
What I said previous can delay for some seconds.
xuzheng is offline
View Public Profile
 
Old 10-07-2007, 12:56 PM Re: ASP Redirect
ADAM Web Design's Avatar
Canadastaninianite

Posts: 5,943
Name: Adam for web page design, not program
Location: Toronto, Ontario, Canada
Trades: 0
Quote:
Originally Posted by YallaWeb View Post
I want to use 301 redirect so this will not do any search engine damages, I guess... I am doing this, because I dont like this landing page and I want people to go to the "store" directly without passing by this landing page.
Then why does the landing page even exist? The best thing you can do is to have the "store" in the root directory and have them go there.

No redirects, no server calls, no potential for damage, it's more user friendly, all problems solved, baby goes to sleep.
ADAM Web Design is offline
View Public Profile Visit ADAM Web Design's homepage!
 
Old 10-14-2007, 01:21 AM Re: ASP Redirect
ForrestCroce's Avatar
Half Man, Half Amazing

Posts: 3,024
Name: Forrest Croce
Location: Seattle, WA
Trades: 0
Quote:
Originally Posted by ADAM Web Design View Post
The only way you can do that is to delete the index page and use a custom 404 page to perform the redirect.
That's the easiest way. If your server supports .net you could add a global.asax file and handle the onrequestbegin event, or use an httphandler. You can write an isapi filter for any version of iis, but that means c++ coding. A 404.asp is the easiest way to go.
ForrestCroce is offline
View Public Profile Visit ForrestCroce's homepage!
 
Old 10-18-2007, 10:36 AM Re: ASP Redirect
Banned

Posts: 3
Name: Benito
Trades: 0
Thanks for this mate
Wivnito is offline
View Public Profile
 
Closed Thread     « Reply to ASP Redirect
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 



Page generated in 0.13979 seconds with 13 queries