Connecting Tech Pros Worldwide Help | Site Map

Redirect

Bandul
Guest
 
Posts: n/a
#1: May 14 '06
Hi
How do i redirect a web page
Ive using this meta tag:
<meta http-equiv="REFRESH" content="4; url=http://www.redirect_here.com">
Not working, is there something else.
Sorry for my rubish english.
Thanks
Bandul


Roy Schestowitz
Guest
 
Posts: n/a
#2: May 14 '06

re: Redirect


__/ [ Bandul ] on Sunday 14 May 2006 12:51 \__
[color=blue]
> Hi
> How do i redirect a web page
> Ive using this meta tag:
> <meta http-equiv="REFRESH" content="1; url=http://www.redirect_here.com">[/color]


I successfully use:

<meta http-equiv="REFRESH" content="1; url=http://www.redirect_here.com">

To be honest, I am not sure what the digit indicates (this goes back years
into the past), _but_...

[color=blue]
> Not working, is there something else.
> Sorry for my rubish english.
> Thanks
> Bandul[/color]


....for any major redirection, you will be better off redirecting without that
'browser flicker' and also with a proper status/error code, which indicates
a permanent redirection. How you implement this depends on your Web server
software. Do a Web search on "301 redirects".

Best wishes,

Roy

PS - your English is fine.

--
Roy S. Schestowitz
http://Schestowitz.com | GNU is Not UNIX ¦ PGP-Key: 0x74572E8E
12:50pm up 16 days 19:47, 11 users, load average: 0.33, 0.65, 0.67
http://iuron.com - proposing a non-profit search engine
David Dorward
Guest
 
Posts: n/a
#3: May 14 '06

re: Redirect


Bandul wrote:
[color=blue]
> How do i redirect a web page[/color]

You configure your webserver to issue a 301 or 302 status code and a
Location header. The specifics depend on which webserver you use.

Since this has been fairly heavily cross posted to PHP related groups, I'll
also mention that you can use the header() function.
[color=blue]
> Ive using this meta tag:
> <meta http-equiv="REFRESH"[/color]

Avoid redirecting at the HTML level, its built into HTTP and is far more
appropriate to do it there.


--
David Dorward <http://blog.dorward.me.uk/> <http://dorward.me.uk/>
Home is where the ~/.bashrc is
Sjeef
Guest
 
Posts: n/a
#4: May 14 '06

re: Redirect


In de nieuwsgroep:e475iu$rql$1@news2.carnet.hr,
Bandul <ivan.curac@du.htnet.hr> schreef:[color=blue]
> Hi
> How do i redirect a web page
> Ive using this meta tag:
> <meta http-equiv="REFRESH" content="4;
> url=http://www.redirect_here.com"> Not working, is there something
> else. Sorry for my rubish english.
> Thanks
> Bandul[/color]

I am using this script:

<script language="JavaScript" type="text/javascript">
<!--
function redirect() {
location="http://www.sjeef.eu/Nederlands/recepten.html";
}
setTimeout('redirect()',5000);
-->
</script>

--
Vriendelijke groeten,
Gerard Schaefers

Voor meer kook- en eetplezier? Kijk hier!
http://www.sjeef.eu/

Huis kopen in Spanje? Occasion !
http://www.sjeef.eu/Nederlands/Alpujarra/Cadiar.html


Bandul
Guest
 
Posts: n/a
#5: May 14 '06

re: Redirect


Thanks Roy thx David.

"Bandul" <ivan.curac@du.htnet.hr> wrote in message
news:e475iu$rql$1@news2.carnet.hr...[color=blue]
> Hi
> How do i redirect a web page
> Ive using this meta tag:
> <meta http-equiv="REFRESH" content="4; url=http://www.redirect_here.com">
> Not working, is there something else.
> Sorry for my rubish english.
> Thanks
> Bandul
>[/color]


Bandul
Guest
 
Posts: n/a
#6: May 14 '06

re: Redirect


Digits indicates the number of seconds to be redirected to another page.

"Roy Schestowitz" <newsgroups@schestowitz.com> wrote in message
news:3222871.YvGUsOPPZA@schestowitz.com...[color=blue]
> __/ [ Bandul ] on Sunday 14 May 2006 12:51 \__
>[color=green]
>> Hi
>> How do i redirect a web page
>> Ive using this meta tag:
>> <meta http-equiv="REFRESH" content="1; url=http://www.redirect_here.com">[/color]
>
>
> I successfully use:
>
> <meta http-equiv="REFRESH" content="1; url=http://www.redirect_here.com">
>
> To be honest, I am not sure what the digit indicates (this goes back years
> into the past), _but_...
>
>[color=green]
>> Not working, is there something else.
>> Sorry for my rubish english.
>> Thanks
>> Bandul[/color]
>
>
> ...for any major redirection, you will be better off redirecting without
> that
> 'browser flicker' and also with a proper status/error code, which
> indicates
> a permanent redirection. How you implement this depends on your Web server
> software. Do a Web search on "301 redirects".
>
> Best wishes,
>
> Roy
>
> PS - your English is fine.
>
> --
> Roy S. Schestowitz
> http://Schestowitz.com | GNU is Not UNIX ¦ PGP-Key: 0x74572E8E
> 12:50pm up 16 days 19:47, 11 users, load average: 0.33, 0.65, 0.67
> http://iuron.com - proposing a non-profit search engine[/color]


J.O. Aho
Guest
 
Posts: n/a
#7: May 14 '06

re: Redirect


Bandul wrote:
[color=blue]
> How do i redirect a web page
> Ive using this meta tag:
> <meta http-equiv="REFRESH" content="4; url=http://www.redirect_here.com">
> Not working, is there something else.[/color]

<?PHP header("Location: http://www.redirect_here.com"); ?>

http://www.php.net/manual/en/function.header.php
Jerry Stuckle
Guest
 
Posts: n/a
#8: May 14 '06

re: Redirect


Sjeef wrote:[color=blue]
> In de nieuwsgroep:e475iu$rql$1@news2.carnet.hr,
> Bandul <ivan.curac@du.htnet.hr> schreef:
>[color=green]
>>Hi
>>How do i redirect a web page
>>Ive using this meta tag:
>><meta http-equiv="REFRESH" content="4;
>>url=http://www.redirect_here.com"> Not working, is there something
>>else. Sorry for my rubish english.
>>Thanks
>>Bandul[/color]
>
>
> I am using this script:
>
> <script language="JavaScript" type="text/javascript">
> <!--
> function redirect() {
> location="http://www.sjeef.eu/Nederlands/recepten.html";
> }
> setTimeout('redirect()',5000);
> -->
> </script>
>[/color]

Fine as long as javascript is enabled. Search engines won't find the redirect,
for instance.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================
Roy Schestowitz
Guest
 
Posts: n/a
#9: May 15 '06

re: Redirect


__/ [ Bandul ] on Sunday 14 May 2006 13:59 \__
[color=blue]
> "Roy Schestowitz" <newsgroups@schestowitz.com> wrote in message
> news:3222871.YvGUsOPPZA@schestowitz.com...[color=green]
>> __/ [ Bandul ] on Sunday 14 May 2006 12:51 \__
>>[color=darkred]
>>> Hi
>>> How do i redirect a web page
>>> Ive using this meta tag:
>>> <meta http-equiv="REFRESH" content="1; url=http://www.redirect_here.com">[/color]
>>
>>
>> I successfully use:
>>
>> <meta http-equiv="REFRESH" content="1; url=http://www.redirect_here.com">
>>
>> To be honest, I am not sure what the digit indicates (this goes back years
>> into the past), _but_...
>>
>>[color=darkred]
>>> Not working, is there something else.
>>> Sorry for my rubish english.
>>> Thanks
>>> Bandul[/color]
>>
>>
>> ...for any major redirection, you will be better off redirecting without
>> that
>> 'browser flicker' and also with a proper status/error code, which
>> indicates
>> a permanent redirection. How you implement this depends on your Web server
>> software. Do a Web search on "301 redirects".
>>
>> Best wishes,
>>
>> Roy
>>
>> PS - your English is fine.[/color]
>
> Digits indicates the number of seconds to be redirected to another page.[/color]

Oh, thanks. I never realised it (nor cared)... *smile*

Best wishes,

Roy

--
Roy S. Schestowitz | Microsof(fshore)t Window(ntime)s Vista(gnating)
http://Schestowitz.com | GNU/Linux ¦ PGP-Key: 0x74572E8E
6:10am up 17 days 13:07, 11 users, load average: 1.75, 1.41, 1.09
http://iuron.com - next generation of search paradigms
David Cary Hart
Guest
 
Posts: n/a
#10: May 15 '06

re: Redirect


On Sun, 14 May 2006 13:51:07 +0200, "Bandul" <ivan.curac@du.htnet.hr>
opined:[color=blue]
> Hi
> How do i redirect a web page
> Ive using this meta tag:
> <meta http-equiv="REFRESH" content="4;
> url=http://www.redirect_here.com"> Not working, is there something
> else. Sorry for my rubish english.
> Thanks
> Bandul
>
>[/color]
"Deprecated." Use one of the mod_alias options Redirect or the Swiss
Army Knife of redirect RedirectMatch (which can redirect on RegEx).

--
Displayed Email Address is a SPAM TRAP
Our DNSRBL - Eliminate Spam: http://www.TQMcube.com
Multi-RBL Check: http://www.TQMcube.com/rblcheck.php
The Dirty Dozen Spammiest Ranges: http://tqmcube.com/dirty12.php
Closed Thread