indexed dynamic urls

Discussion in 'Site & Server Administration' started by rederick, Nov 26, 2005.

  1. #1
    rederick, Nov 26, 2005 IP
  2. digitalpoint

    digitalpoint Overlord of no one Staff

    Messages:
    38,334
    Likes Received:
    2,613
    Best Answers:
    462
    Trophy Points:
    710
    Digital Goods:
    29
    #2
    You're best bet is to redirect the old URLs to the new one.
     
    digitalpoint, Nov 26, 2005 IP
  3. sufyaaan

    sufyaaan Banned

    Messages:
    218
    Likes Received:
    16
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Shawn is correct. It will definitely trigger a red flag by G for duplicate content. To avoid any negative effects on your site rankings, do a 301 redirect from old pages to the newly rewritten ones.
     
    sufyaaan, Nov 26, 2005 IP
  4. Dekker

    Dekker Peon

    Messages:
    4,185
    Likes Received:
    287
    Best Answers:
    0
    Trophy Points:
    0
    #4
    im guessing there's no automatic way to do it?
     
    Dekker, Nov 26, 2005 IP
  5. digitalpoint

    digitalpoint Overlord of no one Staff

    Messages:
    38,334
    Likes Received:
    2,613
    Best Answers:
    462
    Trophy Points:
    710
    Digital Goods:
    29
    #5
    You could do it with a couple lines of logic on the beginning of the PHP script with something along these lines:

    if (strpos ($_SERVER["REQUEST_URI"], 'details.php')) {
    	header('HTTP/1.1 301 Moved Permanently');
    	header('Location: http://www.example.com/featured-area_' . $_REQUEST['id'] . '.php');
    	exit;
    }
    PHP:
     
    digitalpoint, Nov 26, 2005 IP
  6. Dekker

    Dekker Peon

    Messages:
    4,185
    Likes Received:
    287
    Best Answers:
    0
    Trophy Points:
    0
    #6
    hmmm thanks....i'll take a look at that. at some point i want to rewrite my forum urls
     
    Dekker, Nov 26, 2005 IP
  7. rederick

    rederick Peon

    Messages:
    128
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #7
    That is the problem, I still want to be able to access the dynamic urls. It is an interesting problem. What I am doing is sending people to details pages from the home page using the mod rewritten url.

    Previously i had not been rewriting the urls and so they have been "indexed"

    Then I also send people to that same page from a search results page, which I figured will not be able to be seen by the search engines ( the results page ). since you have to POST to get to it.
    These are the only links to them using the dynamic urls.

    I would like to avoid redirection.

    There are only about 20 pages "indexed"
    When pages "indexed" they don't say they are cached. What do that mean?

    Should I maybe write rules only for the ones that are "indexed" or is it worth it?

    Thanks:)
     
    rederick, Nov 26, 2005 IP
  8. rederick

    rederick Peon

    Messages:
    128
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #8
    Never mind the above post, :eek: I'll just rewrite all the urls that point to details pages.
    Then redirect the old dynamic urls.

    Does the php script have the same affect as if I were to do mod_rewrite in .htaccess?

    Thanks for you help.
     
    rederick, Nov 26, 2005 IP