skip to Main Content

Apache rewrite with and without Parameters

I need to rewrite URL's with and without parameters in the URL, I configured a RewriteMap via dbm kronen-und-gehaeusetuben/wasserdicht-typ-pbbz.html => Produkte/Werke-Uhrenersatzteile/Schraubkronen-PBBZ-wasserdicht/ kronen-und-gehaeusetuben/wasserdicht-typ-pbbz.html?___store=default => Produkte/Werke-Uhrenersatzteile/Schraubkronen-PBBZ-wasserdicht/ kronen-und-gehaeusetuben/wasserdicht-typ-pbbz.html?___store=en => en/Products/Watch-replacement-parts/Watch-crowns/Screw-on-crowns/Screw-on-crowns-PBBZ-waterproof/ kronen-und-gehaeusetuben/wasserdicht-typ-pbbz.html?___store=fr => fr/Produits/Couronnes/Couronnes-vissees/Couronnes-vissees-PBBZ-etanches/ kronen-und-gehaeusetuben/wasserdicht-typ-pbbz.html?___store=es => es/Productos/Movimientos-Piezas/Piezas-de-repuesto-para-relojes/Coronas/Coronas-a-rosca/Coronas-a-rosca-PBBZ-hermeticas/ <VirtualHost *:80> DocumentRoot "/var/www/html" #ServerName www.example.com RewriteMap…

VIEW QUESTION

I'm trying to redirect /example to example.html in Apache's httpd.conf, but it doesn't work

Here's the code I'm trying to apply in httpd.conf: <VirtualHost *:80> ServerName www.test.com ServerAlias www.test.com DocumentRoot /home/test_com ErrorLog /home/logs/apache/www_test/www.test.com-error_log CustomLog /home/logs/apache/www_test/www.test.com.-access_log common env=!do_not_log # https redirect RewriteEngine On RewriteCond %{HTTP_HOST} www.test.com RewriteCond %{REQUEST_URI} /example RewriteRule . https://www.test.com/example.html [R=303,L] RewriteCond %{HTTPS}…

VIEW QUESTION
Back To Top
Search