I need a .htaccess expression to use the second get variable or get the get variable by name. Currently my mod_rewrite alters the URL to remove index.php filename and alter the pageName GET variable so that it just looks like a filename.
I now need a second GET variable, but currently the way it is, it does not even recognise get variables after the first rewrite, so I would like the mod_rewrite to handle the second var which will be 'blogpage=1'(1 will be the blogpage that you are currently on) so that it will look like so:
*********.co.uk/PageName/2
instead of this
*********.co.uk/PageName?blogpage=2
As this does not currently work, the PHP script simply thinks that the var is not present and returns a NULL value.
This is my current mod_rewrite conditions:
RewriteCond %{REQUEST_fileNAME} !-d
RewriteCond %{REQUEST_fileNAME} !-f
RewriteRule ^([^/\.]+)/?$ index.php?pageName=$1