I need expert help with .htaccess mod_rewrite and server fine tuning ... I pay you!

Discussion in 'Apache' started by Jona, Sep 26, 2011.

  1. #1
    I am changing scripts that runs my site, hense my URLs also changed a little.

    I was successful in keeping the records id and some other stuff in the new URL,
    hoping it would make the url rewriting a little easier.

    This is the old url
    http://www.mydomain.com/fl/city-miami/company-555772-106th-street-shell-car-center.html
    Code (markup):
    and this is the new url to same page
    http://www.mydomain.com/business/index/555772/fl/miami/106th-street-shell-car-center
    Code (markup):
    I probably also need some fine tuning of my server to make sure so it runs as fast and effective as possible, both apache and probably mysql also ...

    I can pay $5 to the FIRST one who solve the URL rewrite thing, and $10 to the one looking over my server if okay with you ... or you let me know how much you want ...
    Payment via Paypal.

    EDIT: Now I played with it for a while and so far the best I can come up with is

    RewriteRule ^([A-Za-z]+)/city-([A-Za-z]+)/company-([0-9]+)-([A-Za-z]+)\.html$ http://www.yusap.com/business/index/$3/$1/$2/$4 [R=302,NC]
    Code (markup):
    But still, it doesn't work ...
     
    Last edited: Sep 26, 2011
    Jona, Sep 26, 2011 IP
  2. kipper777

    kipper777 Peon

    Messages:
    5
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Doesn't look like anyone answers question here. Did you ever get an answer?
     
    kipper777, Sep 26, 2011 IP
  3. Jona

    Jona Well-Known Member

    Messages:
    319
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    110
    #3
    Nothing yet :( So I keep on struggling trying to get it done myself ...
     
    Jona, Sep 26, 2011 IP
  4. zacharooni

    zacharooni Well-Known Member

    Messages:
    346
    Likes Received:
    20
    Best Answers:
    4
    Trophy Points:
    120
    #4
    Try:

    RewriteRule ^/([A-Za-z]+)/city-([A-Za-z]+)/company-([0-9]+)-([A-Za-z]+)\.html$ http://www.yusap.com/business/index/$3/$1/$2/$4 [R=301,NC,L]
     
    zacharooni, Sep 27, 2011 IP
  5. Jona

    Jona Well-Known Member

    Messages:
    319
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    110
    #5
    Sorry, I get a 404 error - Any other suggestion, please :)
     
    Jona, Sep 27, 2011 IP
  6. Jona

    Jona Well-Known Member

    Messages:
    319
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    110
    #6
    So far nothing is working, so I close this offer now and try my luck somewhere else :(
     
    Jona, Oct 1, 2011 IP