We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 9710
    • 24 Posts
    Hi,

    I’m trying to create a little db in revo. Therefore I created a snippet which gets some values from a custom table. My problem is that when I place it on /database I have to pass the id of the db entry via POST or GET.

    Could someone tell me how to write a mod_rewrite rule for this specific page so that I can access it more friendly (eg /database/34 instead of /database/?id=34)?


    // just solved it:
    RewriteRule ^database/(.*)$ index.php?q=<id>&id=$1 [QSA,L]