Reply
ASP Redirect
Old 10-02-2007, 01:48 AM ASP Redirect
Junior Talker

Posts: 2
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
Reply With Quote
View Public Profile
 
When You Register, These Ads Go Away!
     
Old 10-02-2007, 01:58 AM Re: ASP Redirect
ADAM Web Design's Avatar
Canadastaninianite

Posts: 5,945
Name: Adam for web page design, not program
Location: Toronto, Ontario, Canada
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
Reply With Quote
View Public Profile Visit ADAM Web Design's homepage!
 
Old 10-02-2007, 02:16 AM Re: ASP Redirect
Junior Talker

Posts: 2
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
Reply With Quote
View Public Profile
 
Old 10-02-2007, 10:21 PM Re: ASP Redirect
Experienced Talker

Posts: 44
Name: Kuldeep Sahi
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
Reply With Quote
View Public Profile Visit Kuldeep2195's homepage!
 
Old 10-07-2007, 05:28 AM Re: ASP Redirect
Novice Talker

Posts: 7
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
Reply With Quote
View Public Profile
 
Old 10-07-2007, 05:32 AM Re: ASP Redirect
Novice Talker

Posts: 7
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
Reply With Quote
View Public Profile
 
Old 10-07-2007, 11:56 AM Re: ASP Redirect
ADAM Web Design's Avatar
Canadastaninianite

Posts: 5,945
Name: Adam for web page design, not program
Location: Toronto, Ontario, Canada
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
Reply With Quote
View Public Profile Visit ADAM Web Design's homepage!
 
Old 10-14-2007, 12:21 AM Re: ASP Redirect
ForrestCroce's Avatar
Half Man, Half Amazing

Posts: 3,025
Name: Forrest Croce
Location: Seattle, WA
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
Reply With Quote
View Public Profile Visit ForrestCroce's homepage!
 
Old 10-18-2007, 09:36 AM Re: ASP Redirect
Banned

Posts: 3
Name: Benito
Thanks for this mate
Wivnito is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to ASP Redirect
 

Thread Tools

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

vB 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.16183 seconds with 13 queries