Solved

How do I create redirect to subdomain

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

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


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

Accepted Solution

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

".htaccess"

Add the following and upload it to domain.com/.htaccess

redirect 301 /subdomain http://subdomain.domain.com.

Open in new window

0
 

Author Closing Comment

by:charlesbaldo
ID: 33695294
Thnaks
0

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 (https://www.paessler.com/prtg). 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