![]() | | ||||||||
| | #1 |
| Advanced Warrior War Room Member Join Date: Apr 2007 Location: Minneapolis, MN
Posts: 578
Thanks: 632
Thanked 203 Times in 143 Posts
|
Hello all, I know I've done it. I've used it. I've remember learning it - I think. But for the life of me, I can't seem to remeber what I need to do to get the "www." to show up in the address bar for a site. Cpanel, the frontpage software itself (page properties?)...any thoughts? Thank you! |
| | |
| | #2 |
| Senior Warrior Member War Room Member Join Date: Jan 2007 Location: , , USA.
Posts: 1,467
Blog Entries: 5 Thanks: 129
Thanked 212 Times in 79 Posts
|
To perform a redirect from domain.com to www.domain.com, insert the following code into your htaccess file. # mod_rewrite in use Options +FollowSymlinks RewriteEngine On RewriteCond %{http_host} ^domain.com [NC] RewriteRule ^(.*)$ http://www.domain.com/$1 [R=301, courtesy: .htaccess Mod-Rewrite for WWW Domain Name Prefix | NeoHide |
| | |
| | |
| | #3 |
| Advanced Warrior War Room Member Join Date: Aug 2009 Location: Cardiff, United Kingdom
Posts: 772
Thanks: 169
Thanked 148 Times in 103 Posts
|
You can't do this via Frontpage since Frontpage is a WYSIWYG website editor. You need to edit your .htaccess file, as outlined above. |
| "If you are clear where you are going and you take several steps in that direction every day, you eventually have to get there." | |
| | |
| | #4 |
| Advanced Warrior War Room Member Join Date: Apr 2007 Location: Minneapolis, MN
Posts: 578
Thanks: 632
Thanked 203 Times in 143 Posts
|
Thanks folks. Bummer - it seems foreign to me, but that's fine, I've got a little time to figure it out and try it out.
|
| | |
| | #5 |
| Full-Time War Room Member Join Date: Apr 2009 Location: Oxford, UK
Posts: 215
Blog Entries: 1 Thanks: 44
Thanked 57 Times in 38 Posts
|
Hi Nathan, It's not as hard as it may sound, here's how:
![]() Alex |
| | |
| | |
| | #6 |
| Warrior Member Join Date: Sep 2009
Posts: 27
Thanks: 5
Thanked 3 Times in 3 Posts
|
The only other issue you might run into is that Windows uses a different line feed character than Linux/Unix OSs. I won't bore you with the details. So if you use notepad and have problems, try creating your .htaccess file with the free tool gvim. It's a *nix tool that has been ported to windows. Just search for it and you'll find it. Cheers, Drew |
| Swipe My Step By Step Home Online Business Guide! Want To Get Paid For Your Web Hosting & Autoresponder? Visit the Internet Home Business Guide Blog | |
| | |
| | #7 |
| Advanced Warrior War Room Member Join Date: Apr 2007 Location: Minneapolis, MN
Posts: 578
Thanks: 632
Thanked 203 Times in 143 Posts
|
Hey guys thanks for the help. I'm getting it, but it's still coming up errors. I don't have time to tinker around as my one year old just woke up...but thank you for all your help. Arghh, a few more minutes and I'd get it I keep getting Internal Service Error or some such so I have to keep undoing it. |
| | |
| | #8 | |
| Senior Warrior Member War Room Member Join Date: Mar 2007 Location: London, England
Posts: 3,798
Thanks: 1,014
Thanked 536 Times in 345 Posts
| Quote:
# mod_rewrite in use Options +FollowSymlinks RewriteEngine On RewriteCond %{http_host} ^domain.com [NC] RewriteRule ^(.*)$ http://www.domain.com/$1 [R=301,L] That'll be the cause of your errors, Nathan... Steve | |
| | ||
| | |
| | #9 |
| Freedom War Room Member Join Date: May 2009 Location: Sydney, Australia
Posts: 178
Thanks: 18
Thanked 12 Times in 10 Posts
|
If you have Wordpress installed, some htaccess commands will clash with the Wordpress virtual htaccess file, including URL rewrites. WP makes it really easy to specify the www or non-www version of a site. Drupal has the code for the www/non-www included (you just need to un-comment from the default htaccess file it provides), and other CMSs do as well. When I had a static site, I just picked out the htaccess file from the Drupal CMS download, took out the Drupal-specific stuff and left in the part about rewriting the URL with www all the time. Uploaded it to the directory for the add-on domain and voila. |
| | |
| | #10 |
| Active Warrior War Room Member Join Date: Oct 2007 Location: Sunshine Coast, Qld Au
Posts: 49
Thanks: 8
Thanked 5 Times in 5 Posts
|
bloody brilliant... Ive been trying to sort this one out but have had trouble working it out. Thanks so much to all you warriors problem is now solved.
|
| | |
![]() |
|
| Tags |
| address, bar, force, frontpage, tech, www |
| Thread Tools | |
| |
![]() |