Personal Development for Smart People Forums

Personal Development for Smart PeopleTM Forums

 

Go Back   Personal Development for Smart People Forums > Personal Development > Technology & Technical Skills

Notices

Technology & Technical Skills Computer skills, hardware, software, internet topics, gadgets, programming

Reply
 
Thread Tools Display Modes
Old 11-10-2006, 01:47 PM   #1 (permalink)
Banned
 
Join Date: Nov 2006
Location: ATL
Posts: 161
KevinG is an unknown quantity at this point
Default domain help

currently, when I point my browser to "www.mydomain.com" my page is different from when I point my browser to "mydomain.com" without the "www" - it is like the "www" version is not an updated version.

I'm running a blog there and I'm lost as to why this is, but anyway:

How do I make it so that when I point browser to "www.mydomain.com" it pulls up the page at "mydomain.com"
KevinG is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 11-10-2006, 02:28 PM   #2 (permalink)
Junior Member
 
Join Date: Nov 2006
Posts: 22
ditto is on a distinguished road
Default

What what webserver are you running? I googled around and found this for Apache, which seems to be what you're talking about.
ditto is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 11-10-2006, 03:06 PM   #3 (permalink)
Banned
 
Join Date: Nov 2006
Location: ATL
Posts: 161
KevinG is an unknown quantity at this point
Default

im not sure its hosted by yahoo.
KevinG is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 11-10-2006, 03:14 PM   #4 (permalink)
Senior Member
 
Join Date: Nov 2006
Location: Toronto
Posts: 143
kthdsn is on a distinguished road
Default

You need to set up a 301 redirect from www to non-www. You should be able to do this with .htaccess, assuming it's apache webserver. You should place it at the root of your site, and it should look like this:

RewriteEngine On
RewriteCond %{HTTP_HOST} ^www\.domain\.com$ [NC]
RewriteRule ^(.*)$ http://domain.com/$1 [R=301,L]

Obviously replace domain.com with your actual domain name.
kthdsn is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 11-10-2006, 04:36 PM   #5 (permalink)
Banned
 
Join Date: Nov 2006
Location: ATL
Posts: 161
KevinG is an unknown quantity at this point
Default

Quote:
Originally Posted by kthdsn View Post
You need to set up a 301 redirect from www to non-www. You should be able to do this with .htaccess, assuming it's apache webserver. You should place it at the root of your site, and it should look like this:

RewriteEngine On
RewriteCond %{HTTP_HOST} ^www\.domain\.com$ [NC]
RewriteRule ^(.*)$ http://domain.com/$1 [R=301,L]

Obviously replace domain.com with your actual domain name.
You aren't speaking english to me. I consider myself a moderately advanced user and I don't have any idea what you are talking about.

Can you explain in layman's?
KevinG is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 11-10-2006, 05:24 PM   #6 (permalink)
Senior Member
 
Join Date: Nov 2006
Location: Illinois
Posts: 149
TechnoGuyRob is on a distinguished road
Default

Quote:
Originally Posted by KevinG View Post
You aren't speaking english to me. I consider myself a moderately advanced user and I don't have any idea what you are talking about.

Can you explain in layman's?
He's talking about creating a file called ".htaccess" in your main directory. However, you shouldn't have to do this. Make sure you have the DNS set to point to both

domain.com
www.domain.com

Like for my domain:

TechnoGuyRob is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 11-10-2006, 05:41 PM   #7 (permalink)
Senior Member
 
Join Date: Nov 2006
Location: Toronto
Posts: 143
kthdsn is on a distinguished road
Default

Create a file in the same folder as your index page, the file should contain this:

RewriteEngine On
RewriteCond %{HTTP_HOST} ^www\.domain\.com$ [NC]
RewriteRule ^(.*)$ http://domain.com/$1 [R=301,L]

change both instances of domain.com to your actual domain name. Save the file as ".htaccess"

I hope this is clearer.
kthdsn is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 11-10-2006, 06:57 PM   #8 (permalink)
Family Member
 
Join Date: Nov 2006
Location: Somewhere in time...
Posts: 2,213
Lil Chris is a splendid one to beholdLil Chris is a splendid one to beholdLil Chris is a splendid one to beholdLil Chris is a splendid one to beholdLil Chris is a splendid one to beholdLil Chris is a splendid one to beholdLil Chris is a splendid one to beholdLil Chris is a splendid one to behold
Default

Check you DNS settings first.
A .htaccess file shouldn't be necessary for what your trying to accomplish.

An .htaccess file is mearly "directions" if you will, that your server reads if you want it to perform certain tasks such as password protection, 404 error redirect and others...
Lil Chris is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Traveling the World (Blog) Savage Steve Pavlina 67 11-28-2006 12:19 AM


All times are GMT. The time now is 10:19 AM.


Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Copyright © 2010 by Pavlina LLC