• Resolved thomaslester

    (@thomaslester)


    Hello!
    I have made a new homepage for a customer, now wanting to make correct redirects from the old page. The customer works with artist booking.

    Unfortunately the old had 4-5 URL′s for each artist like this:

    bifald.dk/?IId=210&EId=&E=Book
    bifald.dk/?IId=210&EId=13&E=Book
    bifald.dk/?Iid=210&Eid=13
    bifald.dk/?Iid=210
    bifald.dk/Print.asp?IId=210

    and

    https://bifald.dk/?IId=21&EId=12&E=Book
    https://bifald.dk/?IId=21&EId=12
    https://bifald.dk/Print.asp?IId=21
    https://bifald.dk/?IId=21
    https://www.bifald.dk/?Iid=21

    NOTE: the IId with both II and Ii.

    I would like to use Regex 301 redirects, but I′m totally new to this.

    My idea is to look for the artist number ”210” and because the two first letters are changing case, I thought of just using the ”d=210”

    It works when I just put ”d=210” as the regex expression, but the problem is how to avoid that artist with number 21 to be redirected to the new 210 page. 21 is contained in 210!

    How to program the regex to see difference between 2 and 3 digits?

    I can′t use the ”&” as a guide, because not all Urls have an & after the artist number.

    Any help will be deeply appreciated.
    Best Thomas

    https://www.ads-software.com/plugins/wordpress-seo/

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Help with regex for redirection.’ is closed to new replies.