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 > Redirect from referer?
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
comp.info.servers.unix Web servers for UNIX platforms.

Redirect from referer?

Réponse
 
LinkBack Outils de la discussion
Vieux 14/07/2005, 15h37   #1
vincenzo.dellamea@gmail.com
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Redirect from referer?

Dear all,
I woul like to have a redirect while maintaining the same original URI.
Is this possible using referer and mod_rewrite? Let me explain better:

I have a small site (http://www.site1.com), which I woul like to be
served by pages at http://www.site2.com/site1/. I do not have any
control on DNS or ISP-based redirection.
At present, I have put a Redirect / http://www.site2.com/site1/
directive on .htaccess. However, the browser then shows a
http://www.site2.com/site1 URI, wilst I would rather prefer that the
original www.site1.com URL remains.
Is there any possibility to have this using rewriting?

Thanks,
VDM

  Réponse avec citation
Vieux 17/07/2005, 09h32   #2
Tim
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Redirect from referer?

On 14 Jul 2005 07:37:08 -0700,
vincenzo.dellamea@gmail.com posted:

> I woul like to have a redirect while maintaining the same original URI.


And the point of that is?

You "redirect" to go to somewhere else. If the address doesn't change,
then you haven't been redirected somewhere.

(You can't stand four metres to your right, while still standing where you
were a moment ago.)

> Is this possible using referer and mod_rewrite? Let me explain better:
>
> I have a small site (http://www.site1.com), which I woul like to be
> served by pages at http://www.site2.com/site1/. I do not have any
> control on DNS or ISP-based redirection.


I think that you would need control over your DNS to do any redirections.
Or at the very least to have two servers that you can custom configure at
both hostnames, to attempt anything like this.

> At present, I have put a Redirect / http://www.site2.com/site1/
> directive on .htaccess. However, the browser then shows a
> http://www.site2.com/site1 URI, wilst I would rather prefer that the
> original www.site1.com URL remains.
> Is there any possibility to have this using rewriting?


Show the code that you actually used. None of us can accurately guess what
you've done.

The only way that <http://one.example.com/> can successfully work being
redirected to <http://two.example.com/>, or vice versa, is if both servers
have the files to serve in the locations you're using. The same applies
whether it's two different servers, or one server acting as two servers by
using virtual hosts.

--
If you insist on e-mailing me, use the reply-to address (it's real but
temporary). But please reply to the group, like you're supposed to.

This message was sent without a virus, please delete some files yourself.
  Réponse avec citation
Vieux 17/07/2005, 11h32   #3
Paul Rubin
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Redirect from referer?

vincenzo.dellamea@gmail.com writes:
> At present, I have put a Redirect / http://www.site2.com/site1/
> directive on .htaccess. However, the browser then shows a
> http://www.site2.com/site1 URI, wilst I would rather prefer that the
> original www.site1.com URL remains.
> Is there any possibility to have this using rewriting?


No not really. The two ways to do it are with proxying or with an
HTML frame to disguise the page's real origin. The frame approach is
annoying and I hate sites that do it, but it's common. Depending on
the application it may be better to use a chromeless pop-up or
something.
  Réponse avec citation
Vieux 17/07/2005, 11h32   #4
Paul Rubin
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Redirect from referer?

vincenzo.dellamea@gmail.com writes:
> At present, I have put a Redirect / http://www.site2.com/site1/
> directive on .htaccess. However, the browser then shows a
> http://www.site2.com/site1 URI, wilst I would rather prefer that the
> original www.site1.com URL remains.
> Is there any possibility to have this using rewriting?


No not really. The two ways to do it are with proxying or with an
HTML frame to disguise the page's real origin. The frame approach is
annoying and I hate sites that do it, but it's common. Depending on
the application it may be better to use a chromeless pop-up or
something.
  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 12h34.


Édité par : vBulletin® version 3.7.3
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 ©2000-2008
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,13796 seconds with 12 queries