Hi all!
I have the link below which I created to test the functionality of the script I wrote. But because the rest of my site is setup with friendly or extensionless URLs, I want to do the same with this one:
{
echo "<a href='meta-paginated.php?page=$i'>$i</a> ";
}
This is the current rewrite rule I have in my .htaccess which works fine for normal links:
RewriteRule ^(([^/]+/)*[^/.]+)$ index.php?page=$1 [L]
So the question is,because I cant work it out.
What would the regex be for this scenario?
How would I need to change the link to work with the new rewrite rule and still select ?page 1,2,3,4,5, etc etc. The page ID is always a number?
Many thanks in advance. If you are kind enough to provide the solution would you be able to explain how you get there so I can learn and pass on my knowledge to other forum users in the future?