Solved

.htaccess help

Posted on 2007-04-11
1
188 Views
Last Modified: 2010-03-04
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
Comment
Question by:battalion
1 Comment
 
LVL 11

Accepted Solution

by:
JamesCssl earned 500 total points
ID: 18891158
RewriteCond %{HTTP_HOST} ^www2\.example\.com
RewriteRule ^(.*)$ http://www.example.com/$1 [R=301,L]
0

Featured Post

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Stop people from trying to get into my server 8 129
Virtual host in apache 31 102
How code a 301 redirect for folder files -> 1 file 2 58
Cpanel file manager 8 40
Hi, in this article I'm going to teach you how to run your own site, and how to let people in (without IP). I'll talk about and explain each step... :) By the way, everything in this Tutorial is completely free and legal. This article is for …
In Solr 4.0 it is possible to atomically (or partially) update individual fields in a document. This article will show the operations possible for atomic updating as well as setting up your Solr instance to be able to perform the actions. One major …

839 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question