ArnisR Posted April 17, 2010 Report Share Posted April 17, 2010 Kā ar mod rewrite varētu paveikt tā, lai, ielādējot šo saiti: lapa.lv/index.php?cat=123&id=456 URL logā parādītos: lapa.lv/category/123/post/456 $_GET['cat'] un $_GET['id'] ir mainīgie un to vērtibas ir naturālie skaitļi. Quote Link to comment Share on other sites More sharing options...
marcis Posted April 17, 2010 Report Share Posted April 17, 2010 RewriteRule ^category\/(\d+)\/post\/(\d)$ index.php?cat=$1&id=$2 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.