Mod rewrite

Discussion in 'Apache' started by chux, Apr 29, 2007.

  1. #1
    First, sorry for my english, i try to explain my problem as better as i can.

    I have apache 2 installed on a ubuntu 7.04, y have one directory with a .htaccess file that works correctly. For example, if i type in a browser http://localhost/products-my-product.html goes to http://localhost/products.php?url=my-product (for example).

    But i dont want that the url that appears in the brownse change, i want that the url be like http://localhost/products-my-product.html

    Im searching in google, but i dont found anything.

    Suggestions?

    Lot of thanks
     
    chux, Apr 29, 2007 IP
  2. protocol96

    protocol96 Peon

    Messages:
    413
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    0
    #2
    earc hur .htaccess file or httpd.conf for this word ->RewriteEngine on

    and turn on to OFF and please retry again and let us know if that works
     
    protocol96, Apr 29, 2007 IP
  3. chux

    chux Peon

    Messages:
    2
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    if i turn the rewrite engine off doenst work, y get a 404 page. if i turn it on, it works, but in firefox (or any other browser), the url field is converted, and i want that the url looks "friendly". I cant explain it better in english, sorry.

    The page that i have in localhost, if y put online into my hosting (i dont manage that server) the url field in any browser looks friendly.

    If i try into another machine, that have wxp installed with wamp, works fine. I have look into the windows https.conf and i dont see any rule that makes that.

    I have been reading, but the only thing that i have find is the UseCanonicalName rule, but my apache do the same if i turn it on or off, perhaps i put it in a wrong place.

    Thanks for your help, and sorry for my english.
     
    chux, Apr 29, 2007 IP