rondog Posted April 27, 2010 Share Posted April 27, 2010 I have a rule that works ok RewriteEngine ON RewriteRule ^([A-Za-z0-9-]+)?$ index.php?do=$1 [L] That takes something like /wwwroot/clip-bin and interprets it as index.php?do=clip-bin Now my question is I need a second rule. In the clip bin, I have a list of clips that I want clickable..the url of them is /wwwroot/clip/# where # is simply a number. I dont know where to go from here. Basically I need it to interpret as index.php?do=clip&id=# ....can anyone help with this? Quote Link to comment https://forums.phpfreaks.com/topic/199945-help-with-a-rule-for-mod-rewite/ Share on other sites More sharing options...
rondog Posted April 27, 2010 Author Share Posted April 27, 2010 oops I didnt see the mod rewrite child board Quote Link to comment https://forums.phpfreaks.com/topic/199945-help-with-a-rule-for-mod-rewite/#findComment-1049441 Share on other sites More sharing options...
rondog Posted April 27, 2010 Author Share Posted April 27, 2010 got it: RewriteRule ^([A-Za-z0-9-]+)?/([0-9]+)$ index.php?do=$1&id=$2 [L] Quote Link to comment https://forums.phpfreaks.com/topic/199945-help-with-a-rule-for-mod-rewite/#findComment-1049507 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.