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?
rewrite is complex . I am always use the default setting . First step is to check if the .htaccess file works. Then check the other elements affect the rewrite affects.
From what I know, it is never possible on a Windows Server. That is what is happening with my hosting company currently.