1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Regex Help Needed (Trivial for an Expert)

Discussion in 'Programming' started by vahing, Jun 24, 2017.

  1. #1
    I have some wordpress slugs ending in "-2", e.g. mydomain/mypost-2
    I would like to redirect such posts to mydomain/mypost
    using the redirect plugin and regex.
    SEMrush
    Can someone help out?

    Thanks in advance!
    Mark
     
    vahing, Jun 24, 2017 IP
    SEMrush
  2. ThePHPMaster

    ThePHPMaster Well-Known Member

    Messages:
    726
    Likes Received:
    50
    Best Answers:
    31
    Trophy Points:
    150
    #2
    ThePHPMaster, Jun 24, 2017 IP
  3. vahing

    vahing Active Member

    Messages:
    867
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    60
    #3
    Yea, thanks. Case solved!
     
    vahing, Jun 25, 2017 IP