• Hi,

    I seem to remember your plugin was capable of performing redirects using permalink tags.

    To clarify, I want to redirect from this:

    %day%-%monthnum%-%year%-%postname%/

    to
    %postname%/

    but the plugin does not seem to work with permalink tags any longer.

    If that is the case, could you please let me know, so that I can look for another solution? Or is it possible to get an older version of the plugin that still does that? I need to have this type of redirection for close to 10,000 posts, so a manual solution is really not an option.

    Thank you in advance.

    https://wordpress.org/plugins/simple-301-redirects/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter AncaIO

    (@ancaio)

    I think the problem comes from about the installation being in a subdirectory?

    So from

    mysite.com/subdir/%day%-%monthnum%-%year%-%postname%/

    to

    mysite.com/subdir/%postname%/

    does not work.

    Yet on another site, installed and served from the main directory it appears to work fine.

    Is this a limitation of the plugin?

    Hi AncalO,

    How do you install into the main directory? What do you mean by main directory? I wanted to redirect using permalink tags as well but can’t seems to work.

    Thread Starter AncaIO

    (@ancaio)

    Hi,

    WordPress can be installed in several ways. I have tried the plugin on two kinds of installations: the root of the website (yourdomain.com/ for instance) and in a sub-directory in the root of the site (yourdomain.com/something/).

    I developed a site on a test environment (not local machine installation, just a domain where I develop sites), where WordPress was installed in a sub-directory and the plugin did not work.

    I then tested on another site (same server), where WordPress was installed in the root of the site and it worked.

    I then again tried to use it in my new project (the one I was developing on a sub-directory WordPress installation), but this time on the live version of the site, where WP was installed in the root of the site and a different server entirely, and again it did not work.

    Without input from the developer of the plugin, I did not have the time to figure out why the behavior of the plugin was so inconsistent… It could be the server setup, my own code, or something else entirely that prevented the plugin from working correctly for me.

    As I said in my first post, I needed to redirect from

    %day%-%monthnum%-%year%-%postname%/

    to

    %postname%/

    To solve my problem I used the plugin Safe Redirect Manager, with a regex redirect rule:

    /([0-9]{2})-([0-9]{2})-([0-9]{4})-([^/]+)

    to

    http://www.thedomain.com/4$
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Redirection using permalink tags’ is closed to new replies.