0

I use the Wordpress Redirection plugin and its working great. Most of my pages are translated so I match using URLs using a regex that check the beginning of the URL.

I would now like to check if the ends with and parameters.

This is what I have now

^(/de|/fr|/es|/it)?/company/about/$

This does not work if I have any parameters but if I remove $, /company/ will also be effected by the redirect and I do not want it.

How can redirect that exact same URL and include any parameters as well?

1 Answer 1

1

Try this:

RewriteRule ^(/de|/fr|/es|/it)?/company/about/(\?.+)?$ somewhere
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.