.htaccess - rewrite rule, no clue -
i redirect
pins?board=10000011
to
view_photos.php?album=10000011
10000011
being id dynamic, therefore no clue in title of question, not know how grab , use inside rewrite rule.
have tried with:
rewriterule ^([a-za-z-0-9-_.]+)/pins?board= $1/view_photos.php?album=$2
it seems don't know i'm doing i'm asking help.
you can't match against query string in rewrite rule. need use %{query_string}
var in rewrite condition:
rewritecond %{query_string} ^board=(.*)$ rewriterule ^/?([a-za-z-0-9-_.]+)/pins$ /$1/view_photos.php?album=%1 [l,r=301]
Comments
Post a Comment