Knowledgebase: WHM/CPanel, Apache
forward a domain via mod_rewrite to specific page
Posted by Viktor Klymonchuk, Last modified by Viktor Klymonchuk on 10 December 2010 06:21 PM
Sample


RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} ^(www.fromdomain.com|fromdomain.com)$
RewriteRule ^(.*)$ http://www.targetdomain.com/page.html [R=301,L]
RewriteRule (.*)\.html$ index.php?url=$1
(6 vote(s))
Helpful
Not helpful

Comments (0)
Managed by WebCTO