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 Complete Thread with Replies
Sponsored Links:
Related Forum Messages:
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 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
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
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
Site Www Does Not Work But Without Www Does
Like the title says, I just moved my site over to my own server, and it is running cpanel. Anyways the main site [url]works, but [url]does not. What is really strange is, [url]works fine as does [url] So I figure there is something I have to do to get it all to work right. The other issue is that if you are logged into [url]but goto [url], you are not logged in anymore, but if you go back to the original link, then you are still logged in. This happened on the other guys server before with the main site as well.
View Replies!
View Related
Www Not Work
im using centOS 5 with webmin in my vps. im installing webmin and do this: [Apache Webserver] / select [Default Server] and my website work fine , but when i check my web site for example [url]not working! [url]Work fine! how i can solve problem work with www and without www.
View Replies!
View Related
How To Prefix A Www
One of our clients website runs only if we give the domain name with http and www and domain name When we give just http and the domain name it shows 404 Can some one help me how to change it so that it will take with www and without www? I am not able to post link am a very new member here.
View Replies!
View Related
Www And Http
All of my 3 new websites are not generating www.. Even if I type [url] all are changing to [url]when page is open... I am asking because I am having irrelevant ads on adsense in all 3 sites thogh these sites are optimized well..
View Replies!
View Related
Subdomains With WWW
my control panel is PLESK, when our customers create sub domain they cannot access to their sub domains with www, for example the sub domain is sub.domain.com and I cannot access to this sub domain whit this address www.sub.domain.com . what should I do to work the sub domains with www ?
View Replies!
View Related
Www. Doesn't Work
today I noticed that whenever I type any of the domain names on my server with a "www." in the address bar, it simply says "server not found". When I remove the "www.", it loads the site? This is a major issue. It never used to be this way, but I noticed it today. Where should I edit? Could it be "named.conf"? Or maybe just DNS cname settings in plesk?
View Replies!
View Related
777 Permissions For Www
Let me start off with saying: I haven't had any suspicious activity, nor do I think I was compromised. I logged in as root, and was simply clicking around my dedicated server and came across a few folders with permissions at 777. ALL are above /public_html Irregardless, is this safe? I recall reading a bunch of topics on here, that /tmp needs to be hardened. Isn't this also above /public_html? For one example: /var/tmp is chmod to 077 ..inside is a bunch of sess_ files Is this folder open to hacking?
View Replies!
View Related
Difference Between Www And Public_html
what is the difference between www and public_html? I have hosed my domain in a small hosting company and when i was going through all its folders i found both the folder www and public_html has the same content. but by hosting company asks me to upload all my files into public_html. Iam curious to know the difference between these two folders.
View Replies!
View Related
Setting WWW Prefix
I have a problem with a couple of the domains on my reseller account. Although apparently configured the same as other domains I am unable to set the default URL to use the www prefix using .htaccess. When I try I get a redirect loop error. You can visit one of the problem domains here: [url] If you stick www in front you will see that it resolves to the non-www version. Any idea where this is taking place?
View Replies!
View Related
Www.AFreeWebHost.com - First Impression
When you visit www.afreewebhost.com , you don't see an ugly portal with to many links, advertisements, etc... You get a nice...HTML website. That's right, no ASP, no PHP, but a simpel, but very good looking, HTML website. Is it a bad thing? Yes and no. "Yes" because it has "founded and owned by one person" written all over it and "no" because my experiences with small or "one-man" companies have been much better then with companies with many employies. Free Web Hosting The free hosting offer looks good. Even though they require advertisements on your free site, the free hosting is not going to bring in any cash. 1GB webspace with 20GB traffic. That's more then enough for 90% of all websites on this planet. And a 468x60 or 120x600 banner and a textlink don't bother anyone. Most site-owners use Adsense or something simular to cover the montly costs anyways. I do not own a free hosting account. But from the looks of it I think that both free and payed services offer the same features and support. The company is able to do that because they also make money with site-/banner-designs. The little bit of money that they might loose with free hosting can easely be covered by a few design-assignments. Pro Web Hosting You don't see it very often. A company that offers monthly prices and gives a discount for 3 months. Most companies only offer yearly sign-ups and some of them give a 14-30 day money-back guarantee. But if you are not aware of everything you "agree" to when you sign up for a year and/or when you do not have a valid reason for asking your money back, you will not get it back. 4$/month for 5GB with 100GB traffic or 3$/month for the same deal when you sign up for 3 months. Personally, I think those prices are very realistic. The best deal is to go for 3 months offcourse. And the more expensive packages have the same "GB for the buck" value. The most expensive package will cost you 22$ for 50GB webspace with ONLY 500GB traffic. Yes, I say ONLY, because for that amount of money there are better deals out there. Don't get me rong, I still think this is a realistic price. But, and there is a bug BUT, I do not beleave that people go for the most expensive package without any experience with the company. The people that do pay 22$ for 50GB with 500GB traffic are the ones that started off with something small that has grown to something bigger, people that are satisfied with the features an the support that they've had for some time. Nice offer, but are they honest?CPanel -> Yep, it's there. Fantastico -> Yep, it's there. No Ads Required -> Offcourse. Daily Backups -> Yep, tested and working. 99.9% Uptime Guaranteed -> Only time will tell. 24x7 Support -> It's more like 12x7 Support, wich is 100% acceptable in my book. Everything else that is listed on the webiste is there and it all works 100%. The company has not modified the CPanel features in any way, wich is understandable, but there are features that I miss. Features that I have encountered before ( don't ask me for names because I don't remember them ). For example, it's possible to backup every single file on your webspace in one huge compressed file but it's not possible to backup the content of just one folder, one add-on domain. So if I want to backup a small website like my clansite, I have to backup all the other megabytes/gigabytes that are on my webspace. All other sites and files that are not even remotely related to my simpel clansite. AFreeWebHhost.com is up-to-date and offers Fantastico De Luxe 2.10.4 r17 This is the latest stable release of Fantastico. Even though many scripts are not up-to-date, it's basicly "the best you can get" at the moment when it comes to auto-installers. For those of you who don't know, Fantastico allows you to install PHPBB, SMF, PHP-Nuke and many other platforms without any knowledge. All you need to know is how to click a link How about the service? So far, so good. Because I had to wait about 24 hours before I could actually use and view my webspace, the company gave me 25GB extra traffic and an extra month for free. Now that's what I call good service! ( maybe the company knew about my Servage.net review ) After sending many emails back and forth I was able to view my testpage. And even though I did not contact the company about any other issues, a day or two after our last contact they contacted me once again, just to see if everything was working ok. When I made my first backup I got the message that it got saved in the "home" directory. I wasn't able to find my backup so I contacted support. Within 12 hours I got a reply. Some of you might feel like 11-12 hours is to long, but I rather wait 11-12 hours for a decent, friendly, HUMAN email with usefull information instead of getting a "human-robot"-hybrid reply with noth enough information. Uptime? Uptime can be checked on [url]. This is the parked domain on my webspace. For my websites I use addon-domains. Speed? Download this file to test the speed: [url] I have the "Pro Webhosting - Starter Package". Visit www.tgow.info to check how fast pages load. Would you recommend this host based on your first impression? I sure would. All the features are working just fine, the speed is not "superb" but good enough and the support so far is great. My rating based on my first impression: 8/10.
View Replies!
View Related
Cpanel Dropping The Www
I just wanted to check with you all to see if you have experienced an issue with cpanel that drops the www when you access directories and if so, how did you go about fixing it. For example - if I were to go to - www.domain.com and then access a sub like /test - it would show up as domain.com/test - dropping the www.
View Replies!
View Related
Www Wont Work
when I try to go to a site of mine with the www like this one [url] It won't work but if I take out the www like this[url]it does work. I'm not sure what could be causing this. As far as I'm aware everything is setup okay. I understand it's impossible for anyone who reads this to properly diagnose the issue without access to my server.
View Replies!
View Related
Www.mydomain.com/whm
Whenever I have had a server with WHM/cPanel I have always been able to raise WHM by browsing to www.mydomain.com/whm - however on my latest server this doesn't work, I can only get to WHM by browsing to my IP:2086 The server has been up and running for 6 days and www.mydomain.com has been working almost from the beginning. dnsreport shows that reverse dns exists for hostname.mydomain.com I am at a loss to know why I cannot raise WHM by www.mydomain.com/whm
View Replies!
View Related
|