• Home
  • Get help
  • Ask a question
Last post 1 hour 50 min ago
Posts last week 128
Average response time last week 28 min
All time posts 70381
All time tickets 10863
All time avg. posts per day 20

Helpdesk is open from Monday through Friday CET

Please create an (free) account to post any question in the support area.
Please check the development versions area. Look at the changelog, maybe your specific problem has been resolved already!
All tickets are private and they cannot be viewed by anyone. We have made public only a few tickets that we found helpful, after removing private information from them.

#8948 – More targeted redirects, what's possible?

Posted in ‘4SEO’
This is a public ticket. Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.
Saturday, 06 August 2022 14:12 UTC
christianrieger

Hi!

I created some general redirects which work fine. But now I'm trying to find more targeted redirects with as few redirect rules as possible.

Example:

old url:

/loesungen-abitur/mathematik-abitur-bayern-2021/pruefungsteil-a/analysis-1/teilaufgabe-1.html

new url:

/abiturloesungen-mathematik-bayern/mathematik-abitur-bayern-2021/pruefungsteil-a/analysis-1/teilaufgabe-1.html

The first part of the url has permanently changed. other parts of the url can take different values, which I can better explain with the attached screenshot.

Is it possible to have only one redirect (or a few redirects) for all those similar biult urls? And if yes with which expressions can I work.

Best regards,

Christian 

 

 
Monday, 08 August 2022 07:02 UTC
wb_weeblr

Hi

In your example, and assuming only the first segment has changed, you would do:

From: /loesungen-abitur/{*}

To: /abiturloesungen-mathematik-bayern/{*}

to redirect any such group of URLs with just one rule.

Best regards

Yannick Gaultier

weeblr.com / @weeblr

 

 

 
Monday, 08 August 2022 12:23 UTC
christianrieger

Hi

That's great. I didn't think it would be so easy to redirect hundreds of items directly.

Until now I only had this redirect:

/loesungen-abitur/*

/abiturloesungen-mathematik-bayern/

Thank you very much!

Best regards,

Christian

 
Monday, 08 August 2022 13:06 UTC
wb_weeblr

Hi

Yes, that's kind of the main goal: create redirects for many pages in one go, without having to learn regular expressions in your .htaccess (you CAN use regular expressions if you so desire).

/loesungen-abitur/*

Note that the syntax uses {*} and not *. Just * will have no effect - unless you want to redirect the URL /loesungen-abitur/* which is a perfectly valild URL.

Best regards

Yannick Gaultier

weeblr.com / @weeblr

 

 
Thursday, 08 September 2022 05:34 UTC
system
This ticket has been automatically closed. All tickets which have been inactive for a long time are automatically closed. If you believe that this ticket was closed in error, please contact us.
This ticket is closed, therefore read-only. You can no longer reply to it. If you need to provide more information, please open a new ticket and mention this ticket's number.