URL Aliasing

Discussion in 'PHP' started by treemonster19, Sep 6, 2009.

  1. #1
    I was wondering on popular URL aliasing feature in drupal (to make urls more search engine friendly) is done by redirect. if yes will it become cause of penalty....?
     
    treemonster19, Sep 6, 2009 IP
  2. hamidof

    hamidof Peon

    Messages:
    619
    Likes Received:
    44
    Best Answers:
    0
    Trophy Points:
    0
    #2
    No penalty and the redirects will happen internally in the web server so it won't actually redirect the client...
     
    hamidof, Sep 7, 2009 IP
  3. treemonster19

    treemonster19 Member

    Messages:
    142
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    28
    #3
    treemonster19, Sep 7, 2009 IP
  4. morehawes

    morehawes Peon

    Messages:
    11
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    htaccess rewrites are a really cool thing to read up on. I remember when I first started learning them and I realised the possibilities. Might also be worth brushing up on your regular expressions also! :p
     
    morehawes, Sep 11, 2009 IP
  5. pneulameiro

    pneulameiro Peon

    Messages:
    440
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #5
    it is like permalinks in wordpress. all of these redirection is done without the 301 http code. the spiders don't see the redirection. for them it is just a html page.
     
    pneulameiro, Sep 11, 2009 IP
  6. dweebsonduty

    dweebsonduty Active Member

    Messages:
    131
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    71
    Digital Goods:
    1
    #6
    I agree, what happens is basically the code looks at the url and sets the page to display the content.

    That would be the same as if you said:
    
    <?php
    if ($something = $somethingelse)
    {
    echo 1;
    }
    else
    {
    echo 2;
    }
    ?>
    
    PHP:
    The user only sees the echo.
     
    dweebsonduty, Sep 12, 2009 IP