Forum Moderators: open

Message Too Old, No Replies

Changing URLs

         

Matthew McNally

10:26 pm on Apr 8, 2003 (gmt 0)

10+ Year Member


Hi

I have a site that has been running for a while.

I am now picking it up and running with it - trying to make a success of it 8)

It has been crawled last month, so waiting to see how that goes, but basically, we have moved to a new server, so want to make a change.

Previously, the site has lived at

http://www.mysite.com/us/

now we have a true sub domain on the new server for this site, I want to change everything to

http://us.mysite.com

the old URL will still work.

Would google look at this, see page(s) in its index for http://www.mysite.com/us/page.htm, that is identical to page http://us.mysite.com/page.htm and think "Duplicate content, SPAM! SPAM! SPAM!" or would this be ok?

This is a legitimate change, I am making the us.mysite.com a true stand alone web site, rather than the small after thought it was previously.

what is anyone's thoughts?

rfgdxm1

10:30 pm on Apr 8, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member


>the old URL will still work.

BIG mistake. Just set up http://www.mysite.com/us/ to do a permanent redirect to http://us.mysite.com, and voila.

apfinlaw

10:34 pm on Apr 8, 2003 (gmt 0)

10+ Year Member



I would be extremely careful...I did that, and I am still kicking myself....

just to track advertising, we added a source code AFTER the url for a series of links we were purchasing from a MAJOR online presence.

e.g. mysite.com/?source=nameofsource

ALL of the links from the ad outlet showed up on different page results. I then had TWO listings...one for the page, and the other for page PLUS source code. If I could have had ALL links pointing to ONE page, it would have been wonderous (hopefully corrected in next update)

MAJOR BLUNDER! Don't repeat my mistake!
It WILL be viewed by G as a different page...

Matthew McNally

5:32 pm on Apr 9, 2003 (gmt 0)

10+ Year Member



OK - cheers guys!

1 permanent redirect setup!

will this cause google to change URL for any previously indexed pages?

killroy

6:05 pm on Apr 9, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I had the same, company1stmajorislandofcountry.com and company2ndmajorislandofcountry.com the second domain was comlpetely PR 0 penalised. Now I have doen a 301 on it and hope Google will pick up on it.

SN

rfgdxm1

6:06 pm on Apr 9, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



>will this cause google to change URL for any previously indexed pages?

You really should do a permanent redirect for all pages that have moved.

Matthew McNally

6:19 pm on Apr 9, 2003 (gmt 0)

10+ Year Member



>>will this cause google to change URL for any previously indexed pages?

>You really should do a permanent redirect for all pages that have moved.

wellll

the redirect caused problems with the invision forums 8( - so had been temporarily removed.

but can I ask what you mean by ALL pages?

My redirect was to redirect all traffic from www.mysite.com/us to us.mysite.com - surely that will pick up everything?

killroy

6:53 pm on Apr 9, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Yup, that should do it.

SN

hetzeld

7:36 pm on Apr 9, 2003 (gmt 0)

10+ Year Member


Hi Matthew,

In the directory http://www.mysite.tld/us/ create a .htaccess file with a single rule
-----------
[code]RewriteEngine on
RewriteRule (.*) http://us.mysite.tld/$1 [R=301,QSA,L][/code]
-----------
This means that every file requested in the /us/ directory (.*) should be redirected to its equivalent file in the root folder us.mysite.tld, that the redirection is permanent (R=301) , that the Query string - if any - should be passed intact (QSA=Query string Append) and that it's the last rule to be applied (L=LAST)

Dan

PS: could someone tell me why I can't type the left square brackets in this window? I had to use copy/paste from a text doc to use them. Thanks.