Connecting Tech Pros Worldwide Help | Site Map

Redirect

  #1  
Old May 14th, 2006, 12:55 PM
Bandul
Guest
 
Posts: n/a
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


  #2  
Old May 14th, 2006, 01:05 PM
Roy Schestowitz
Guest
 
Posts: n/a

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
  #3  
Old May 14th, 2006, 01:25 PM
David Dorward
Guest
 
Posts: n/a

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
  #4  
Old May 14th, 2006, 01:45 PM
Sjeef
Guest
 
Posts: n/a

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


  #5  
Old May 14th, 2006, 01:55 PM
Bandul
Guest
 
Posts: n/a

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]


  #6  
Old May 14th, 2006, 02:05 PM
Bandul
Guest
 
Posts: n/a

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]


  #7  
Old May 14th, 2006, 03:05 PM
J.O. Aho
Guest
 
Posts: n/a

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
  #8  
Old May 14th, 2006, 11:15 PM
Jerry Stuckle
Guest
 
Posts: n/a

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
==================
  #9  
Old May 15th, 2006, 06:15 AM
Roy Schestowitz
Guest
 
Posts: n/a

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
  #10  
Old May 15th, 2006, 04:55 PM
David Cary Hart
Guest
 
Posts: n/a

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to 301 redirect default.aspx to root Eirik Eldorsen answers 10 December 22nd, 2007 02:05 PM
Breakpoints after Response.Redirect in ASP.NET 2.0 venner@gmail.com answers 5 August 18th, 2006 02:35 PM
How to know if a redirect has been done? Peter Row answers 6 November 18th, 2005 03:28 AM
redirect to URL passed as variable in php Donna Hawkins answers 7 July 20th, 2005 02:03 PM
can't get header() to redirect Bob Garbados answers 10 July 17th, 2005 09:02 AM