Print Page | Close Window

redirect

Printed From: Web Wiz Forums
Category: General Discussion
Forum Name: Web Design Discussion
Forum Description: Discussion on web design and development subjects.
URL: https://forums.webwiz.net/forum_posts.asp?TID=2905
Printed Date: 28 March 2026 at 6:01am
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: redirect
Posted By: Jean
Subject: redirect
Date Posted: 21 May 2003 at 4:52am

I am currently developing a site which is soon to be relaunched.  However, currently there are numerous outside links to a page called bibwel.html but we will replace this page with bibwel.asp to accommodate the web wiz mailing list manager.

Therefore we need to incorporate a seamless redirect somewhere (we are running off a Windows 2000 server).  I know that we could simply still use the html page and add a link but I'm sure there must be an automatic redirect so that the user doesn't even realise that they're being redirected.

Can anyone help?  Would be grateful for any tips.  Thanks.




Replies:
Posted By: davelloyd
Date Posted: 21 May 2003 at 5:29am

Hello,

Try this page http://www.ringyding.net/redirect.html - http://www.ringyding.net/redirect.html

This will redirect you to Google after 20 seconds. While you are waiting for the page to redirect you can grab the source code to see how it's done.

You can change the time to zero. Change the target. Remove all the text so the page displays nothing before the redirect.

DL

 



Posted By: Jean
Date Posted: 21 May 2003 at 5:31am
thanks, I'll try this.


Posted By: davelloyd
Date Posted: 21 May 2003 at 5:34am
Did it work?


Posted By: Jean
Date Posted: 21 May 2003 at 5:39am
yes, it works!  Hoorah!  Many thanks.


Posted By: javaengines.dk
Date Posted: 22 May 2003 at 5:50am
You should set at least a small timer on your redirection page, else the back button will not work past the redirection. This is something that really pisses me off when I see it :)

-------------
***
For Java games and Java related resources go to http://www.javaengines.dk - http://www.javaengines.dk
***


Posted By: KCWebMonkey
Date Posted: 22 May 2003 at 11:10am

Originally posted by javaengines.dk javaengines.dk wrote:

You should set at least a small timer on your redirection page, else the back button will not work past the redirection. This is something that really pisses me off when I see it :)

That's why there is a history selector between the arrows, for you to choose how far back you want to go.



Posted By: Bluefrog
Date Posted: 24 May 2003 at 10:05pm

Personally, I like server-side redirection better. Things like that should be transparent to users unless they are specifically expecting a set URL or the content is expected and the new page has something different. e.g. A client-side redirection should only be used for notification purposes, which often is unnecessary.

 

 



Posted By: Jean
Date Posted: 27 May 2003 at 2:43am
server-side sounds a good option but I'm not sure where to start.  Any clues?


Posted By: KCWebMonkey
Date Posted: 27 May 2003 at 6:54am
<%
Response.Redirect "File2.asp"
%>


Posted By: davelloyd
Date Posted: 27 May 2003 at 10:47am

As I understand this there is a page called bibwel.html with numerous links from other sites pointing to it so when someone uses an outside link they will be requesting the page bibwell.html

If you delete the page bibwel.html and replace it with bibwel.asp then when someone uses an outside link then they will get a  "404 page can't be found error"

If you put the asp code into the bibwel.html page to use the server side redirect it won't work because bibwel.html is not an active server page so all you will get is a blank screen and nothing will happen because the html page will just see the <%....%> as some unknown tag and ignore it.

Try this link and view the source code to see what I mean http://www.ringyding.net/redirect2.html - http://www.ringyding.net/redirect2.html



Posted By: Jean
Date Posted: 28 May 2003 at 5:15am

Thanks for this.  Yes, I had wondered about the viability using this server side redirect for the reasons you say - ie. you can't use the code in an html page.  Therefore, I've opted for the simple solution now in use at http://www.rhs.ac.uk/bibwel.html - www.rhs.ac.uk/bibwel.html

Thanks for all the advice.



Posted By: davelloyd
Date Posted: 28 May 2003 at 12:57pm

No problem.

It works a treat.

Me, I just love the simple solutions

DL



Posted By: Jean
Date Posted: 30 May 2003 at 8:11am
yep, you can't beat simplicity!


Posted By: Bluefrog
Date Posted: 10 June 2003 at 8:33am

I'm a bit slow on the reply here... anyways... Forget what everyone else says - make it sexy~!

Server-side still works better - file extensions etc. are irrelevant. Try one of these:

Method #1

1) Go into Internet Information Services
2) Expand the web site
3) Right click on the properties for the file you want redirection for
4) In the File tab select "A redirection to a URL"
5) Enter the URL in the "Redirect to:" input field.
6) Select "The exact URL entered above"
7) Click Apply

This will redirect for the one file that you want, and people's bookmarks will still work.

Method #2

1) Go into IIS
2) Right click on the web site and select Properties
3) Click the Home Directory tab
4) Click Configuration near the bottom
5) Click the App Mappings tab (selected by default)
6) Click Add
7) Browse to and select asp.dll (It should be in C:\WINNT\system32\inetsrv)
8) Click Open
9) Enter "html" (Or anything you want, e.g. bluefrog for "index.bluefrog")
10) Select the "Limit to:" and enter "GET, POST, HEAD, TRACE"
11) Check "Script engine" and "Check that file exists"
12) Click OK.

That will let you run *.html or *.htm or *.I_am_drop_dead_sexy_-_Look_at_my_sexy_body as *.asp files.

Abuse this knowledge in good health~! And just remember, Bluefrog has the original 110% pure sexy asp~!

Cheers

 



Posted By: abhinav
Date Posted: 19 June 2003 at 6:33am
Jean and others that method is not liked by search engines and your site could get banned because of that. Why you ask? because search engine comes looking for the text that was in that and then get redirects to another page which is not a visitor expects. Kind of spamming in terms of search engines even if your intention is not to.


Use a 301 server redirection instead Jean. Search and you'll find plenty of help how to do it.

-------------
http://www.sgkabra.com - Accountancy Firm | http://www.mp3oldies.com.ar - Mp3 Oldies | http://www.best-mp3software.com - Mp3 Software


Posted By: Jean
Date Posted: 19 June 2003 at 7:11am
thanks for this - I will definitely look into it further.


Posted By: Bluefrog
Date Posted: 20 June 2003 at 10:21am

Unless you are spending a great deal of time worrying about what search engines do, I wouldn't go for users clicking. It's just an annoyance for them. If you have a very high traffic site, then you may need to worry about that. However, actually getting high in search engine ranking is extremely difficult and expensive.

You mentioned that numerous people link from other sites... which means that they will be using the GET method, and hence not HEAD.

The specification states:

10.3.2 301 Moved Permanently

The requested resource has been assigned a new permanent URI and any future references to this resource SHOULD use one of the returned URIs. Clients with link editing capabilities ought to automatically re-link references to the Request-URI to one or more of the new references returned by the server, where possible. This response is cacheable unless indicated otherwise.

The new permanent URI SHOULD be given by the Location field in the response. Unless the request method was HEAD, the entity of the response SHOULD contain a short hypertext note with a hyperlink to the new URI(s).

If the 301 status code is received in response to a request other than GET or HEAD, the user agent MUST NOT automatically redirect the request unless it can be confirmed by the user, since this might change the conditions under which the request was issued.

      Note: When automatically redirecting a POST request after
      receiving a 301 status code, some existing HTTP/1.0 user agents
      will erroneously change it into a GET request.

( http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html - http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html )

Which would mean that you should be using a page where the user must click. This is simply a pain for users and who cares about the specification anyways?

To determine whether to use sexy redirection or 301 redirection, you need to know where your traffic comes from. If it is search engines, then perhaps.

Google, Yahoo, and MSN all work fine with server-side redirection and do not ban sites for it.

 




Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net