|
|
|
|
||||||
| alt.internet.seo Internet search engines and related topics. |
![]() |
|
|
LinkBack | Outils de la discussion |
|
|
#1 |
|
Messages: n/a
Hébergeur: |
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 |
|
|
|
#2 |
|
Messages: n/a
Hébergeur: |
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/ |
|
|
|
#3 |
|
Messages: n/a
Hébergeur: |
>>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 |
|
|
|
#4 |
|
Messages: n/a
Hébergeur: |
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/ |
|
|
|
#5 |
|
Messages: n/a
Hébergeur: |
>>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 |
|
|
|
#6 |
|
Messages: n/a
Hébergeur: |
"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. |
|
|
|
#7 |
|
Messages: n/a
Hébergeur: |
>> 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 |
|
|
|
#8 |
|
Messages: n/a
Hébergeur: |
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 |
|
![]() |
| Outils de la discussion | |
|
|