• Resolved spiney

    (@steeltape)


    this is for my attachment page
    my previous permalink is
    /%year%/%monthnum%/%postname%/

    changing to
    /%postname%/%post_id%/

    after changing to /%postname%/%post_id%/
    my attachment page becomes /postname/postid/attachmentpage

    would this regex below be correct for attachment page??

    Source URL: /(\d*)/(\d*)/(\d*)/([A-Za-z0-9-]*)/
        Target URL: /$4/(\d*)/([A-Za-z0-9-]*)
Viewing 6 replies - 1 through 6 (of 6 total)
  • What useful purpose today does using: /%postname%/%post_id%/ serve? Just use: /%postname%/

    Thread Starter spiney

    (@steeltape)

    useful when you had article with same title but different dates

    useful when you had article with same title but different dates

    Can you please for our knowledge expound on that?

    Thread Starter spiney

    (@steeltape)

    if use postname, if had same article post on different date they they’ll be something like :

    pionervalleydesign/post
    pionervalleydesign/post2

    I don’t like that and I prefer random id number
    pionervalleydesign/post/xx
    pionervalleydesign/post/yy

    hey it’s fine if you like postname so much but I want my site to use post id so please if you can’t help, stop your trolling.

    hey it’s fine if you like postname so much but I want my site to use post id so please if you can’t help, stop your trolling.

    Wow. Thanks for that. Perhaps one can review how to get help here at the forums and also how a regex rewrite for a lack of website management is really not a WP troubleshooting issue.

    Thread Starter spiney

    (@steeltape)

    how is it not a WP troubleshooting issue? all of my attachment page link is no longer working because it stayed at

    /%year%/%monthnum%/%postname%/

    by being cynical it would really help your sale eh? Thanks for your help.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘is this regex correct? help with redirection’ is closed to new replies.