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?
Just to add:
This is the link in a raw format:
This is what the URL looks like:
This is the rule I think it should be but not completely sure:
RewriteRule meta-paginated/(.)/(.)/$ /meta-paginated.php?$1=$2
I am also not sure of the LINK construct that is why I havent listed it here.