| | |||||||
| Technology & Technical Skills Computer skills, hardware, software, internet topics, gadgets, programming |
| | Thread Tools | Display Modes |
| | #1 (permalink) |
| Banned Join Date: Nov 2006 Location: ATL
Posts: 161
|
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" |
| | |
| | #4 (permalink) |
| Senior Member Join Date: Nov 2006 Location: Toronto
Posts: 143
|
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. |
| | |
| | #5 (permalink) | |
| Banned Join Date: Nov 2006 Location: ATL
Posts: 161
| Quote:
Can you explain in layman's? | |
| | |
| | #6 (permalink) | |
| Senior Member Join Date: Nov 2006 Location: Illinois
Posts: 149
| Quote:
domain.com www.domain.com Like for my domain: | |
| | |
| | #7 (permalink) |
| Senior Member Join Date: Nov 2006 Location: Toronto
Posts: 143
|
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. |
| | |
| | #8 (permalink) |
| Family Member Join Date: Nov 2006 Location: Somewhere in time...
Posts: 2,213
|
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... |
| | |
| Bookmarks |
« Previous Thread
|
Next Thread »
| Thread Tools | |
| Display Modes | |
| |
| | ||||
| 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.




