#1
  1. No Profile Picture
    Newbie
    SEO Chat Explorer (0 - 99 posts)

    Join Date
    Feb 2014
    Posts
    4
    Rep Power
    0

    Change URLs Without Being Penalised By Google


    Hi, wondering if anyone can help. I currently own a website which is effectively a forum where users can post and comment. When I first built it, I made it so that each time a new post is made it would create a new physical file on the server.

    I now want to change this so that all posts are generated using one dynamic post page which pulls information from the database, and intend to use URL rewriting in the .htaccess file to give each post a user-friendly address. The problem that crosses my mind is that when Google indexes the posts that are already there, it will see them as new pages as they will have new URLs, but it will also see them as duplicate content as it will already have indexed them previously under the static URLs I was previously using.

    Is there a way to alert Google that pages have moved to a new URL, so I don't get penalised for having duplicate content?

    I hope this makes sense, sorry for the long winded explanation!
  2. #2
  3. Digital Marketing
    SEO Chat Mastermind (5000+ posts)

    Join Date
    Aug 2008
    Location
    Florida
    Posts
    7,964
    Rep Power
    5767
    Use a canonical tag

    Comments on this post

    • krabople agrees
    Last edited by KernelPanic; Feb 24th, 2014 at 05:51 PM.
  4. #3
  5. No Profile Picture
    Newbie
    SEO Chat Explorer (0 - 99 posts)

    Join Date
    Feb 2014
    Posts
    4
    Rep Power
    0
    Originally Posted by KernelPanic
    That's perfect! I didn't think the answer would be so simple (but was hoping it would be!).

    Thanks very much for your help.
  6. #4
  7. Seo Control Panel
    SEO Chat Discoverer (100 - 499 posts)

    Join Date
    Feb 2014
    Location
    India
    Posts
    141
    Rep Power
    14
    @krabople Just use 301 redirect using .htaccess file.

    Please check example redirect code below

    RewriteEngine on
    RewriteRule ^help\/*$ http://help.example.com/hp [R=301,L]


    That will transfer all seo benefits to new redirected url, it is the best way to do it.

    Comments on this post

    • KernelPanic : 301s are used when a page has moved permanently
  8. #5
  9. No Profile Picture
    Newbie
    SEO Chat Explorer (0 - 99 posts)

    Join Date
    Feb 2014
    Posts
    4
    Rep Power
    0
    Originally Posted by seopanel
    @krabople Just use 301 redirect using .htaccess file.

    Please check example redirect code below

    RewriteEngine on
    RewriteRule ^help\/*$ http://help.example.com/hp [R=301,L]


    That will transfer all seo benefits to new redirected url, it is the best way to do it.
    Thanks for the reply... currently I have the following code set to rewrite the URL for all posts. Are you saying that all I would need to do here is replace the [NC,L] with [R=301,L] and it would automatically set up a 301 redirect and rewrite the URL for all pages that matched this criteria? My code is currently:

    RewriteRule ^posts/([A-Za-z0-9-]+)/?$ post.php?poststring=$1 [NC,L]
  10. #6
  11. No Profile Picture
    Newbie
    SEO Chat Explorer (0 - 99 posts)

    Join Date
    Feb 2014
    Posts
    4
    Rep Power
    0
    Originally Posted by seopanel
    @krabople Just use 301 redirect using .htaccess file.

    Please check example redirect code below

    RewriteEngine on
    RewriteRule ^help\/*$ http://help.example.com/hp [R=301,L]


    That will transfer all seo benefits to new redirected url, it is the best way to do it.
    Hi, thanks for your reply. Currently I have the below code in my .htaccess file to rewrite all post URLs. Are you saying that in the below example all I would need to do is change [NC,L] to [R=301,L] and it will automatically 301 redirect them as well? My code is currently:

    RewriteRule ^posts/([A-Za-z0-9-]+)/?$ post.php?poststring=$1 [NC,L]
  12. #7
  13. Seo Control Panel
    SEO Chat Discoverer (100 - 499 posts)

    Join Date
    Feb 2014
    Location
    India
    Posts
    141
    Rep Power
    14
    Yes it is. [R=301,L] will redirect it 301 permanently.

Similar Threads

  1. How to change Dynamic urls in to static.
    By Sanjeet.Seo in forum Google Optimization
    Replies: 2
    Last Post: Jun 26th, 2012, 12:01 AM
  2. Some help with SEO urls and making a change.
    By melanie in forum SEO Help (General Chat)
    Replies: 4
    Last Post: Nov 1st, 2010, 03:15 PM
  3. Replies: 7
    Last Post: Feb 10th, 2005, 08:02 AM
  4. change URLS advice
    By mikemcs in forum Google Optimization
    Replies: 6
    Last Post: Jun 7th, 2004, 10:37 PM

IMN logo majestic logo threadwatch logo seochat tools logo