I am trying to set up pagination on one of my EE Structure pages and the GET query string results in a 404 error. I think it has something to do with my .htaccess file but I cant figure it out. Here is my .htaccess file, I'm using the exclude method for removing the index.php from the URL,
RewriteCond $1 !^(images|system|themes|modules|scripts|uploads|css|favicon\.ico|robots\.txt|index\.php|sitemap\.php|sitemap\.xml) [NC]
RewriteRule ^(.*)$ /index.php/$1 [QSA,L]
So if I add some simple query like,
/account/?page=2
I get a 404 error...
Thanks for any help you guys can offer!
I was able to figure this out, not the most elegant option because it needs to be done for every page that you require query strings for...
RewriteCond %{QUERY_STRING} ^page
RewriteCond %{REQUEST_URI} ^/account/$ [NC]
RewriteRule (.*) /index.php?/account/index/&%{QUERY_STRING} [L]
So this means you can use,
/account/?page=2
And then grab the GET query normally using PHP.
Thanks for your contributions guys.