Redirect Www.domain.com To Domain.com
Can anyone help me in redirecting my site www.domain.com to domain.com since SSL is for domain.com
Here is my htaccess
Options -Indexes
DirectoryIndex home.php index.php index.html index.htm
Could you please add me the correct code to redirect www.domain.com to domain.com?
Also, do i need to restart Apache for taking effect?
View Complete Thread with Replies
Sponsored Links:
Related Forum Messages:
Redirect Domain To Www
The thing is that we have a dedicated server at our company hosting several domains, and right now you can access them both with the www prefix or without it, but there is no redirection in case you access without it, and this has negative impact with SEO related stuff. I have the rewrite apache module enabled (I tested with a script I found on the net), and I also tried a test configuring a single domain including some code about redirection. Right now I'm getting a nice "500 Internal Server Error" This is the code in .htaccess Code: Option +FollowSymlinks RewriteEngine On RewriteCond %{http_host} ^mydomain.com [NC] RewriteRule ^(.*)$ [url] (mydomain.com is, obviously, a replacement for the real domain in both cases)
View Replies!
View Related
Getting Www.domain.com To Work, Domain.com Resolves Correctly, Just Not With Www
Okay guys, a quick question for all the gurus out there. I'll admit I'm a bit embarassed posting such an easy question, but give a guy a break, I've been using managed servers for god knows how long and I've finally decided to take a dive into administration. Everything is firewalled and secured properly, I'm just having trouble getting the ServerAlias to work right. What happens is I go into my browser and enter in [url]walaa! It works. Now, when I enter in [url], it does not resolve. I have checked with "dig" the domain settings and it looks as though all of the nameservers are set up fine, this is an apache problem. I'm running apache 2.2 on Ubuntu 7.10 for all those who are interested. Here is my etc/apache2/sites-available/domain.com: <VirtualHost *:80> # Admin email, Server Name (domain name) and any aliases ServerAdmin webmaster@domain1.com ServerName domain.com ServerAlias www.domain.com # Index file and Document Root (where the public files are located) DirectoryIndex index.html DocumentRoot /home/demo/public_html/domain.com/public # Custom log file locations LogLevel warn ErrorLog /home/demo/public_html/domain.com/logs/error.log CustomLog /home/demo/public_html/domain.com/logs/access.log combined </VirtualHost> I've been messing with it for about 45 minutes and I'm worn out at ~4:30am and could use a helping hand from the pros.
View Replies!
View Related
Domain.com Or Www.domain.com For SSL Certificates
I'm setting my first eCommerce site and right now I need to resolve the following issue. I need to install (well, the hosting company will do it for me) a SSL certificate and I need to know what is best or common practice, to use domainname.com or www.domainname.com I don't know what difference it would make but it seems to do so because the hosting company is asking me to choose. Being that I'm clueless about this, I would also appreciate a quick explanation on the benefits or downfalls of using either one.
View Replies!
View Related
Www.domain.com Does Not Resolve Where As Domain.com Works
I ve been having a problem with the "www" prefix for the domains For example: [url] works ok But [url] Does not resolve here is the named conf ; Modified by Web Host Manager ; Zone File for hayalikelimeler.net $TTL 14400 @ 86400 IN SOA ns1.theplanet.com. fikret.eforelektrik.com. ( 2007032306 14400 7200 3600000 14400 ) hayalikelimeler.net. 14400 IN NS ns1.theplanet.com. hayalikelimeler.net. 14400 IN NS ns2.theplanet.com. hayalikelimeler.net. 14400 IN A 74.52.228.130 localhost.hayalikelimeler.net. 14400 IN A 127.0.0.1 hayalikelimeler.net. 14400 IN MX 0 hayalikelimeler.net. mail 14400 IN CNAME hayalikelimeler.net. www 14400 IN CNAME hayalikelimeler.net. ftp 14400 IN A 74.52.228.130
View Replies!
View Related
Domain.com Works, But Www.domain.com Doesn't
One of my websites, romeo-help4u.com has this problem. When i type and the address goes to [url]it works fine. But when I go to [url]it doesn't work. Quote: Great Success ! Apache is working on your cPanel® and WHM™ Server If you can see this page, then the people who manage this server have installed cPanel and WebHost Manager (WHM) which use the Apache Web server software and the Apache Interface to OpenSSL (mod_ssl) successfully. They now have to add content to this directory and replace this placeholder page, or else point the server at their real content. ATTENTION! If you are seeing this page instead of the site you expected, please contact the administrator of the site involved. (Try sending an email to <webmaster@domain>.) Although this site is running cPanel, WebHost Manager, and Apache software it almost certainly has no other connection to cPanel Inc. or the Apache Group. Please do not send mail about this site or its contents to cPanel Inc. or the Apache Group. About cPanel: cPanel is a leading provider of software for the webhosting industry. If you would like to learn more about cPanel please visit our website at www.cpanel.net. Please be advised that cPanel Inc. is not a web hosting company, and as such has no control over content found elsewhere on this site. About Apache HTTP Server: The Apache HTTP Server is an open source web server which powers many of the worlds web sites. The Apache HTTP server is part of the Apache Group's many influential projects. Their efforts have helped shape much the world wide web, and they continue to be a dominating force in the web hosting industry. I checked the dns through whm and everything looks normal. What did I set up wrong?
View Replies!
View Related
Domain With Www Not Resolving
i have a weird problem with dns bind. i just setup a zone file and it seems [url]works but [url]doesnt work. i have also created a cname for www but still not working. here is my zone file $ttl 38400 domain.com. IN SOA ns1.domain.com. webmaster.domain.com. ( 1211542287 10800 3600 604800 38400 ) domain.com. IN A 67.223.229.117 ns1.domain.com. IN A 67.223.229.117 ns2.domain.com. IN A 66.249.8.117 domain.com. IN NS ns1.domain.com. domain.com. IN NS ns2.domain.com. www IN CNAME domain.com. ftp IN CNAME domain.com. mail IN MX 0 domain.com.
View Replies!
View Related
Domain Name Redirect
is it possible to register a domain name and just use it to re-direct to another domain without paying for hosting etc? for example if i want a standard url to point to a free [url] blog? how would i go about doing this?
View Replies!
View Related
Emails To Www.domain.com Disappear
I can get emails to admin@mydomain.com, but i really wanted to alias it so emails to admin@www.mydomain.com go to the same account. MX records for www.mydomain.com and mydomain.com both go to mail.domain.com. . This is on a dedicated server, centos, with exim doing the email handling. I was thinking maybe it would be like an alias of some sort, or somewhere to put a list of combinations i can accept email for.
View Replies!
View Related
Domain Name Redirect/masking
I'v been searching the internet for ways to redirect/mask a domain in Linux (Ubuntu) and everything points me to godaddy. The server is ssh there is no control panel on it. So if anyone knows a way I can redirect my domain name and mask it that would be great. For example domain1 points to domain2, but in the address bar it shows domain1.
View Replies!
View Related
Redirect Domain.com/admin To [url]
How do i forward requests to [url] to [url]? I have usermin control panel running at https port 10000, but hosted customers have trouble rememembering the port address, hence i want to provide simplified url to all hosted customer so that whenever a customer types [url]or [url]he is forwarded to [url]. I have a number of domains hosted and need a global mod_rewrite rule or whatever that can be specified once in my apache httpd.conf file and it should work for all hosted domains on my server.
View Replies!
View Related
How Do I Redirect Visitors, Who Type In My IP Address, To My Domain
I have what seems to be a simple redirect question. I have a dedicated server and a few static IP addresses, but I want to make it so if someone were to type in my IP address in their browser, Apache will redirect them to the domain name. (Typing in [url] What happens now is that if you were to type in my server's IP address, it will show you the FIRST VirtualHost container that's listed in httpd.conf. This is not so bad since I've placed my main company site at the start of the list, but I'd rather redirect the IP into the domain name I use. I read somewhere that you can place Mod RewriteRules directly in the VirtualHost container rather than using .htaccess, but the few "rules" that I tried didn't seem to do anything. And yes, I restarted Apache each time I edited httpd.conf. Is there an easy way to do this? ALSO, is there a way to redirect the name server address too? If you type in [url]into the browser, it acts the same way. I would ultimately like to redirect both the nameservers and the IP address(es) to the domain name.
View Replies!
View Related
301 Redirect Entire Domain With IIS
I always use Apache and it's easy to redidrect an entire domain in the htaccess. Code: RewriteCond %{HTTP_HOST} ^www.domain1.com$ RewriteRule ^(.*)$ [url]$1 [R=301,L] For a site I'm working on I need to achieve the same thing with IIS but have no idea how to and the technician claims it can't be done. Surely, that's not the case. Any ideas? By the way I want the exact same effect as the above not just a generic redirect that sends everthing to the home page of the new domain.
View Replies!
View Related
DNS / Bind - Easiest Method To Redirect A Domain To Another
I've got two domains (for sake of example, domain A and domain B). Domain A resolves correctly to my web server. Domain B is just sitting collecting dust. I didn't set these domains up, a previous programmer at my job did. How do I configure resolv.conf, named.conf and the zone file(s) correctly to have domain B redirect to domain A? I've already set up httpd.conf so that any requests for the host name of domain A will redirect. e.g. [url]-> [url] I just need the DNS part of this fixed (that I'm a bit of a noob at). Do I have to do something like this in named.conf: Code: zone "domaina.com" { type master; file "/var/named/domaina.com.hosts"; }; zone "domainb.com" { type master; file "/var/named/domaina.com.hosts"; }; Then in the domaina.com.hosts zone file add an alias like this? Code: domainb.com. IN CNAME domaina.com. Or do I need to create a domainb.com.hosts zone file with basic info emulating domaina.com.hosts zone file, and add its entry in named.conf?
View Replies!
View Related
DNS / Bind - Easiest Method To Redirect A Domain To Another
I've got two domains (for sake of example, domain A and domain B). Domain A resolves correctly to my web server. Domain B is just sitting collecting dust. I didn't set these domains up, a previous programmer at my job did. How do I configure resolv.conf, named.conf and the zone file(s) correctly to have domain B redirect to domain A? I've already set up httpd.conf so that any requests for the host name of domain A will redirect. e.g. [url] I just need the DNS part of this fixed (that I'm a bit of a noob at). Do I have to do something like this in named.conf: Code: zone "domaina.com" { type master; file "/var/named/domaina.com.hosts"; }; zone "domainb.com" { type master; file "/var/named/domaina.com.hosts"; }; Then in the domaina.com.hosts zone file add an alias like this? Code: domainb.com. IN CNAME domaina.com. Or do I need to create a domainb.com.hosts zone file with basic info emulating domaina.com.hosts zone file, and add its entry in named.conf?
View Replies!
View Related
Only Domain Reg, Email Forward And Url Redirect Wanted
I need a company to register my domain, and then forward emails and urls to my actual site that is somewhere else. I don't need any actual web hosting or email pop (at the moment). My main requirement is reliability. The company I currently use bounces some email to me and forwards other email to a black hole. They're also not replying to my mail, so it's time to leave. BTW, this is a company that has generally excellent reviews.
View Replies!
View Related
Redirect Example.com To Www.example.com
I have multiple domains on my web server. One of my domains does not display its website when using example.com in the location bar. Eg. example.com redirects to site2.com but www.example.com displays properly. I tried adding to the htaccess file: Quote: Options +FollowSymlinks RewriteEngine on RewriteCond %{HTTP_HOST} !^www.example.com RewriteRule ^(.*)$ http://www.example.com/$1 [R=permanent,L] It doesn't work. The redirect does not occur.
View Replies!
View Related
WWW Redirect
i have a Centos VPS with webmin i have modified my .htaccess file to redirtect all users from WWW. to the root of the domain i also tried to block some ip addresses through my .htaccess file but it seems that whatever code i enter in my .htaccess file does not work. i think it is disabled somewhere as both the abvoe codes do not work how can i enable .htaccess file?
View Replies!
View Related
Reverse Domain Name Server (DNS) ARPA For Domain On VPS
I have a vps with dedicated ip's for my domain names. I read that in order for mails coming from my server not be picked up as spam, i need to add reverse ip entries. Now i have already added the glue nameserver records on my godaddy control panel, ns1.mydomain.com -> 10.20.30.40 ns2.mydomain.com -> 10.20.30.41 But do i need to speak to the datacenter to add the reverse dns entries for my domain on their nameservers? What about if i host my nameservers offsite, but then have my webserver/mailserver etc inside the datacenter? Would i need to request the datacenter where the nameservers are hosted to add the reverse ip entries for the domain, and then the request the same from the datacenter for my web/mail servers to add the reverse entries? Is it really required?
View Replies!
View Related
Domain Parking - Wildcard Domain Name Server (DNS)?
We have a lot of unused domains that we'd like to setup domain parking for. To keep it simple, we'd like to just change the namesevers to ns1.domainparking.com and ns2.domainparking.com (not real nameservers!) and the domains would then automatically show a simple web page. We use cpanel servers and are wondering how easy this is to do? I've seem mention of wildcard dns? Is that the answer?
View Replies!
View Related
Domain Parking With Win2k3 Domain Name Server (DNS)?
i have about 8 different domains i'd like to point to a nameserver (ns1./ns2.mydomain.com) on Win2k3 server, but i can't get them resolved through my nameserver without creating a manual forward lookup entry for each *parked* domain separatly.. Does anyone know how to resolve "parked" domains automatically on Win2k3 DNS?? I just can't find any answer for this, everything i've found required manual creation of lookup entries.. anyone?
View Replies!
View Related
Domain Does Not Resolve :: Domain Name Server (DNS) Issues
I've been having some DNS problems with one of my domains for quite some time now. The domain does not always resolve - some go days without being able to access the site. I ran a simple BASH script to show what I mean. I replaced my domain with "mysite.net" and the IP with "xx.xx.xxx.xxx". # for i in `seq 1 15`; do host mysite.net; done mysite.net has address xx.xx.xxx.xxx mysite.net mail is handled by 0 mysite.net. Host mysite.net not found: 2(SERVFAIL) mysite.net has address xx.xx.xxx.xxx Host mysite.net not found: 2(SERVFAIL) mysite.net has address xx.xx.xxx.xxx Host mysite.net not found: 2(SERVFAIL) mysite.net has address xx.xx.xxx.xxx Host mysite.net not found: 2(SERVFAIL) mysite.net mail is handled by 0 mysite.net. mysite.net has address xx.xx.xxx.xxx Host mysite.net not found: 2(SERVFAIL) Host mysite.net not found: 2(SERVFAIL) mysite.net has address xx.xx.xxx.xxx Host mysite.net not found: 2(SERVFAIL) mysite.net mail is handled by 0 mysite.net. mysite.net has address xx.xx.xxx.xxx mysite.net mail is handled by 0 mysite.net. mysite.net has address xx.xx.xxx.xxx mysite.net mail is handled by 0 mysite.net. mysite.net has address xx.xx.xxx.xxx mysite.net mail is handled by 0 mysite.net. mysite.net has address xx.xx.xxx.xxx Host mysite.net not found: 2(SERVFAIL) mysite.net has address xx.xx.xxx.xxx mysite.net mail is handled by 0 mysite.net. mysite.net has address xx.xx.xxx.xxx mysite.net mail is handled by 0 mysite.net. mysite.net has address xx.xx.xxx.xxx mysite.net mail is handled by 0 mysite.net. mysite.net has address xx.xx.xxx.xxx mysite.net mail is handled by 0 mysite.net. Has anyone experienced a similar problem? I have gone over the DNS records countless times and see no problems. The site is hosted on my own dedicated server.
View Replies!
View Related
32 Or 64bit & Existing Domain Net Vs New Domain
delving into a new server, a dual opteron w/Centos. Got two questions as I think about setup. 1) 32 bit or 64bit? 2) Regarding host names and server assignemt...I can either assign it as a node to a domain hosted elsewhere in a reseller account, or I can start with a completely unused domain which is currently parked. Any preference, in an ideal world? (I have absolutely no preference, but it occurrred to me it may or may not be of consequence, perfomance & IT-wise and generally speaking .. all things being equal, of course.) Like I said, a newbie. So I'm braced for the if-you-have-to-ask, you-shouldn't-be-in-one" musings for these rather basic boneheaders.
View Replies!
View Related
Make Addon Domain The Main Domain
I have domain1.com as the main domain that I am using with cpanel and domain2.com as an addon domain that points to a different directory. I want to move domain1.com to another server and I would like to know if I can make domain2.com the main one
View Replies!
View Related
Strange Domain Become Parked Domain- Is This Hacked
I just when found this domain on google when I was make some search of content of my site I found domain as a parked domain and work for my site! so I go to cpanel and parked domain but not found any thing so what this mean how someone have parked domain for my site and when i go to cpanel noting foudn also when I go to whm and accoubt listed I don’t find that domain?
View Replies!
View Related
Domain Forwarding Vs. Domain Parking
I am moving content from old.domain to new.domain However I am at the same time retaining the old.domain to keep the older links working I want that the old.domain/link redirect to new.domain/link Please advice what would be best to do for the old.domain - 1) Domain forwarding 2) Domain parking or Both the above (The other thing is that I would like to do 301 redirect - would this happen automatically by activating the above options - or something else has to be done)
View Replies!
View Related
How To Point Domain.com To Domain.net
have a such problem./ my customer have site domain.net, which is hosted on another host. now he bought domain.com and ask me, to setup this domain and point to domain.net. i'm on cpanel/whm. i ask customer on registrar page setup my nameservers, and trying to do edin dns zone..: as i know, i must do Quote: domain.com. A 62.118.***.*** or domain.com. A domain.net. or domain.com. CNAME domain.net. but unfortunately get an error: Server not found can u advice, what i'm doing wrong? btw. domain is immo.am which i'm going to point to immo.ru P.s. 1. i know, that it's possible to do via registrar, but unfortunately their registrar don't allow this 2. i suggest to do it via 301 redirect, but customer don't like it. just need to view ip of his main domain [immo.ru]
View Replies!
View Related
Domain Pointing On Another Domain
I have a domain aaa.com that has a page on it. It used to work fine. I added another domain bbb.com and both were working well. Today, I discovered that no matter if I go to aaa.com or bbb.com, it always shows bbb.com. I didn't try to do something like that and don't want to. Yesterday, I tried to secure my VPS with doing the step in this tutorial : [url] I dont' know if I created that problem yesterday or before that... Do you know what I can do to bring it back like it was ? What can I check do solve this?
View Replies!
View Related
|