The problem is that I am trying to use a get method (or post, doesn't matter to me really but I do like having the information in the URL better than not) but it seems mod_rewrite is preventing that from working, it just changes the URL so no form information is actually passed.
Is there a way around this? Or is there perhaps someone who is willing to give me some help customizing the rewrite rules in htaccess a bit?
I've tried going through tutorials about it but it's so much easier if someone helps.
Thanks!
Comments
Also, there's an option, QSA for mod_rewrite rules that appends the query string. Zenphoto currently does not use it :-( But I thought it worked anyway! I do it with the AJAX (it just submits a GET request with the current URL appended with ?whatever=stuff) so it should work... are you sure you're doing it right?
I'm pretty sure it's working, yeah. Because I wrote the code and it didn't work so I turned off mod_rewrite in the config file and it worked perfectly.
Pretty sure I'm doing it right, I've hardly modified htaccess. Here is my htaccess in case I have screwed something up:
`ErrorDocument 404 /error404.php
RewriteCond %{HTTP_HOST} ^triplemonitorbackgrounds.com
RewriteRule ^(.*)$ http://www.triplemonitorbackgrounds.com/$1 [R=permanent,L]
RewriteEngine On
RewriteBase /
RewriteRule ^admin/?$ zen/admin.php [R,L]
RewriteCond %{REQUEST_FILENAME} -f [NC,OR]
RewriteCond %{REQUEST_FILENAME} -d [NC]
RewriteRule ^.*$ - [R,L]
RewriteRule index.php$ index.php [L,QSA]
RewriteRule ^page/([0-9]+)/?$ index.php?page=$1 [L,QSA]
RewriteRule ^page/([A-Za-z0-9-_]+)/?$ index.php?p=$1 [L,QSA]
RewriteRule ^(.*)/page/([0-9]+)/?$ index.php?album=$1&page=$2 [L,QSA]
RewriteRule ^(.*)/image/(thumb|[0-9]{1,4})/([^/\]+)$ zen/i.php?a=$1&i=$3&s=$2 [L,QSA]
RewriteRule ^(.*)/image/([^/\]+)$ zen/i.php?a=$1&i=$2 [L,QSA]
# Catch-all - everything else gets handled in PHP for compatibility.
RewriteRule ^(.*)/?$ index.php?album=$1 [L,QSA]
`
Thanks for your help
So, maybe you just need to get the URL right, I'm not sure... but it should just append the query string right after the rewritten path... can I see the page that's trying to do this? [Edit: nevermind, I see it... looking now]
`RewriteRule ^([A-Za-z0-9-_]+)/orderby/([0-9]+)/$ index.php?album=$1&orderby=$2 [L,QSA]`
Or something like that anyway
I need to recode the internal rewrite to be more flexible, right now it's essentially hardcoded, so I'm sorry about that.
I just think it would be such a cool feature, for people to be able to filter and sort things live on the album pages, but I rely on Google for hundreds of my visits per day so it isn't really an option for me to turn mod_rewrite off.