Click to See Complete Forum and Search --> : Redirect URL


Foundas
03-10-2006, 03:11 AM
Hi guys,

i have 2 domain names for my website as follows:

a. www.hydrogrown.com
b. www.hydrogrown.com.cy

I wish to redirect the URL www.hydrogrown.com to point to www.hydrogrown.com.cy by showing a message to the user like: "please hold while we redirect you to the new URL"

I have tested the redirection by adding this line:
<meta http-equiv="refresh" content="0;url=http://www.hydrogrown.com.cy">
but it takes some time to refresh. So, if you click on any link, the page will not redirect but you would navigate on the old url

how can i solve this by having a message showned to the user that he will be redirected to the new URL?


best regards

Foundas

jvanamali
03-10-2006, 05:34 AM
hi

just put a page with only the message you want to display in the index page and use the meta refresh tag the page

i think would solve your problem

bye
vanamali

JayM
03-10-2006, 09:22 AM
The Meta http-equiv that you used is correct and shouldn't take time. Are you placing it in the <head> tags?

If you would like an ASP alternative, you could use the following:


<%
Response.Redirect("www.hydrogrown.com.cy")
%>


Cheers

Foundas
03-11-2006, 09:21 PM
my homepage is located in default.asp


i have tried both suggestions and failed.

the first one, just refreshes the url: www.hydrogrown.com.cy and the second one doesnt do anything at all.

I have created the top file of the webroot folder, default.htm, placed the meta tag to refresh and point to www.hydrogrown.com.cy but it also redirects the visitors who go directly to www.hydrogrown.com.cy since the file "default.htm" executes first in the webroot directory


Any suggestions??

Thanking you in advance

JayM
03-12-2006, 02:09 AM
Does your host support ASP? What I gave you should work.

Foundas
03-12-2006, 11:25 AM
Hi JayM,

the host supports asp but still this didnt work.

i have placed the code in the default.htm (top file of the hierarchy) but nothing. even if i type the URL: www.hydrogrown.com.cy.

the page remains blank


Any advice?

JayM
03-12-2006, 01:07 PM
Hi JayM,


i have placed the code in the default.htm


Any advice?

It's not redirecting because you saved the file as default.htm. You have to save it as default.asp so the parser could read it as asp script.

Foundas
03-12-2006, 02:56 PM
i placed it in default.asp but i get an error "page not found"

JayM
03-12-2006, 03:03 PM
You probably wrote an incorrect URL address. Check your spelling to make sure you wrote it correctly. It's telling you it can't find the page that you redirected to.