phpBBSEO / usu

Ultimate SEO URL
31 stars 25 forks source link

Unnessesary 301 redirects (Solution as Gist included) #97

Open cYbercOsmOnauT opened 9 years ago

cYbercOsmOnauT commented 9 years ago

Inside the core.php is a expected_url method which makes the script do unneeded 301 redirects just because it gives back the same url with the same arguments just in a different order.

For example viewforum.php?uid=1654&f=2&unwatch=forum&start=0&hash=4cc0bdbf&_=1434724982500 got redirected to viewforum.php?hash=4cc0bdbf&f=2&unwatch=forum&uid=1654&_=1434724982500&start=0

I didn't fork your repo. So here is a gist for the solution :)

https://gist.github.com/cYbercOsmOnauT/fe96f224a3c4b0331a09