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

.htaccess help

I have a website called www2.something.com and I want to redirect everything from that site to www.something.com/

how can I do that using rewrite rules in my .htaccess file?
0
battalion
Asked:
battalion
1 Solution
 
JamesCsslCommented:
RewriteCond %{HTTP_HOST} ^www2\.example\.com
RewriteRule ^(.*)$ http://www.example.com/$1 [R=301,L]
0

Featured Post

Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

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