Title: Wrong redirect sometimes.
Last modified: August 27, 2019

---

# Wrong redirect sometimes.

 *  Resolved [vberegovoy](https://wordpress.org/support/users/vberegovoy/)
 * (@vberegovoy)
 * [6 years, 9 months ago](https://wordpress.org/support/topic/wrong-redirect-sometimes/)
 * I have also WPML plugin installed, with lang urls like “/en”, “/de”. Issue is,
   if you make redirect from something like /en/test to /, you will be redirected
   from /en/test to /en// and then to en/, but not to site root url.
 * I fixed it by changing home_url() to site_url(), on 251 row. Is it right to use
   home_url instead of site_url()?
 * Maybe it could be good to change home_url to site_url?
    -  This topic was modified 6 years, 9 months ago by [vberegovoy](https://wordpress.org/support/users/vberegovoy/).

The topic ‘Wrong redirect sometimes.’ is closed to new replies.

 * ![](https://ps.w.org/simple-301-redirects/assets/icon-256x256.jpg?rev=2783827)
 * [Simple 301 Redirects By BetterLinks - Easy WordPress Redirect Manager for Redirects, 404 Error Log & More](https://wordpress.org/plugins/simple-301-redirects/)
 * [Support Threads](https://wordpress.org/support/plugin/simple-301-redirects/)
 * [Active Topics](https://wordpress.org/support/plugin/simple-301-redirects/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/simple-301-redirects/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/simple-301-redirects/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [vberegovoy](https://wordpress.org/support/users/vberegovoy/)
 * Last activity: [6 years, 9 months ago](https://wordpress.org/support/topic/wrong-redirect-sometimes/)
 * Status: resolved