1277 posts
  • Has been part of the Envato Community for over 6 years
  • Has referred 100+ members
  • Has sold $40,000+ on Envato Market
  • Interviewed on an Envato blog
+7 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
  • Has been part of the Envato Community for over 5 years
  • Sells items exclusively on Envato Market
  • Located in Europe
Pranick says
RewriteRule ^([A-Za-z0-9-]+)?/([0-9]+)$ index.php?do=$1&id=$2 [L]
1277 posts
  • Has been part of the Envato Community for over 6 years
  • Has referred 100+ members
  • Has sold $40,000+ on Envato Market
  • Interviewed on an Envato blog
+7 more
rondog says

awesome man that worked! thanks

by
by
by
by
by
by