View Single Post
  #2 (permalink)  
Old 06-11-2009, 10:21 AM
wige's Avatar
wige wige is offline
Moderator
WebProWorld Moderator
 
Join Date: Jun 2006
Location: United States
Posts: 2,651
wige RepRank 9wige RepRank 9wige RepRank 9wige RepRank 9wige RepRank 9wige RepRank 9wige RepRank 9wige RepRank 9wige RepRank 9wige RepRank 9wige RepRank 9
Default Re: website is not opening in Firefox without prefix "www"

It is odd that the requests work in one type of browser but not another. Would you be able to post (or send to me in PM) the url of the site in question? I'd love to take a peek and see why this is happening.

Probably the easiest solution, assuming you are using the Apache web server, is to add the following lines to your .htaccess file:

Code:
RewriteEngine on
RewriteCond %{HTTP_HOST} !^www\.yourdomainhere\.com
RewriteRule ^/(.*) http://www.yourdomainhere.com/$1 [R=301,L]
__________________
The best way to learn anything, is to question everything.
Reply With Quote