PHP-based rewrite engine

Discussion in 'PHP' started by ant_des, Aug 2, 2008.

  1. #1
    Exist a php-based rewrite engine.
    Seems that wordpress implements a similar thing.
    I'd like to know if exist a free rewrite engine for rewrite links and URL in search engine like way?


    Excuse for my english, but I'm italian
     
    ant_des, Aug 2, 2008 IP
  2. atlantaazfinest

    atlantaazfinest Peon

    Messages:
    389
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Im not sure if i understood you but u but i think your talking about the apache rewrite module....

    what wordpress does is WRITE to .htaccess with the rewrite values that the users wants.
     
    atlantaazfinest, Aug 2, 2008 IP
  3. Jasber

    Jasber Peon

    Messages:
    28
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    atlantaazfinest is correct, you probably want .htaccess rules.

    Here are some links I found relating to what you want:
    http://corz.org/serv/tricks/htaccess2.php
    http://www.yourhtmlsource.com/sitemanagement/urlrewriting.html
    http://httpd.apache.org/docs/1.3/mod/mod_rewrite.html
     
    Jasber, Aug 2, 2008 IP
  4. ant_des

    ant_des Active Member

    Messages:
    10
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    86
    #4
    THX for your replies.
    I have already studied htaccess file, rewrite rules and regular expression.
    But I want a script that totally control my rewrite rules, so I can insert rules not in htacces, but calling this script.
    This means that this script would have to change automatically change links and URL in a page to respect specific rewrite rule.
    Wordpress seems uses a htaccess manager for rewriting rules and have an internal rewrite engine, but the code is specific for wordpress, not flexilbe and adaptable.
     
    ant_des, Aug 3, 2008 IP
  5. david_t

    david_t Member

    Messages:
    74
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    45
    #5
    The best way of doing it would probably be writing your own htaccess manager with the functionality you want/need. Because the speed of mod_rewrite is hard to beat with any custom php-script.
     
    david_t, Aug 3, 2008 IP