• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 161
  • Last Modified:

Use htacces to 301 redirect

I want to permantly redirect:
www.example.com to example.com using .htaccess
0
dplsr
Asked:
dplsr
1 Solution
 
caterham_wwwCommented:
That means you've to check the HTTP_HOST, a possible solutiuon is mod_rewrite:
RewriteEngine on
RewriteCond %{HTTP_HOST} =www.example.com
RewriteRule ^(.*) http://example.com/$1 [R=301,L]

Open in new window

0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now