Go Back   WarriorForum - Internet Marketing Forums > The Warrior Forum > Main Internet Marketing Discussion Forum
Register Blogs FAQ Social Groups CalendarHelp Desk

Reply
 
LinkBack Thread Tools
Old 10-08-2009, 09:36 AM   #1
Advanced Warrior
War Room Member
 
Nathan Alexander's Avatar
 
Join Date: Apr 2007
Location: Minneapolis, MN
Posts: 578
Thanks: 632
Thanked 203 Times in 143 Posts
Default Tech ? - How to "force" the www. in address bar in frontpage

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!
Nathan Alexander is offline   Reply With Quote
Old 10-08-2009, 09:39 AM   #2
Senior Warrior Member
War Room Member
 
Jason_V's Avatar
 
Join Date: Jan 2007
Location: , , USA.
Posts: 1,467
Blog Entries: 5
Thanks: 129
Thanked 212 Times in 79 Posts
Default Re: Tech ? - How to "force" the www. in address bar in frontpage

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

Jason_V is offline   Reply With Quote
Old 10-08-2009, 09:42 AM   #3
Advanced Warrior
War Room Member
 
TristanPerry's Avatar
 
Join Date: Aug 2009
Location: Cardiff, United Kingdom
Posts: 772
Thanks: 169
Thanked 148 Times in 103 Posts
Social Networking View Member's FaceBook Profile  View Member's Twitter Profile  View Member's YouTube Profile
Default Re: Tech ? - How to "force" the www. in address bar in frontpage

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."
TristanPerry is offline   Reply With Quote
Old 10-08-2009, 09:48 AM   #4
Advanced Warrior
War Room Member
 
Nathan Alexander's Avatar
 
Join Date: Apr 2007
Location: Minneapolis, MN
Posts: 578
Thanks: 632
Thanked 203 Times in 143 Posts
Default Re: Tech ? - How to "force" the www. in address bar in frontpage

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.
Nathan Alexander is offline   Reply With Quote
Old 10-08-2009, 09:57 AM   #5
Full-Time
War Room Member
 
ASM Marketing's Avatar
 
Join Date: Apr 2009
Location: Oxford, UK
Posts: 215
Blog Entries: 1
Thanks: 44
Thanked 57 Times in 38 Posts
Social Networking View Member's Twitter Profile 
Contact Info
Send a message via Skype™ to ASM Marketing
Default Re: Tech ? - How to "force" the www. in address bar in frontpage

Hi Nathan,

It's not as hard as it may sound, here's how:

  1. Open Notepad on your PC.
  2. Copy and paste the code that Jason provided into the document.
  3. Click 'File' and then 'Save As...'
  4. Name the file '.htaccess' and select file types to 'All Files'.
  5. Save the file to your desktop, or local website folder.
  6. Open your FTP and connect to your website.
  7. Upload the .htaccess file into the root directory (the first directory you will come across most likely).
  8. Done!
Now all that's left is for you to have a PC and not a Mac!

Alex

ASM Marketing is offline   Reply With Quote
Old 10-08-2009, 10:02 AM   #6
Warrior Member
 
imacamper's Avatar
 
Join Date: Sep 2009
Posts: 27
Thanks: 5
Thanked 3 Times in 3 Posts
Social Networking View Member's Twitter Profile 
Default Re: Tech ? - How to "force" the www. in address bar in frontpage

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

imacamper is offline   Reply With Quote
Old 10-10-2009, 02:12 PM   #7
Advanced Warrior
War Room Member
 
Nathan Alexander's Avatar
 
Join Date: Apr 2007
Location: Minneapolis, MN
Posts: 578
Thanks: 632
Thanked 203 Times in 143 Posts
Default Re: Tech ? - How to "force" the www. in address bar in frontpage

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.
Nathan Alexander is offline   Reply With Quote
Old 10-10-2009, 05:34 PM   #8
Senior Warrior Member
War Room Member
 
Steven Fullman's Avatar
 
Join Date: Mar 2007
Location: London, England
Posts: 3,798
Thanks: 1,014
Thanked 536 Times in 345 Posts
Social Networking View Member's Twitter Profile  View Member's YouTube Profile
Contact Info
Send a message via MSN to Steven Fullman Send a message via Skype™ to Steven Fullman
Default Re: Tech ? - How to "force" the www. in address bar in frontpage

Quote:
Originally Posted by Jason_V View Post
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
Jason, there's a wee bit missing at the end...

# 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

Steven Fullman is offline   Reply With Quote
Old 10-10-2009, 06:27 PM   #9
Freedom
War Room Member
 
Join Date: May 2009
Location: Sydney, Australia
Posts: 178
Thanks: 18
Thanked 12 Times in 10 Posts
Default Re: Tech ? - How to "force" the www. in address bar in frontpage

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.
mhartmann is offline   Reply With Quote
Old 10-10-2009, 06:42 PM   #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
Default Re: Tech ? - How to "force" the www. in address bar in frontpage

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.
Dave Holmes is offline   Reply With Quote
Reply

  WarriorForum - Internet Marketing Forums > The Warrior Forum > Main Internet Marketing Discussion Forum

Tags
address, bar, force, frontpage, tech, www

Thread Tools

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 Off
Pingbacks are Off
Refbacks are Off



All times are GMT -6. The time now is 11:53 AM.