apache - .htaccess to Redirect all Pages to one Domain -


i have 1 site never perused , might redirect pages there current project. able redirect mirror url, means home page redirects new home page.

but how can pages on old site redirect http://www.comehike.com

here current .htaccess file

options +followsymlinks rewriteengine on rewriterule (.*) http://www.comehike.com/$1 [r=301,l] 

thanks, alex

 options +followsymlinks rewriteengine on rewritecond %{http_host} ^old-domain.com [nc] rewriterule ^(.*)$ http://new-domain.com/$1 [l,r=301] 

Comments

Popular posts from this blog

python - Why doesn't list have safe "get" method like dictionary? -

razor - Is this a bug in WebMatrix PageData? -

sql server - Stored procedure -