BABEL MODULE - Solved Problem with IIS7 (403 error)
Posted: Sat Jul 17, 2010 4:53 pm
Hi. I was installing Babel Module on IIS7 and i got error on redirect URL. the error was 403 FORBIDDEN url (redirect.php) with current credential.
AS i usually develop with ASP.NET and IIS (w/wo php) i immediately understood the problem.
Simply IIS block URL that have UNENCODED querystring... and redirect.php is ever called with redirect.php?newurl=http://.....
so the solution is to add 2 simply instruction in action.menu.php and redirect.php
this is the modification to apply. (i would edit this in svn but i'm very new to CMSMS project and i don't know yet the real and good procedure - yes i already read the relative topic)
edit redirect.php and replace LINE 7 with this:
edit action.menu.php and replace LINE 30 with:
HOPE THIS WILL HELP ALL!
AS i usually develop with ASP.NET and IIS (w/wo php) i immediately understood the problem.
Simply IIS block URL that have UNENCODED querystring... and redirect.php is ever called with redirect.php?newurl=http://.....
so the solution is to add 2 simply instruction in action.menu.php and redirect.php
this is the modification to apply. (i would edit this in svn but i'm very new to CMSMS project and i don't know yet the real and good procedure - yes i already read the relative topic)
edit redirect.php and replace LINE 7 with this:
Code: Select all
header("location: ".urldecode($_GET["newurl"]));
Code: Select all
if($item->url && $use_cookies) $item->url = $gCms->config['root_url'].'/modules/babel/redirect.php?newlang='.$item->code.'&newurl='.urlencode($item->url);