i have following url structure
http://www.mydomain.com/vpn-offers-p3.html
this page should be redirect to
http://www.mydomain.com/vpn-offers.php?st=60&page=3
here st is offset for the pagination and will be varying with page, while page is the current page number
i am trying to generate the url in this way
<? if($st<$total-$rw){?><a href="<?
echo "http://www.mydomain.com/vpn-providers-p";?><? echo$offset=$st+$rw."-".$pagenext=$page+1 ;?> class="nextprev">Next</a>
note that it will show offset value too in link
i have established following 'htaccess' rule so for
R`ewriteRule ^vpn-providers-p([^-]*)\.html$ /vpn-providers.php?st=(.*)&page=$1 [L]`
if you pay a little attention, you will see that first url is not passing value of offset
can somebody tell me how i can hide offset variable in URL? while i need the page to be redirected corectly?