mod_rewrite question

Discussion in 'Search Engine Optimization' started by php_guest, Sep 23, 2009.

  1. #1
    I have a simple example:
    RewriteEngine on
    RewriteRule ^first.html$ second.html

    In this case a user can access the second.html page if he type domain/first.html or second.html. I am wondering if google or other search engine can find out that domain/second.html page exists even if I don't put any link to this page. Because that would mean duplicate content in the page first.html (which is actually second.html but user or bot can not know that) and second.html.

    What do you think about that? Are there any worries for that?
     
    php_guest, Sep 23, 2009 IP
  2. Iproperty

    Iproperty Member

    Messages:
    313
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    35
    #2
    u need to put a redirect type, 301 if permanent, 302 if temporary
     
    Iproperty, Sep 23, 2009 IP
  3. php_guest

    php_guest Peon

    Messages:
    17
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    this was just for example. So the question is still the same.
     
    php_guest, Sep 23, 2009 IP