Forum Moderators: Robert Charlton & goodroi
The old site had a good amount of the site without trailing /
like so
www..mysite.com/abc
are new site has
www.mysite.com/abc/
Now google has both listed, with the older site url with higher page rank.
What is the best way to correct this?
A rule we can put in apache?
Thanks in advance for the help
Reading Apache doc we were going to put
RewriteEngine on
RewriteBase /~quux/
RewriteRule ^foo$ foo/ [R]
And then remove all trailing / from our code.
Would that be the correct way to fix?
RewriteEngine on
RewriteBase /~quux/
RewriteRule ^foo/$ [b]http://www.example.com/[/b]foo [[b]R=301,L[/b]]
However, if 'foo' is a directory, then this won't work, since a trailing slash is required on directory-paths.
Jim
I have page rank on the old urls
If I do the 301's to the new urls, will the page rank carry over?
If it will not carry over, then I have another question
if I do the 301 to old urls
Do I also need to go through the code and fix the url (to be without trailing dash)?
or won't it matter because I have the 301's in place?