.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

Popular posts from this blog

Detect support for Shoutcast ICY MP3 without navigator.userAgent in Firefox? -

web - SVG not rendering properly in Firefox -

java - JavaFX 2 slider labelFormatter not being used -