1

Apache redirect rule not processing correctly

view story
linux-howto

http://serverfault.com – Consider this code: RewriteEngine On RewriteRule ^$ http://%{HTTP_HOST}:8177/index.jsp [C] RewriteRule ^http://([^:]+):([^/]+)(.*) http://$1:8177$3 [R=301] RewriteRule ^/$ http://%{HTTP_HOST}:8177/index.jsp [C] RewriteRule ^http://([^:]+):([^/]+)(.*) http://$1:8177$3 [R=301] RewriteCond %{REQUEST_URI} card.* RewriteRule ^ - [L] RewriteCond %{REQUEST_URI} Voucher.* RewriteRule ^ - [L] RewriteRule ^(.*)$ http://www.mymainwebsie.com [R,L] The server configuration on the website is split in 2 parts. 1 having static content an the other having dynamic content. static content is stored ()