gary80 Posted June 17, 2011 Share Posted June 17, 2011 hey, trying to use mod rewrite, if i use RewriteRule projects/(.) index.php?view=detail&name=$1 the $1 part only picks up one character, how do i get it to pick up multiple characters of unknown length? thanks. Quote Link to comment https://forums.phpfreaks.com/topic/239629-mod-rewrite/ Share on other sites More sharing options...
trq Posted June 17, 2011 Share Posted June 17, 2011 projects/(*.) Quote Link to comment https://forums.phpfreaks.com/topic/239629-mod-rewrite/#findComment-1230976 Share on other sites More sharing options...
cags Posted June 17, 2011 Share Posted June 17, 2011 I assume thorpe meant... project/(.*) But you might want to use + rather than *, otherwise you'll end up with project/ going to a page with an empty name. Quote Link to comment https://forums.phpfreaks.com/topic/239629-mod-rewrite/#findComment-1230978 Share on other sites More sharing options...
gary80 Posted June 17, 2011 Author Share Posted June 17, 2011 FML! I was trying to alter the $1 part, thanks thorpe (yeah he did) Quote Link to comment https://forums.phpfreaks.com/topic/239629-mod-rewrite/#findComment-1230979 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.