Results 1 to 3 of 3
  1. #1

    Default Create .HTACCESS on Apache Server

    Ho to create .htaccess to resolve canonical issues?

    Like non-www to www

    Thanks
    Blaire

  2. #2
    Join Date
    Oct 2006
    Location
    localhost
    Posts
    3,375

    Smile

    Quote Originally Posted by blaire1200 View Post
    Ho to create .htaccess to resolve canonical issues?

    Like non-www to www

    Thanks
    Blaire
    Hi Blaire, you need to either upload the htaccess file using FTP or create a new one directly from cPanel's File Manager to resolve the canonical issues.

    Rock _a.k.a._ Jack
    Windows Hosting || Windows Reseller Hosting
    Cloud Hosting 100% UPTIME! || Powerful Dedicated Servers
    Follow eUKhost on Twitter || Join eUKhost Community on Facebook

    For complaints, grievances or suggestions kindly email our FeedBack Dept.
    Proper action will be taken accordingly & instantaneously!

  3. #3
    Join Date
    Sep 2005
    Posts
    6,039

    Default

    Hi Blaire!

    You can use following code in your .htaccess :-

    Code:
    Options +FollowSymLinks
    
    RewriteEngine on
    
    
    
    RewriteCond %{HTTP_HOST} !^www.your-domain.com [NC]
    RewriteRule ^(.*)$ http://www.your-domain.com/$1 [R=301,L]
    Note;- replace the "your-domain.com" with your actual domain name.
    UK Web Hosting || Business Hosting || eUKhost Knowledgebase
    Toll Free : 0808 262 0255 || Skype : mark_ducadi
    A bunch of Sheep led by a Lion is better than a bunch of Lions led by a Sheep.
    __________________________________________________

    Please email cmo[at]eukhost.com if you have any questions or need my assistance

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •