Problem with GET variables in the url

Feed 5 posts, 1 voices

Avatar
41 posts

Hi there, I just changed de comment system on my website. Instead of using the Frog’s comment, I’m using Disqus (www.disqus.com). The problem is that with Disqus, when I send a new comment, it redirects me to the same page but adding “?dsq=10789748” (I guess that’s the comment ID in the Disqus database) to the address. For example the page is in http://example.com/article.html, if I enter a new comment it redirects me to http://example.com/article.html?dsq=10789748 and that gives me a Page not Found error.

By the way, I’m using lighttpd with lazyfrog’s rules posted here. Does anyone know what could it be?

Cheers

 
Avatar
41 posts

Ok, I solved it! It was a problem with the GET variables on the lighttpd url.rewrite rules.

If someone else is using lighttpd as webserver, here are the rewrite rules for lighttpd for accepting GET values on the url:

url.rewrite-once = (
"^/(frog|public|images|admin/images|admin/javascripts|admin/stylesheets|admin/themes|cache)/(.*)$" => "/$1/$2",
"^/admin/([^?]*)$" => "/admin/index.php?$1",
"^/([^?]*)$" => "/index.php?PAGE=$1",
"^/([^\?]+)(\?(.*))$" => "/index.php?PAGE=$1&$2"
)

Edit: It would be nice to add sample rules for lighttpd in Frog’s documentation as it also includes the .htaccess for apache.

Edit2: Nope, now I broke the admin pages section.