Connecting Tech Pros Worldwide Help | Site Map

Redirect

 
LinkBack Thread Tools Search this Thread
  #1  
Old May 14th, 2006, 11:55 AM
Bandul
Guest
 
Posts: n/a
Default Redirect

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, 12:05 PM
Roy Schestowitz
Guest
 
Posts: n/a
Default 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, 12:25 PM
David Dorward
Guest
 
Posts: n/a
Default 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, 12:45 PM
Sjeef
Guest
 
Posts: n/a
Default 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, 12:55 PM
Bandul
Guest
 
Posts: n/a
Default 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, 01:05 PM
Bandul
Guest
 
Posts: n/a
Default 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, 02:05 PM
J.O. Aho
Guest
 
Posts: n/a
Default 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, 10:15 PM
Jerry Stuckle
Guest
 
Posts: n/a
Default 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, 05:15 AM
Roy Schestowitz
Guest
 
Posts: n/a
Default 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, 03:55 PM
David Cary Hart
Guest
 
Posts: n/a
Default 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
 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Popular Articles

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 220,989 network members.