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. 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/(*.) 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. 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) Link to comment https://forums.phpfreaks.com/topic/239629-mod-rewrite/#findComment-1230979 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.