Support » Plugin: 404 Redirection » [Plugin: 404 Redirection] Plugin causes redirect loop (Solution)

  • I have WordPress files installed to their own folder, rather than residing at the base level public_html directory on my server.

    With your plugin, 404 codes go into a redirect loop.

    This is because your plugin calls for the directory of the WordPress install folder, not the base url.

    The fix is simple.

    In the plugin files for 404 Redirection, line 35 of index.php must be changed from this:

    wp_redirect(get_bloginfo('wpurl'),301);exit;

    to THIS:

    wp_redirect(get_bloginfo('url'),301);exit;

    http://wordpress.org/extend/plugins/404-redirection/

Viewing 1 replies (of 1 total)
  • I see this still hasn’t been addressed.

    Example:

    WordPress directory: example.com/wordpress
    Actual blog web address: example.com

    Plugin redirects 404s to install folder, not blog address.

    I realize not everybody installs WordPress in a sub-directory, but could you please mention how to fix this in the FAQ?

    Perhaps it is better to change ‘wpurl’ to ‘siteurl’ in the code rather than just ‘url’ as I suggested above.

Viewing 1 replies (of 1 total)
  • The topic ‘[Plugin: 404 Redirection] Plugin causes redirect loop (Solution)’ is closed to new replies.