Forum Replies Created

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter pie0o

    (@pie0o)

    Yeah I switched them off and am using a different plugin for now.

    Forum: Fixing WordPress
    In reply to: Redirect help
    Thread Starter pie0o

    (@pie0o)

    Thank you so much for your help and your patience. Much appreciated!

    The thing I now need to consider is that this form of permalink is not really that useful, as it contains no additional information for search engines and such, it’s just prettier.

    • This reply was modified 7 years, 1 month ago by pie0o.
    Forum: Fixing WordPress
    In reply to: Redirect help
    Thread Starter pie0o

    (@pie0o)

    Yes, sorry for the bump. For some reason your response earlier did not load for me this morning.

    Thank you for clarifying. So it can’t be done.

    So I either have to create a redirect for every single link individually in a plugin like Redirection.

    Or could I do this with a regexp, just lose the index.php and the post_id?

    /index.php/%post_id%/%postname%/

    to

    /%postname%/

    Thank you very much for the help.

    How would I write post_id?

    Source: ^/\index/\./\php/ [post-id syntax] /?(.*)
    Target: /$1/

    • This reply was modified 7 years, 1 month ago by pie0o.
    • This reply was modified 7 years, 1 month ago by pie0o.
    • This reply was modified 7 years, 1 month ago by pie0o.
    Forum: Fixing WordPress
    In reply to: Redirect help
    Thread Starter pie0o

    (@pie0o)

    ^bump

    Forum: Fixing WordPress
    In reply to: Redirect help
    Thread Starter pie0o

    (@pie0o)

    Thank you for your answer. Yes, I am pretty sure WP can handle rewrites from the original URL index.php?p=1234 to a new “pretty” permalink structure as eg. mine /index.php/%post_id%/%postname%/.

    However I am not sure, the same applies if I switch between two types of “pretty” permalink structures eg. from /index.php/%post_id%/%postname%/ to say /%year%/%monthnum%/%day%/%postname%/.

    It is my understanding, that this would lead to errors for incoming links, and there for mess with search engine ranking etc. To avoid that I would need a regexp for that. htaccess versus plugin, I guess each have their advantages.

    But I am stuck on how to write this regexp rule. I think I figured out the basic structure, but I am unclear how to write the /index.php/ and the /%post_is%/ part of the rule.

    Source: ^/ [index.php] / [post-id syntax] /?(.*)
    Target: /\d{4}/\d{2}/\d{2}/$1/

    Can anyone help me to write the exact regexp?

    Forum: Fixing WordPress
    In reply to: Redirect help
    Thread Starter pie0o

    (@pie0o)

    Thanks. Seems to me – if I understand it correctly – with Redirection I would need to to a rule for each post, no? With over 5000 items that’s crazy.
    Or maybe I didn’t see it right?

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