Title: Plugin not redirecting
Last modified: January 9, 2022

---

# Plugin not redirecting

 *  Resolved [jakobjelling](https://wordpress.org/support/users/jakobjelling/)
 * (@jakobjelling)
 * [4 years, 5 months ago](https://wordpress.org/support/topic/plugin-not-redirecting-4/)
 * I hope you can help me out.
 * I’ve set up the 301 redirect shown below but I’m just being sent to this URL 
   with no content:
    [http://www.oplevspanien.dk/katalonien/tarragona.php](http://www.oplevspanien.dk/katalonien/tarragona.php)
 * Old URL
    [http://www.oplevspanien.dk/katalonien/tarragona.php](http://www.oplevspanien.dk/katalonien/tarragona.php)
 * NEW URL
    [https://oplevspanien.dk/tarragona/](https://oplevspanien.dk/tarragona/)
 * NB: The same thing happened when I tried to 301 redirecting using htaccess. Currently
   I have removed that code from the htaccess file.
 * Thanks,
    Jakob
    -  This topic was modified 4 years, 5 months ago by [jakobjelling](https://wordpress.org/support/users/jakobjelling/).
    -  This topic was modified 4 years, 5 months ago by [jakobjelling](https://wordpress.org/support/users/jakobjelling/).
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fplugin-not-redirecting-4%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 7 replies - 1 through 7 (of 7 total)

 *  Plugin Author [WebFactory](https://wordpress.org/support/users/webfactory/)
 * (@webfactory)
 * [4 years, 5 months ago](https://wordpress.org/support/topic/plugin-not-redirecting-4/#post-15232550)
 * Hi Jakob, I had a look and really don’t see a reason why it wouldn’t work. But
   I can confirm that the mentioned URL is not redirected.
 * Can you create some other redirect rule and confirm if it works? So we can rule
   out if this URL is problematic or all of them.
 *  Thread Starter [jakobjelling](https://wordpress.org/support/users/jakobjelling/)
 * (@jakobjelling)
 * [4 years, 5 months ago](https://wordpress.org/support/topic/plugin-not-redirecting-4/#post-15245320)
 * Hi there,
 * Thank you for reaching out to me. I’ve now created another redirect rule.
 * OLD URL
    [http://oplevspanien.dk/castilla-y-leon/villadolid.php](http://oplevspanien.dk/castilla-y-leon/villadolid.php)
 * NEW URL
    [https://oplevspanien.dk/villadolid/](https://oplevspanien.dk/villadolid/)
 * Still not working though. Could it be http vs https that is playing tricks with
   me?
 * Thanks
 *  Plugin Author [WebFactory](https://wordpress.org/support/users/webfactory/)
 * (@webfactory)
 * [4 years, 5 months ago](https://wordpress.org/support/topic/plugin-not-redirecting-4/#post-15245410)
 * Your WP is currently configured to work on HTTPS so let’s verify that HTTP vs
   HTTPS is not messing with you. Try doing a redirect from
    [https://oplevspanien.dk/castilla-y-leon/villadolid.php](https://oplevspanien.dk/castilla-y-leon/villadolid.php)
   to [https://oplevspanien.dk/villadolid/](https://oplevspanien.dk/villadolid/)
 *  Thread Starter [jakobjelling](https://wordpress.org/support/users/jakobjelling/)
 * (@jakobjelling)
 * [4 years, 5 months ago](https://wordpress.org/support/topic/plugin-not-redirecting-4/#post-15246474)
 * I’ve now setup that redirect and it works.
 * But I don’t see that solving the issue as my previous setup was without WordPress
   and https. Meaning old URLs indexed by Google and linked to from other websites
   will still return a page on oplevspanien.dk without content?
 *  Plugin Author [Alexandru Tapuleasa](https://wordpress.org/support/users/talextech/)
 * (@talextech)
 * [4 years, 5 months ago](https://wordpress.org/support/topic/plugin-not-redirecting-4/#post-15246491)
 * Hi,
 * Can you give us an example of a URL that is not working for which you have a 
   redirect set?
 *  Thread Starter [jakobjelling](https://wordpress.org/support/users/jakobjelling/)
 * (@jakobjelling)
 * [4 years, 5 months ago](https://wordpress.org/support/topic/plugin-not-redirecting-4/#post-15246703)
 * Hi Alexandru,
 * Sure – it’s in my initial post. It setup like this:
 * Old URL
    [http://www.oplevspanien.dk/katalonien/tarragona.php](http://www.oplevspanien.dk/katalonien/tarragona.php)
 * NEW URL
    [https://oplevspanien.dk/tarragona/](https://oplevspanien.dk/tarragona/)
 * Thanks,
    Jakob
 *  Plugin Author [WebFactory](https://wordpress.org/support/users/webfactory/)
 * (@webfactory)
 * [4 years, 5 months ago](https://wordpress.org/support/topic/plugin-not-redirecting-4/#post-15247698)
 * Morning,
 * OK so HTTPS -> HTTPS redirect works, that’s good 👍
    There could be a lot of 
   things wrong that are causing the redirect not to work properly so I’d suggest
   the following (fastest) fix. Put in an htaccess rule that redirects HTTP -> HTTPS,
   and then write all your redirects as HTTPS -> HTTPS in the plugin.
 * Depending on your hosting setup the htaccess code might be a bit different but
   this should work. Make sure it’s on top of the file:
 *     ```
       RewriteEngine On
       RewriteCond %{HTTPS} off
       RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
       ```
   
 * If you have a minute, please leave a review. It’s what keeps support going. Thank
   you 🙏 [https://wordpress.org/support/plugin/eps-301-redirects/reviews/#new-post](https://wordpress.org/support/plugin/eps-301-redirects/reviews/#new-post)

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘Plugin not redirecting’ is closed to new replies.

 * ![](https://ps.w.org/eps-301-redirects/assets/icon-256x256.png?rev=2413221)
 * [301 Redirects - Redirect Manager](https://wordpress.org/plugins/eps-301-redirects/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/eps-301-redirects/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/eps-301-redirects/)
 * [Active Topics](https://wordpress.org/support/plugin/eps-301-redirects/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/eps-301-redirects/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/eps-301-redirects/reviews/)

## Tags

 * [301 redirect](https://wordpress.org/support/topic-tag/301-redirect/)

 * 7 replies
 * 3 participants
 * Last reply from: [WebFactory](https://wordpress.org/support/users/webfactory/)
 * Last activity: [4 years, 5 months ago](https://wordpress.org/support/topic/plugin-not-redirecting-4/#post-15247698)
 * Status: resolved