1281 posts
  • 7 Years of Membership
  • Affiliate Level 4
  • Author Level 6
  • Blog Interview
+8 more
rondog
says

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?

27 posts
  • Collector Level 1
  • 5 Years of Membership
  • Exclusive Author
  • Poland
Pranick
says
RewriteRule ^([A-Za-z0-9-]+)?/([0-9]+)$ index.php?do=$1&id=$2 [L]
1281 posts
  • 7 Years of Membership
  • Affiliate Level 4
  • Author Level 6
  • Blog Interview
+8 more
rondog
says

awesome man that worked! thanks

by
by
by
by
by
by