HighDots Forums  

prefix role???

Search Engine Optimization Discussion about SEO/Search Engine Optimization (alt.internet.search-engines)


Discuss prefix role??? in the Search Engine Optimization forum.



Reply
 
Thread Tools Display Modes
  #11  
Old   
beromko@yahoo.com
 
Posts: n/a

Default Re: prefix role??? - 10-24-2005 , 05:35 AM






Thanks guys,
hope this will help
Also, if from domain with www preffix google indexed good qty of pages
- where will they gone then? Just will disappear?


http://www.exactsearcher.com Exact Meta Search | Major Search Engine


Reply With Quote
  #12  
Old   
Roy Schestowitz
 
Posts: n/a

Default Re: prefix role??? - 10-24-2005 , 06:16 AM






__/ [beromko (AT) yahoo (DOT) com] on Monday 24 October 2005 10:35 \__

Quote:
Thanks guys,
hope this will help
Also, if from domain with www preffix google indexed good qty of pages
- where will they gone then? Just will disappear?


http://www.exactsearcher.com Exact Meta Search | Major Search Engine
Under most circumstances, Google will not tell apart or separate apart
example.org from www.example.org. Yet, due to one among many possible
factors (e.g. old software on crawling boxes), they are sometimes treated as
different pages. Incoming links that are inconsistent do not help either.
You were not the first person to raise this issue and Google even included
an answer/solution in their FAQ, I believe.

You will not have lost any pages by re-directing as John suggested. If
anything, you will have gained. In fact, I have just added such
re-directions to 3 domains, even though I think 'www' is fully deprecated
already.

I might as well point out that this should have a positive impact of traffic
reports that do not omit that triple W 'umbilical cord'.

Roy


Reply With Quote
  #13  
Old   
John Bokma
 
Posts: n/a

Default Re: prefix role??? - 10-24-2005 , 09:37 AM



Roy Schestowitz <newsgroups (AT) schestowitz (DOT) com> wrote:

Quote:
This was discussed before. See entire thread by following the address
below:

Quote:
RewriteEngine On
RewriteCond %{HTTP_HOST} !^www\.speaktomecatalog.com
RewriteRule (.*) http://www.speaktomecatalog.com [R=301,L]
Yup, you even qouted 3 mistakes :-( (IIRC those were also mentioned in the
same thread).

Use the example on:
<http://johnbokma.com/mexit/2004/04/12/rewritingurlsforgoogle.html>


--
John Perl SEO tools: http://johnbokma.com/perl/
or have them custom made
Experienced (web) developer: http://castleamber.com/


Reply With Quote
  #14  
Old   
John Bokma
 
Posts: n/a

Default Re: prefix role??? - 10-24-2005 , 09:40 AM



beromko (AT) yahoo (DOT) com wrote:

Quote:
Thanks guys,
hope this will help
Also, if from domain with www preffix google indexed good qty of pages
- where will they gone then? Just will disappear?
If you follow the example I gave (on my page), all www. pages are 301
redirected to the ones without the www (which I recommend btw). You will
lose no visitors, not get kicked out of google. The www. pages should
disappear from google, and replaced with the ones without the www. I have
done this in the past with 2 domains, and no problems at all.

--
John Perl SEO tools: http://johnbokma.com/perl/
or have them custom made
Experienced (web) developer: http://castleamber.com/


Reply With Quote
  #15  
Old   
Roy Schestowitz
 
Posts: n/a

Default Re: prefix role??? - 10-24-2005 , 10:45 PM



__/ [John Bokma] on Monday 24 October 2005 14:37 \__

Quote:
Roy Schestowitz <newsgroups (AT) schestowitz (DOT) com> wrote:

This was discussed before. See entire thread by following the address
below:


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

Yup, you even qouted 3 mistakes :-( (IIRC those were also mentioned in the
same thread).

Use the example on:
http://johnbokma.com/mexit/2004/04/1...forgoogle.html

I did. It broke my Wikis and broke my password-protected pages (who knows
what else). I had to remove it for the time being and I'll investigate
within the next few days. I do want it to stay in tact, but there seems to
be a risk or trade-off involved. It caused more trouble than I had imagined.

Roy

--
Roy S. Schestowitz | (S)oftware (U)nd (S)ystem(E)ntwicklung
http://Schestowitz.com | SuSE Linux | PGP-Key: 74572E8E
3:40am up 60 days 13:49, 4 users, load average: 1.11, 0.74, 0.44
http://iuron.com - next generation of search paradigms


Reply With Quote
  #16  
Old   
John Bokma
 
Posts: n/a

Default Re: prefix role??? - 10-25-2005 , 02:00 AM



Roy Schestowitz <newsgroups (AT) schestowitz (DOT) com> wrote:

Quote:
I did. It broke my Wikis and broke my password-protected pages (who
knows what else).
Note that cookies contain the full path, which might give problems

Quote:
I had to remove it for the time being and I'll
investigate within the next few days. I do want it to stay in tact,
but there seems to be a risk or trade-off involved. It caused more
trouble than I had imagined.
Only with cookies afaik (and maybe https doesn't like it). Also note that
if your browser remembered the password for the prefixed variant, it lost
(actually never had) it for the non-prefixed one (and vice versa).

--
John Perl SEO tools: http://johnbokma.com/perl/
or have them custom made
Experienced (web) developer: http://castleamber.com/


Reply With Quote
  #17  
Old   
Roy Schestowitz
 
Posts: n/a

Default Re: prefix role??? - 10-25-2005 , 10:09 AM



__/ [John Bokma] on Tuesday 25 October 2005 07:00 \__

Quote:
Roy Schestowitz <newsgroups (AT) schestowitz (DOT) com> wrote:

I did. It broke my Wikis and broke my password-protected pages (who
knows what else).

Note that cookies contain the full path, which might give problems

I had to remove it for the time being and I'll
investigate within the next few days. I do want it to stay in tact,
but there seems to be a risk or trade-off involved. It caused more
trouble than I had imagined.

Only with cookies afaik (and maybe https doesn't like it). Also note that
if your browser remembered the password for the prefixed variant, it lost
(actually never had) it for the non-prefixed one (and vice versa).
Thanks, John. Good suggestions, which I will keep in mind.

Cheers,

Roy


Reply With Quote
  #18  
Old   
davidof
 
Posts: n/a

Default Re: prefix role??? - 10-28-2005 , 08:23 AM



Roy Schestowitz wrote:
Quote:
__/ [John Bokma] on Monday 24 October 2005 14:37 \__

This was discussed before. See entire thread by following the address
below:



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



I did. It broke my Wikis
I had trouble with this under similar circumstances so I just stuck the
rewrite code into the top of my wiki/blog/whatever:

$request = $_SERVER['REQUEST_URI'];
$server = $_SERVER['HTTP_HOST'];

$prefix = strtolower(substr($server,0,4));
if ($prefix != "www.") {
# combine page rank
header("HTTP/1.1 301 Moved Permanently");
header("Location: http://www.$server$request");
exit;
}

in this case I'm rewriting not www. to www, you probably want to reverse
this as John says www. serves no real purpose. This needs to be at the
top of any PHP script. YMMV.

----------------------
http://www.abcseo.com/


Reply With Quote
  #19  
Old   
Roy Schestowitz
 
Posts: n/a

Default Re: prefix role??? - 10-28-2005 , 08:51 AM



__/ [davidof] on Friday 28 October 2005 13:23 \__

Quote:
Roy Schestowitz wrote:
__/ [John Bokma] on Monday 24 October 2005 14:37 \__

This was discussed before. See entire thread by following the address
below:



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



I did. It broke my Wikis

I had trouble with this under similar circumstances so I just stuck the
rewrite code into the top of my wiki/blog/whatever:

$request = $_SERVER['REQUEST_URI'];
$server = $_SERVER['HTTP_HOST'];

$prefix = strtolower(substr($server,0,4));
if ($prefix != "www.") {
# combine page rank
header("HTTP/1.1 301 Moved Permanently");
header("Location: http://www.$server$request");
exit;
}

in this case I'm rewriting not www. to www, you probably want to reverse
this as John says www. serves no real purpose. This needs to be at the
top of any PHP script. YMMV.
The pieces begin to fall onto the right spaces in the puzzle. The
password-protected pages which broke were PHP indices and I use 3
installations of PhpWiki.

I estimate that modification of all so-called 'user-facing' PHP scripts would
mean endless testing, which involves risk. I can think of a few dozens of
places where your code ought to be inserted.

Thanks, David.


Reply With Quote
  #20  
Old   
Borek
 
Posts: n/a

Default Re: prefix role??? - 10-28-2005 , 09:38 AM



On Fri, 28 Oct 2005 14:23:10 +0200, davidof
<david.george (AT) g-dumpthisbit-mail (DOT) com> wrote:

Quote:
header("HTTP/1.1 301 Moved Permanently");
header("Location: http://www.$server$request");
header("Location: http://www.$server$request",true,301);

works OK for me, no idea whether one is better or worse.

Best,
Borek
--
http://www.chembuddy.com - chemical calculators for labs and education
BATE - program for pH calculations
CASC - Concentration and Solution Calculator
pH lectures - guide to hand pH calculation with examples


Reply With Quote
Reply




Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.