- Impact
- 9
I am trying to get variables from URLs, rewritten by htaccess and which are passed on using GET.
At the moment I have:
Which is getting me a 404 error page when I access eating-out.php.. meaning the page isn't found.
However, if I use this:
And try and access eating-out.php?page=2 it won't work.. the value of $_GET['page'] is still nothing.
Any ideas?
At the moment I have:
PHP:
Options +FollowSymLinks
RewriteEngine On
RewriteRule ^eating-out.php?sort=(.+)&page=(.*)$ dev1.php?cat=1&sort=$1&page=$2
Which is getting me a 404 error page when I access eating-out.php.. meaning the page isn't found.
However, if I use this:
PHP:
Options +FollowSymLinks
RewriteEngine On
RewriteRule ^eating-out.php dev1.php?cat=1
And try and access eating-out.php?page=2 it won't work.. the value of $_GET['page'] is still nothing.
Any ideas?