Our system will automatically take users who enter "www" before the domain or not to your website.  So http://www.<mydomain> and http://mydomain both go to http://mydomain.com.
What if you wanted to force it to put the "www" in front?
Here's how.
Log into your cpanel by going to http://cpanel.<yourwebsite>  or http://<your site hom>/cpanel and entering your credentials.
Once there you can use the FileManager to access the .htaccess file in your /public_html (or the appropriate html directory for any parked or sub-domains).
Once inside the file, look for this section:
  # If your site can be accessed both with and without the 'www.' prefix, you
  # can use one of the following settings to redirect users to your preferred
  # URL, either WITH or WITHOUT the 'www.' prefix. Choose ONLY one option:
  #
  # To redirect all users to access the site WITH the 'www.' prefix,
  # (http://example.com/... will be redirected to http://www.example.com/...)
  # uncomment the following:
  # RewriteCond %{HTTP_HOST} .
  # RewriteCond %{HTTP_HOST} !^www\. [NC]
  # RewriteRule ^ http%{ENV:protossl}://www.%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
  #
  # To redirect all users to access the site WITHOUT the 'www.' prefix,
  # (http://www.example.com/... will be redirected to http://example.com/...)
  # uncomment the following:
  # RewriteCond %{HTTP_HOST} ^www\.(.+)$ [NC]
  # RewriteRule ^ http%{ENV:protossl}://%1%{REQUEST_URI} [L,R=301]
and uncomment the 3 lines (remove the '#') on the lines show below so it looks like this:
  # If your site can be accessed both with and without the 'www.' prefix, you
  # can use one of the following settings to redirect users to your preferred
  # URL, either WITH or WITHOUT the 'www.' prefix. Choose ONLY one option:
  #
  # To redirect all users to access the site WITH the 'www.' prefix,
  # (http://example.com/... will be redirected to http://www.example.com/...)
  # uncomment the following:
  RewriteCond %{HTTP_HOST} .
  RewriteCond %{HTTP_HOST} !^www\. [NC]
  RewriteRule ^ http%{ENV:protossl}://www.%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
  #
  # To redirect all users to access the site WITHOUT the 'www.' prefix,
  # (http://www.example.com/... will be redirected to http://example.com/...)
  # uncomment the following:
  # RewriteCond %{HTTP_HOST} ^www\.(.+)$ [NC]
  # RewriteRule ^ http%{ENV:protossl}://%1%{REQUEST_URI} [L,R=301]
Then save the file and try accessing your site without 'www'.
It should now put the 'www' in front.
Customer Service
SubSpaceNetworks, Inc.
http://www.subspacenetworks.com
[email protected]
- 5 Benutzer fanden dies hilfreich
Verwandte Artikel
                    
                         DNS AND EMAIL CONFIGURATION
                    
                                        
                            This document is broken into section based on the type of service you are using. Please look...
                    
                         ONE-CLICK-INSTALL for Hundreds of Web Applications
                    
                                        
                            OVER 200 SOFTWARE MODULES MAY BE AVAILABLE TO YOU AND GROWING! If you have the right...
                    
                         HIDE WEBSITE BEHIND PASSWORD SCREEN
                    
                                        
                            Sometimes it is advantageous to hide your website. Some examples include: If you are doing...
                    
                         IPhone Configuration
                    
                                        
                            Summary This guide shows you how to set up a POP3 email account on your Apple iPhone 4, Apple...
                    
                         Creating a Sub-Domain
                    
                                        
                    Setting up a SubDomain A sub-domain is a way to break your domain into sections if you want....
