--- In [email protected], "Mian Waqas" <[EMAIL PROTECTED]> wrote:
>
> Thanks Patrick
> 
> Thanks for PHP script. Can you provide me code to change .htaccess 
> file or any tutorial link?
> 
> Thanks,
> 
> Waqas

I have already replied to this thread with the code for .htaccess,
then sent a message saying that I hadn't seen my message.  Is Yahoo
playing silly **** again?

This message was posted on the site.

I said, in my first message:
<start>
I think that this could be an ongoing problem with Google (although they
may have fixed it now), where they think that you have duplicate
content, because they can see yoir site twice.

>From my .htaccess
=====================================
RewriteEngine On

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

I am not totally sure that Rewriteengine on is required here, try it...

It is possible to do it in PHP, but if you were going to do it in PHP,
then you would have to find a way of adding code to every page, even the
odd HTML page, so I feel that .htaccess is simpler.
<end>





------------------------ Yahoo! Groups Sponsor --------------------~--> 
Great things are happening at Yahoo! Groups.  See the new email design.
http://us.click.yahoo.com/TISQkA/hOaOAA/yQLSAA/HKFolB/TM
--------------------------------------------------------------------~-> 

Community email addresses:
  Post message: [email protected]
  Subscribe:    [EMAIL PROTECTED]
  Unsubscribe:  [EMAIL PROTECTED]
  List owner:   [EMAIL PROTECTED]

Shortcut URL to this page:
  http://groups.yahoo.com/group/php-list 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/php-list/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to