RewriteEngine On RewriteCond %{HTTP_HOST} ^www\.domain\.com/payment$ [NC] RewriteRule ^(.*)$ http://domain.com/payment$1 [R=301,L]