OiO.lk Community platform!

Oio.lk is an excellent forum for developers, providing a wide range of resources, discussions, and support for those in the developer community. Join oio.lk today to connect with like-minded professionals, share insights, and stay updated on the latest trends and technologies in the development field.
  You need to log in or register to access the solved answers to this problem.
  • You have reached the maximum number of guest views allowed
  • Please register below to remove this limitation

301 Redirect with multiple Query String parameters in .httaccess

  • Thread starter Thread starter user24710148
  • Start date Start date
U

user24710148

Guest
I want to redirect following url:

Code:
https://www.fliesen-alfers.de/fliesenlegerwerkzeuge/grossformatige-fliesen-bearbeiten/2364/sigma-kera-lift-160-x-340-cm/modell-1a4?c=123

to following url:

Code:
 https://www.fliesen-alfers.de/fliesenlegerwerkzeuge/grossformatige-fliesen-bearbeiten/

I try like this, but I'm not succeeding. Any help, please...

Code:
RewriteCond %{THE_REQUEST} /fliesenlegerwerkzeuge/grossformatige-fliesen-bearbeiten/2364/sigma-kera-lift-160-x-340-cm/modell-1a4/ [NC]
RewriteCond %{QUERY_STRING} (^|&)c=123(&|$) [NC]
RewriteRule ^ /fliesenlegerwerkzeuge/grossformatige-fliesen-bearbeiten/? [R=302,L]
Redirect 301 /fliesenlegerwerkzeuge/grossformatige-fliesen-bearbeiten/2364/sigma-kera-lift-160-x-340-cm/modell-1a4?c=123 /fliesenlegerwerkzeuge/grossformatige-fliesen-bearbeiten/
<p>I want to redirect following url:</p>
<pre><code>https://www.fliesen-alfers.de/flies...sigma-kera-lift-160-x-340-cm/modell-1a4?c=123
</code></pre>
<p>to following url:</p>
<pre><code> https://www.fliesen-alfers.de/fliesenlegerwerkzeuge/grossformatige-fliesen-bearbeiten/
</code></pre>
<p>I try like this, but I'm not succeeding. Any help, please...</p>
<pre><code>RewriteCond %{THE_REQUEST} /fliesenlegerwerkzeuge/grossformatige-fliesen-bearbeiten/2364/sigma-kera-lift-160-x-340-cm/modell-1a4/ [NC]
RewriteCond %{QUERY_STRING} (^|&)c=123(&|$) [NC]
RewriteRule ^ /fliesenlegerwerkzeuge/grossformatige-fliesen-bearbeiten/? [R=302,L]
Redirect 301 /fliesenlegerwerkzeuge/grossformatige-fliesen-bearbeiten/2364/sigma-kera-lift-160-x-340-cm/modell-1a4?c=123 /fliesenlegerwerkzeuge/grossformatige-fliesen-bearbeiten/
</code></pre>
Continue reading...
 

Latest posts

Top