Mod_Rewrite Question

Discussion in 'HTML & Website Design' started by Florida, Oct 3, 2006.

  1. #1
    I have a database driven website if the mod_rewrite that is in place now was changed would this cause a 404 error for the pages I currently have indexed in the search engines?

    The site is driven by a numbering system for the pages an example would be domain.com/red/widget/101/buynow.jsp the red widget is the mod_rewrite.

    If I were to type in domain.com/red/widget/101/sellnow.jsp it would still pull up the page above.

    So if the mod_rewrite was changed would this cause a 404 error? If you need more info please ask and I will try to answer the best I can. Thanks in advance for the help.
     
    Florida, Oct 3, 2006 IP
  2. Florida

    Florida Peon

    Messages:
    19
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #2
    If anyone knows please help, the answer to this troubling question is preventing a change. I appreciate the responses in advance...;)
     
    Florida, Oct 4, 2006 IP
  3. fordP

    fordP Peon

    Messages:
    548
    Likes Received:
    28
    Best Answers:
    0
    Trophy Points:
    0
    #3
    You should ask this in the PHP section, as this relates most to PHP and Apache / proggramming.

    What do you mean by "if the mod_rewrite was changed"? Are you changing servers?

    So your original URL looks like domain.com/101/buynow.jsp and you used mod_rewrite to change it to domain.com/red/widget/101/buynow.jsp, but now you want it to change it to domain.com/red/blue/widget/101/buynow.jsp? If you did this, than yes your existing URL's from the search engines would give a 404 error, unless you also said that the url /red/widget/ should serve x page? I'm not to sure but I know if you do the changes as I said above, you will get a 404 for pages in the serps
     
    fordP, Oct 5, 2006 IP