Results 1 to 4 of 4

Thread: www redirect

  1. #1

    www redirect

    I want my website to appear as "www.domain.com" instead of "domain.com", whatever the user inputs to browser.
    I tried this through .htaccess file with following code
    Redirect / http://www.domain.com
    Unfortunately this ceased to display my website.

  2. #2
    Join Date
    Oct 2011
    Try this

    RewriteEngine On
    RewriteCond %{HTTP_HOST} !^www\.
    RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L]

  3. #3
    Join Date
    Sep 2008
    Akron, OH
    I'm always up for networking with fellow web professionals. Connect with me on LinkedIn if you like!

  4. #4
    I have already used this script lines. And yes it's working perfectly but one thing I should mention is the site got slow down. Is there anything can be done for improving the site load time..

Thread Information

Users Browsing this Thread

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

Tags for this Thread

Posting Permissions

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