Apache‎ > ‎

mod_rewrite

mod_rewrite on URLs with question marks

forward:

https://domain.com/acquisitions/viewLead.gsp?employerId=201

to

https://domain.com/acquisitions/viewLead/viewLead/201

Because of the question mark Query String should be used.

RewriteEngine On RewriteCond %{QUERY_STRING} ^employerId\=([0-9]+) RewriteRule acquisitions/viewLead.gsp$ /acquisitions/viewLead/viewLead/%1? [R=301]

SEO rood domain redirect to www

<VirtualHost *:80> ... RewriteEngine On RewriteCond %{HTTP_HOST} !^www RewriteRule /(.*) http://www.%{HTTP_HOST}/$1 [L,R] </VirtualHost>
Comments