Title: [Plugin: 404 Redirection] Plugin causes redirect loop (Solution)
Last modified: August 20, 2016

---

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

 *  [sdaveCL](https://wordpress.org/support/users/sdavecl/)
 * (@sdavecl)
 * [13 years, 8 months ago](https://wordpress.org/support/topic/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/](http://wordpress.org/extend/plugins/404-redirection/)

Viewing 1 replies (of 1 total)

 *  Thread Starter [sdaveCL](https://wordpress.org/support/users/sdavecl/)
 * (@sdavecl)
 * [13 years, 6 months ago](https://wordpress.org/support/topic/plugin-404-redirection-plugin-causes-redirect-loop-solution/#post-3030593)
 * 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.

 * ![](https://s.w.org/plugins/geopattern-icon/404-redirection.svg)
 * [404 Redirection](https://wordpress.org/plugins/404-redirection/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/404-redirection/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/404-redirection/)
 * [Active Topics](https://wordpress.org/support/plugin/404-redirection/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/404-redirection/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/404-redirection/reviews/)

 * 1 reply
 * 1 participant
 * Last reply from: [sdaveCL](https://wordpress.org/support/users/sdavecl/)
 * Last activity: [13 years, 6 months ago](https://wordpress.org/support/topic/plugin-404-redirection-plugin-causes-redirect-loop-solution/#post-3030593)
 * Status: not resolved