Solved

DNS/domain entries for apache

Posted on 2011-03-25
3
323 Views
Last Modified: 2012-05-11
What is the easiest way to reroute connections to a domain name ot the correct address?
I.E. if someone types "http://domain.com" what's the easiest way to redirect it to "http://www.domain.com"?
I've put rules in the past in the virtualhosts config in httpd for opening up a root domain but would prefer redirection to the fqdn.

Ideas/tips?
0
Comment
Question by:kiwistag
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 9

Accepted Solution

by:
fcontrepois earned 500 total points
ID: 35213103
Use serveralias or redirectpermanent

0
 
LVL 1

Expert Comment

by:merjasec
ID: 35213161
In virtual hosts selection make virtual host:

<VirtualHost YOUR_SERVER_IP:80>
        ServerName domain.com
        Redirect / http://www.domain.com/
</VirtualHost>
0
 
LVL 6

Author Closing Comment

by:kiwistag
ID: 35213351
Thanks, ServerAlias worked fine.
0

Featured Post

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

As Wikipedia explains 'robots.txt' as -- the robot exclusion standard, also known as the Robots Exclusion Protocol or robots.txt protocol, is a convention to prevent cooperating web spiders and other web robots from accessing all or part of a websit…
Over the last year I have answered a couple of basic URL rewriting questions several times so I thought I might as well have a stab at: explaining the basics, providing a few useful links and consolidating some of the most common queries into a sing…
In this video, viewers are given an introduction to using the Windows 10 Snipping Tool, how to quickly locate it when it's needed and also how make it always available with a single click of a mouse button, by pinning it to the Desktop Task Bar. Int…
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …

728 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