Support » Plugin: Simple Website Redirect » Support Redirects without www

  • Resolved ptstockley

    (@ptstockley)


    Hello,

    I would like to be able to type in a Redirect URL that does not have “www” in the url. e.g. https://domain.com.

    When I click Save Settings, any address without www is emptied from the textbox.

    Thank you for any help you can offer!

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Contributor Micah Wood

    (@wpscholar)

    @ptstockley

    I’m running the plugin to redirect to a site without www in the domain and it works just fine.

    There is a condition in the plugin that will prevent you from redirecting to the same domain as your current website. What site is the plugin installed on and where are you trying to redirect to?

    I understand that out of the best intentions you include a condition to prevent redirecting to the same domain to avoid any accidental catastrophic forwarding feedback loop.

    However, it sucks to be me, because the domain I wish to redirect is http://tobaron.com, and I wish to redirect it to https://web.archive.org/web/20190203015854/tobaron.com/

    It appears to accidentally trigger your accident prevention safety mechanism.

    • This reply was modified 6 months, 2 weeks ago by leifharmsen.
    Plugin Contributor Micah Wood

    (@wpscholar)

    @leifharmsen Sorry about that. I’m at a conference this weekend, but will take a look next chance I get. Thanks for letting me know!

    Plugin Contributor Micah Wood

    (@wpscholar)

    @leifharmsen

    So the code only compares the hostname, which ends up comparing tobaron.com to web.archive.org. In my testing, everything works as expected. Are you running into an issue where when you go to save your redirect URL it just clears out the field? That is what would happen if you put in a URL that would cause an infinite loop.

    Or are you running into another issue?

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Support Redirects without www’ is closed to new replies.