How do I create redirect to subdomain

Posted on 2010-09-16
Last Modified: 2013-12-14
New to apache

From scrolling the web I redirected all to  However, now I need to, in addition, redirect http://www.domain/subdomain/ to

is this something I can do with .htaccess?
Question by:charlesbaldo
LVL 15

Accepted Solution

ncoo earned 500 total points
ID: 33695194
Create an htaccess file:


Add the following and upload it to

redirect 301 /subdomain

Open in new window


Author Closing Comment

ID: 33695294

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Valid LIN protocol Protected ID values 1 40
New firewall implementation guidance 12 68
Nimble Storage 3 69
maybe no no httpd.conf 6 48
ADCs have gained traction within the last decade, largely due to increased demand for legacy load balancing appliances to handle more advanced application delivery requirements and improve application performance.
When it comes to security, there are always trade-offs between security and convenience/ease of administration. This article examines some of the main pros and cons of using key authentication vs password authentication for hosting an SFTP server.
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor ( If you're interested in additional methods for monitoring bandwidt…

832 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