![]() |
How to redirect site.com to www.site.com?
As the title says... How to redirect site.com to www.site.com?
How would I go about doing this? my site is www.fragtoss.com so how would I make it so that when people type fragtoss.com it sends them to www.fragtoss.com ? Thanks. |
That's something that will happen automatically when ppl will type fragtoss.com their browser will automatically take them to your homepage with as http://fragtoss.com
|
Well since I'm asking how to do it, it's obviously not happening :)
|
what server your website is hosted on ?? Windows / Linus ? i can try to help u once i know that or u can do that on ur own by redirecting 301 nonwww to www url. u can search for .... 301redirect also on ur own if u want.
|
mine is linux
|
You can use htaccess to do this;
http://snippetdb.com/htaccess/add-www very very very very useful little file, capable of tons of great stuff. If you've never used it before, visit http://www.askapache.com/ for usage and examples. |
So where should I place...
Code:
RewriteEngine On Code:
# Comment the following line (add '#' at the beginning) |
You only need to use the 'RewriteEngine On' once, and you can stick that extra bit anywhere underneath it. Something like this;
Code:
RewriteEngine On |
bro..why are you ppl telling this man such a complicated answer to an easy question.
Login to your host cpanel (not your vbulletin cpanel but your actual cpanel) , navigate to where you see redirects, then just add it there. |
Not every host has cpanel. I don't.
How on Earath is adding 2 lines of code into a pre-existing file considered complicated? If anyone has trouble with this, then installing mods or editing templates is gonna be quite a challenge. Besides, htaccess is a feather in any webmaster's cap. |
if he has cpanel all of that other code is a waste of time for such a minor issue. I swear some of you who help on this board think every one here has the same type of knowledge..no thats not true. It would be beneficial to give the most simple straight forward answer upfront then go from there.
|
Quote:
Quote:
|
Quote:
|
Well I appreciate everyone hurding over here to help me out.
Yet my question remains un-answered. Where in the .htaccess should I place it? I'm not sure if just placing it at the end might have an affect on it? Or should it be placed at a certain point? And yes I also have cpanel but for some reason the redirect wasnt working right. Anyway, would someone mind answering the question? --------------- Added [DATE]1292129313[/DATE] at [TIME]1292129313[/TIME] --------------- Quote:
|
I have no idea if this will work, I'm merely going on an unsubstantiated hunch:
Code:
#RewriteCond %{HTTP_HOST} !^fragtoss\.com |
don't work
|
Hey budd m providin u this video tutorial abt redirecting 301... hope that helps you and if still not then sorry mate.
http://www.youtube.com/watch?v=VyEu99qWk3Q |
Asking most of these ppl for help will never work, they will give you some type of quantum theory answer to solve a simple redirect issue.
Do you have cPanel? Bouncer, like i said, if you have cPanel, just login to your host navigate to redirects and add it there. You have not said if you have cPanel or not... |
put this immediately after 'RewriteEngine On'
Code:
Options +FollowSymLinks |
Quote:
We're trying to help someone root out a problem by giving him steps to try and eliminate as possible solutions. You're just mocking the people trying to help him, repeating a suggestion that if you had even bothered to fully read his posts you would already know doesn't work and cluttering up the thread with unhelpful information. Everyone here offers their help free of charge and at the expense of their own free time. If you have something new to add, the it will be appreciated and taken in good faith. But if all you're going to do is conflate the simplest, most bone-headedly easy of steps into something ridiculously harder then it is, then I can only assume your just here to troll, not help. |
Quote:
Maybe there's something else in the .htaccess which I posted before that's conflicting? Or how about this.. Anyone have their method ACTUALLY WORK on their own forums? I mean kinda pointless posting this stuff here if it doesn't work. I would appreciate it if someone tested it on their own forums first. Thanks. |
Strange, that code USED to work fine for me........
edit> http://bfb-online.com wont work, but if you type bfb-online.com into your address bar it works. |
Quote:
Code:
RewriteEngine on http://www.cogonline.net | http://cogonline.net |
DNS not resolving the 2 part domain, rather than something wrong with the code?
|
The SEO wouldn't be messing with it, would it?
|
Just noticed;
Code:
# Comment the following line (add '#' at the beginning) edit> this thread looks promising LINKY |
yeah i noticed later before u posted that, that the yourdomain.com needed to be changed, although I forgot to remove the number sign to uncomment it.
I also removed forums/ since my forums are in the root. It's all fixed now thank you all. |
That's where I got the first suggestion I posted, but didn't realize it needed to be the actual two lines with the hashtags removed and not just duplicated. Good to know.
|
Well I have the same issue and have posted here but nothing happen to get it to work correctly. It give me error 404
I currently using the http:// right now but never been able to fix it to work on www instead Any ideas? |
The http:// should always be there, www or not. What this is, is directing one without to one with. Is that what you were going for?
|
This is the code I have always used in my htaccess files:
Code:
RewriteEngine On Also check that your host accepts the use of htaccess files as some do NOT allow them to be used. In which case you need to ask your host to allow the use of htaccess. |
All times are GMT. The time now is 06:21 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|