IThoemmi IThoemmi - 1 year ago 101
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

Answer Source

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.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download