PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Forums Hébergement > Forum Hébergement serveur > comp.info.servers.unix > W3C tells me not to use http-equiv=refresh to redirect; now what?
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
comp.info.servers.unix Web servers for UNIX platforms.

W3C tells me not to use http-equiv=refresh to redirect; now what?

Réponse
 
LinkBack Outils de la discussion
Vieux 22/08/2006, 19h45   #1
Daniel Greene
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut W3C tells me not to use http-equiv=refresh to redirect; now what?

I was using the W3C QA to validate my XHTML the other day, and I came
across this "tip of the day" called "Use standard redirects: don't
break the back button!" It said, "If you want
http://www.example.org/foo to actually display what's at
http://www.example.org/bar you should NOT [emphasis mine] use "refresh"
techniques like :

<META HTTP-EQUIV=REFRESH CONTENT="1; URL=http://www.example.org/bar">."

Well, I'll be damned! I never knew that! It says to "Use HTTP redirects
instead." I'm just a lowly XHTML/CSS author who don't know nothin'
'bout birthin' babies-- I mean writing .htaccess files with
mod_rewrite! I tried following the links and reading about "redirect"
and mod_rewrite, really I did, but it just doesn't make sense to me.

Now, I've always depended on the kindness of strangers, so I am posing
my dillema here in the hope that someone can tell me what to do in
plain English.

I would like to establish the following redirects "the right way":

http://danielgreene.com/grandpa.html to
http://danielgreene.com/2004/02/12/e...ernest-greene/

http://danielgreene.com/granny.html to
http://danielgreene.com/1999/11/04/e...helene-greene/

http://danielgreene.com/lawresep.html
http://danielgreene.com/2001/05/03/l...loyed-persons/

Et

cetera.

Can anyone tell me what code to write, or point me in the right
direction? I have already spent three hours reading what is Greek to me
on both web pages and newsgroups, and I still don't know exactly what
to do. My host, "pair Networks," uses Apache servers.

TIA!

Daniel

  Réponse avec citation
Vieux 23/08/2006, 15h51   #2
Andreas Prilop
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: W3C tells me not to use http-equiv=refresh to redirect; nowwhat?

On Tue, 22 Aug 2006, Daniel Greene wrote:

> I'm just a lowly XHTML/CSS author who don't know nothin'
> 'bout birthin' babies-- I mean writing .htaccess files with
> mod_rewrite! I tried following the links and reading about "redirect"
> and mod_rewrite, really I did, but it just doesn't make sense to me.


Often you don't need mod_rewrite but a simple Redirect in your
..htaccess file will suffice.

> I would like to establish the following redirects "the right way":
>
> http://danielgreene.com/grandpa.html to
> http://danielgreene.com/2004/02/12/e...ernest-greene/


If this is a single redirection, then you just write

Redirect 301 /grandpa.html
http://danielgreene.com/2004/02/12/e...ernest-greene/

into a *single* line in your .htaccess file.
http://httpd.apache.org/docs/1.3/mod....html#redirect

  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 11h07.


Édité par : vBulletin® version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,12377 seconds with 10 queries