IThoemmi IThoemmi - 22 days ago 4x
Apache Configuration Question

htaccess Rewrite Cond to remove string from URL

i have some problems with links to my website.
For example:

I want to remove the string "" via htaccess.
Can everybody help me?

It is possible that after "" comes a query string for example:

The string must be in the URL.

Thank you


You can use this redirect rule in site root .htaccess:

RewriteEngine On

RewriteRule ^(service)/www\.blabla\.de/?$ /$1? [L,NC,R=301]

? at the end of target URI will strip off previous query string.