Hello,
I use a gallery 2 script and I tried my best using help on the site to rewrite ?g2_page=1
Here is what I wanted to do:
www.domain.com/wallpapers/?g2_page=1
it should redirect to www.domain.com/wallpapers/
www.domain.com/wallpapers/nature/?g2_page=1
it should redirect to www.domain.com/wallpapers/nature/
BTW, it should not redirect pages with subsequent numbers like ?g2_page=2 or ?g2_page=3 etc etc
I tried with the following -
Rewriterule ^([^/]*)/+?g2_page1$ /wallpapers/$1/$2/ [R=301,L]
Rewriterule ^([^/]*)/+([^/]*)/+?g2_page1$ /wallpapers/$1/$2/$3-$4 [R=301,L]
It fails where am I going wrong?