![]() | |
![]() |
| | Thread Tools | Display Modes |
#11
| |||
| |||
|
#12
| |||
| |||
|
|
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 |
#13
| |||
| |||
|
|
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] |
#14
| |||
| |||
|
|
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? |
#15
| |||
| |||
|
|
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 |
#16
| |||
| |||
|
|
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. |
#17
| |||
| |||
|
|
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). |
#18
| |||
| |||
|
|
__/ [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 |
#19
| |||
| |||
|
|
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. |
#20
| |||
| |||
|
|
header("HTTP/1.1 301 Moved Permanently"); header("Location: http://www.$server$request"); |
![]() |
| Thread Tools | |
| Display Modes | |
| |