[Plugin: Protected Site] Double folder name
-
With my blog setup as
the redirect was calculating the URL as
https://hostname/blogname/blogname/index.php
I had to change the php code to the following for it to work at my site:
$path = parse_url(get_bloginfo('url'),PHP_URL_SCHEME) . '://' . parse_url(get_bloginfo('url'),PHP_URL_HOST).$_SERVER['PHP_SELF'];
that line is located here:
<p><strong>Sorry!</strong> You must <a href="<?php bloginfo('url'); ?>/wp-login.php?redirect_to=<?php $path = parse_url(get_bloginfo('url'),PHP_URL_SCHEME) . '://'.parse_url(get_bloginfo('url'),PHP_URL_HOST) . $_SERVER['PHP_SELF']; echo $path; ?>&reauth=1">log in</a> to view this page.</p>
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘[Plugin: Protected Site] Double folder name’ is closed to new replies.