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:
[code=php]{
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:
[code]RewriteRule ^(([^/]+/)*[^/.]+)$ index.php?page=$1 [L]
So the question is,because I cant work it out.
1.
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:
Okay,
[B]This is the link in a raw format:
meta-paginated.php?page=$i
[B]This is what the URL looks like:
[url]http://test.com/meta-paginated?page=2
[B]This is the rule I think it should be but not completely sure:
RewriteRule ^meta-paginated/(.*)/(.
I am also not sure of the LINK construct that is why I havent listed it here.