PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Forums Hébergement > Diriger une société d'hébergement > alt.internet.seo > Redirect?
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
alt.internet.seo Internet search engines and related topics.

Redirect?

Réponse
 
LinkBack Outils de la discussion
Vieux 22/06/2007, 16h04   #1
Hymer
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Redirect?

Hello,

Can someone remind me how you make "mysite.com", "www.mysite.com, and
http://mysite.com all point to "http://www.mysite.com"?

I just want to make all forms of the URL point to the one main URL but
can't recall where to do it or how to do it. Apparently, I did not do
it in the .htaccess file like I thought.

Thanks,

Bob


  Réponse avec citation
Vieux 22/06/2007, 17h26   #2
Big Bill
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Redirect?

On Fri, 22 Jun 2007 08:04:12 -0700, "Hymer"
<ergobob@sonic[REMOVE].net> wrote:

>Hello,
>
>Can someone remind me how you make "mysite.com", "www.mysite.com, and
>http://mysite.com all point to "http://www.mysite.com"?
>
>I just want to make all forms of the URL point to the one main URL but
>can't recall where to do it or how to do it. Apparently, I did not do
>it in the .htaccess file like I thought.
>
>Thanks,
>
>Bob


301 redirect. .htaccess file on Apache and control panel in Windows.

BB
--

http://www.kruse.co.uk/internet-mark...l-business.htm
http://www.kruse.co.uk/close-ended-questions.htm
http://www.crystal-liaison.com/giving/
  Réponse avec citation
Vieux 22/06/2007, 19h19   #3
Hymer
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Redirect?

>>Hello,
>>
>>Can someone remind me how you make "mysite.com", "www.mysite.com,
>>and
>>http://mysite.com all point to "http://www.mysite.com"?
>>
>>I just want to make all forms of the URL point to the one main URL
>>but
>>can't recall where to do it or how to do it. Apparently, I did not
>>do
>>it in the .htaccess file like I thought.
>>
>>Thanks,
>>
>>Bob

>
> 301 redirect. .htaccess file on Apache and control panel in Windows.
>



Hi Bill,

Is this what is controlling my redirects? It is what I now have in my
htaccess file.

RewriteEngine On
RewriteCond %{HTTP_HOST} !^www\.usernomics\.com$
RewriteRule (.*) http://www.usernomics.com/$1 [R=301,L]

If so, I now have added a sub domain of "jobs.usernomics.com" that
also works with http://jobs.usernomics.com but it does not work with
http://www.jobs.usernomics.com or with www.jobs.usernomics.com.

So I would like to point the latter two to one that works such as
"jobs.usernomics.com". Would another script in my htaccess file do
that? If so, do you know what the script would look like?

Thanks Bill,

Bob



  Réponse avec citation
Vieux 22/06/2007, 23h51   #4
Big Bill
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Redirect?

On Fri, 22 Jun 2007 11:19:11 -0700, "Hymer"
<ergobob@sonic[REMOVE].net> wrote:

>>>Hello,
>>>
>>>Can someone remind me how you make "mysite.com", "www.mysite.com,
>>>and
>>>http://mysite.com all point to "http://www.mysite.com"?
>>>
>>>I just want to make all forms of the URL point to the one main URL
>>>but
>>>can't recall where to do it or how to do it. Apparently, I did not
>>>do
>>>it in the .htaccess file like I thought.
>>>
>>>Thanks,
>>>
>>>Bob

>>
>> 301 redirect. .htaccess file on Apache and control panel in Windows.
>>

>
>
>Hi Bill,
>
>Is this what is controlling my redirects? It is what I now have in my
>htaccess file.
>
>RewriteEngine On
>RewriteCond %{HTTP_HOST} !^www\.usernomics\.com$
>RewriteRule (.*) http://www.usernomics.com/$1 [R=301,L]
>
>If so, I now have added a sub domain of "jobs.usernomics.com" that
>also works with http://jobs.usernomics.com but it does not work with
>http://www.jobs.usernomics.com or with www.jobs.usernomics.com.
>
>So I would like to point the latter two to one that works such as
>"jobs.usernomics.com". Would another script in my htaccess file do
>that? If so, do you know what the script would look like?
>
>Thanks Bill,
>
>Bob


I'm really not the guy to ask. Trees green, skies blue, that's me
being technical, sorry.

BB
--

http://www.kruse.co.uk/internet-mark...l-business.htm
http://www.kruse.co.uk/close-ended-questions.htm
http://www.crystal-liaison.com/giving/
  Réponse avec citation
Vieux 23/06/2007, 00h41   #5
Hymer
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Redirect?

>>Hi Bill,
>>
>>Is this what is controlling my redirects? It is what I now have in
>>my
>>htaccess file.
>>
>>RewriteEngine On
>>RewriteCond %{HTTP_HOST} !^www\.usernomics\.com$
>>RewriteRule (.*) http://www.usernomics.com/$1 [R=301,L]
>>
>>If so, I now have added a sub domain of "jobs.usernomics.com" that
>>also works with http://jobs.usernomics.com but it does not work with
>>http://www.jobs.usernomics.com or with www.jobs.usernomics.com.
>>
>>So I would like to point the latter two to one that works such as
>>"jobs.usernomics.com". Would another script in my htaccess file do
>>that? If so, do you know what the script would look like?
>>
>>Thanks Bill,
>>
>>Bob

>
> I'm really not the guy to ask. Trees green, skies blue, that's me
> being technical, sorry.
>



Hi Bill,

Geeez, I was missing a whole point. When you have a sub domain like
jobs.mysite.com, you can't have a www in front of it because it is not
a possible URL. So I won't need to redirect them.

Thanks though,

Bob


  Réponse avec citation
Vieux 23/06/2007, 10h20   #6
Andrew Heenan
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Redirect?

"Hymer" <ergobob@sonic[REMOVE].net> wrote ...
> Geeez, I was missing a whole point. When you have a sub domain like
> jobs.mysite.com, you can't have a www in front of it because it is not a
> possible URL. So I won't need to redirect them.


It IS a possible URL - just not a very sensible one.

Many people do use www.sub.domain.com, because they (wrongly) assume that
every site on the planet has to start with WWW - those are the folk that
write to ODP in their thousands telling them them that dmoz.org is "wrong"!

But 'convention' says go with www.domain.com and / or sub.domain.com - and
make sure the server is set up to exclude the other possibilities, using 301
permanent redirects.
--

Andrew
http://www.seo2seo.com/
http://www.sick-site-syndrome.com/
First things first - but not necessarily in that order.


  Réponse avec citation
Vieux 23/06/2007, 15h12   #7
Hymer
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Redirect?

>> Geeez, I was missing a whole point. When you have a sub domain like
>> jobs.mysite.com, you can't have a www in front of it because it is
>> not a possible URL. So I won't need to redirect them.

>
> It IS a possible URL - just not a very sensible one.
>
> Many people do use www.sub.domain.com, because they (wrongly) assume
> that every site on the planet has to start with WWW - those are the
> folk that write to ODP in their thousands telling them them that
> dmoz.org is "wrong"!
>
> But 'convention' says go with www.domain.com and / or
> sub.domain.com - and make sure the server is set up to exclude the
> other possibilities, using 301 permanent redirects.



Thanks Andrew. In this case I have to point to a customized Job Board
located on the jobamatic.com site. My objective was to use my URL
rather than theirs. The jobamatic instruction was to setup a CNAME
change and I had to point to jobs.mysite.com to do that. I did not
understand the www issue with a sub domain like this. So my whole
redirect premise was wrong.

It seems to be working very well now.

Thanks Again,

Bob


  Réponse avec citation
Vieux 24/06/2007, 09h16   #8
shabbir@go4expert.com
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Redirect?

You can find the answer on this thread as well

http://www.go4expert.com/forums/showthread.php?t=145

but for your reference I am quoting that here as well

Code:

Options +FollowSymlinks
RewriteEngine On
RewriteCond %{HTTP_HOST} !^(www\.|$) [NC]
RewriteRule ^ http://www.%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

To go from the 'www' to non 'www' use this code:

Code:

Options +FollowSymlinks
RewriteEngine On
RewriteCond %{HTTP_HOST}//s%{HTTPS} ^www\.(.*)//((s)on|s.*)$ [NC]
RewriteRule ^ http%3://%1%{REQUEST_URI} [L,R=301]

Thanks
Shabbir

On Jun 22, 8:04 pm, "Hymer" <ergobob@sonic[REMOVE].net> wrote:
> Hello,
>
> Can someone remind me how you make "mysite.com", "www.mysite.com, andhttp://mysite.comall point to "http://www.mysite.com"?
>
> I just want to make all forms of the URL point to the one main URL but
> can't recall where to do it or how to do it. Apparently, I did not do
> it in the .htaccess file like I thought.
>
> Thanks,
>
> Bob



  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 22h32.


É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,16636 seconds with 16 queries