Adding 'www' to domain. - Printable Version +- Support Forums (https://www.supportforums.net) +-- Forum: Categories (https://www.supportforums.net/forumdisplay.php?fid=87) +--- Forum: Webmaster Support (https://www.supportforums.net/forumdisplay.php?fid=36) +---- Forum: Website Development (https://www.supportforums.net/forumdisplay.php?fid=43) +---- Thread: Adding 'www' to domain. (/showthread.php?tid=12778) Pages:
1
2
|
Adding 'www' to domain. - Jake - 10-15-2010 Hey guys, just looking for a little bit of help here since I'm a bit confused. Basically I have a domain. When I type in http://domain.com, it goes to http://domain.com, although I'd prefer it to go to http://www.domain.com. I've heard ways of doing this, something about modifying the .htaccess file, but I haven't figured out how to do it yet. Any help would be appreciated, thanks. RE: Adding 'www' to domain. - Reality - 10-15-2010 What's the domain name? And, the point of www. is because there are different prefixes for websites. RE: Adding 'www' to domain. - Jake - 10-15-2010 (10-15-2010, 01:12 PM)Reality Wrote: What's the domain name? I know about subdomains and the likes, I'd just like to avoid confusion by having all links have www. The link is http://runite.org. RE: Adding 'www' to domain. - AceInfinity - 10-15-2010 (10-15-2010, 01:13 PM)Jake Wrote: I know about subdomains and the likes, I'd just like to avoid confusion by having all links have www. They are the same thing, I don't understand. www.runite.org is your site. They are pretty much the same thing. Did you just want it to redirect users from runite.org so that when they type that in and go to the link that the address bar at the top automatically puts www in front? RE: Adding 'www' to domain. - Jake - 10-15-2010 (10-15-2010, 01:21 PM)Infinity Wrote: They are the same thing, I don't understand. www.runite.org is your site. They are pretty much the same thing. Did you just want it to redirect users from runite.org so that when they type that in and go to the link that the address bar at the top automatically puts www in front? Yeah that's what I was aiming for, e.g. http://runite.org/webpage redirects to http://www.runite.org/webpage etc. RE: Adding 'www' to domain. - AceInfinity - 10-15-2010 .htaccess file is in your root directory.. add this in that file code: Code: <IfModule mod_rewrite.c> don't forget to change the values to your site domain name though. Theres a reverse code you can use for making it redirect you from www. to one without the www prefix, but it's all just adding rules to the redirection of the site address. RE: Adding 'www' to domain. - ariton - 10-15-2010 I can't understand this. When I type www. runite.org it stays www. runite.org. RE: Adding 'www' to domain. - Jake - 10-15-2010 (10-15-2010, 01:52 PM)ariton Wrote: I can't understand this. When I type www. runite.org it stays www. runite.org. Type in simply runite.org and see what happens. Also thanks infinity, I'll try that and see how it works. RE: Adding 'www' to domain. - AceInfinity - 10-15-2010 (10-15-2010, 01:52 PM)ariton Wrote: I can't understand this. When I type www. runite.org it stays www. runite.org. Read his OP, he says for you to type in "http://runite.org" and it stays as "http://runite.org". Don't type in www as a prefix Also, I forgot to mention this, the “mod_rewrite” module has to be enabled in the Apache httpd.conf file. Otherwise URL rewriting will not work using the code I gave you. For enabling this module you need to remove ‘#’ before the Code: LoadModule rewrite_module modules/mod_rewrite.so in your httpd.conf file. RE: Adding 'www' to domain. - Preeminent - 10-18-2010 Does www. being added have an affect on anything? |