WordPress.org

Ready to get started?Download WordPress

Forums

Quick Page/Post Redirect Plugin
[resolved] www. links do not redirect (9 posts)

  1. aschmidt808
    Member
    Posted 1 year ago #

    I have been using the plugin for some time and I find it very useful. However I have recently noticed that it only redirects the non-www links. Currently www links result in a 404 error.

    I have my site link preference set to non-www in webmaster tools. I had it set to no preference for quite some time before this - although I do not know if this is related or how long these 404 errors have been going on.

    Any help would be greatly appreciated!

    http://wordpress.org/extend/plugins/quick-pagepost-redirect-plugin/

  2. prophecy2040
    Member
    Plugin Author

    Posted 1 year ago #

    Since your site is set to non www site URL, WordPress is actually redirecting the www links to non www first. Then when the plugin tries to match the URL it does not match as it has www in it. So in order for the plugin to work, you need to follow the same WordPress logic.

    Remove the www in the redirects you have set up, and then they should work.

    Regards,
    Don

  3. aschmidt808
    Member
    Posted 1 year ago #

    Thanks for the quick response!

    I am a little confused about your answer. I am not sure I was 100% clear in my description of my issue.

    All my redirects in the plugin currently feature non-www URLs. Site wide both www and non www URLs work. Only the redirects from the plugin dont function properly with the www URLs. Should I add www to the redirects? [EDIT: just tried this and it did not work :( ]

    Thanks!

  4. aschmidt808
    Member
    Posted 1 year ago #

    I also tried changing the redirect from the non-www version of the URL to a relative path and the it didn't change anything.

  5. prophecy2040
    Member
    Plugin Author

    Posted 1 year ago #

    Can you give me a link to a page that is supposed to redirect that does not? and let me know where it is supposed to redirect to?

    Also, are you using the latest WP and latest plugin versions?

    I'll need to see what your pages are returning to the headers to see what is happening.

    Regards,
    Don

  6. aschmidt808
    Member
    Posted 1 year ago #

    Sure,

    The old page that I want to redirect from is:
    http://fertileweb.com/sharing-risk.html - Works
    http://www.fertileweb.com/sharing-risk.html - Doesn't redirect

    I want them both to redirect to this page

    This effects all my redirects but this is one that is getting more 404 results.

    Thanks!

  7. aschmidt808
    Member
    Posted 1 year ago #

    I am also using the latest versions of both WP and the plugin.

  8. prophecy2040
    Member
    Plugin Author

    Posted 1 year ago #

    Do you have some special setup in your htaccess file to allow both the www and non www format or are you letting WordPress handle that (in the settings/general/WordPress Address (URL) option)?

  9. aschmidt808
    Member
    Posted 1 year ago #

    No, there isnt anything in the htaccess file. Right now the general WP settings are set with the non-www version. I will check with my hosting provider to see if they have something set up server side for the redirect.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic