1277 posts
- Author was Featured
- Bought between 50 and 99 items
- Contributed a Tutorial to a Tuts+ Site
- Exclusive Author
- Has been a member for 5-6 years
- Interviewed on the Envato Notes blog
- Item was Featured
- Referred between 100 and 199 users
- Repeatedly Helped protect Envato Marketplaces against copyright violations
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?
Pranick
says
RewriteRule ^([A-Za-z0-9-]+)?/([0-9]+)$ index.php?do=$1&id=$2 [L]
1277 posts
- Author was Featured
- Bought between 50 and 99 items
- Contributed a Tutorial to a Tuts+ Site
- Exclusive Author
- Has been a member for 5-6 years
- Interviewed on the Envato Notes blog
- Item was Featured
- Referred between 100 and 199 users
- Repeatedly Helped protect Envato Marketplaces against copyright violations
rondog
says
awesome man that worked! thanks
