Support » Plugins and Hacks » Newsletter » [Plugin: Newsletter] Problem on IIS with Permalink fix
5 years, 6 months ago
Hello, I’ve found that the plugin wont send confirmation emails or forward to the correct page when signing up when I have permalinks turned on. Works fine with the permalinks turned off.
I’m using this 404 fix, because we’re on a windows IIS server, which I’m assuming is the culprit. Hoping someone can help me get this working.
$qs = $_SERVER['QUERY_STRING'];
$pos = strrpos($qs, '://');
$pos = strpos($qs, '/', $pos + 4);
$_SERVER['REQUEST_URI'] = substr($qs, $pos);
$_SERVER['PATH_INFO'] = $_SERVER['REQUEST_URI'];