Activity Stream
48,167 MEMBERS
61112 ONLINE
besthostingforums On YouTube Subscribe to our Newsletter besthostingforums On Twitter besthostingforums On Facebook besthostingforums On facebook groups

Page 1 of 2 12 LastLast
Results 1 to 10 of 12
  1.     
    #1
    Member

    Lightbulb Redirect your non www url's to www

    In order to redirect all of the requests for yourdomain.com to www.yourdomain.com, you should set the appropriate rewrite rule. This can be done by adding the following lines at the beginning of the .htaccess file in your public_html folder

    Code: 
    RewriteEngine on
    RewriteBase /
    
    RewriteCond %{HTTP_HOST} ^yourdomain.com [NC]
    RewriteRule ^(.*)$ http://www.yourdomain.com/$1 [L,R=301]
    After this successful step any non www url's gets redirected to www url's
    hhhgame Reviewed by hhhgame on . Redirect your non www url's to www In order to redirect all of the requests for yourdomain.com to www.yourdomain.com, you should set the appropriate rewrite rule. This can be done by adding the following lines at the beginning of the .htaccess file in your public_html folder RewriteEngine on RewriteBase / RewriteCond %{HTTP_HOST} ^yourdomain.com RewriteRule ^(.*)$ http://www.yourdomain.com/$1 After this successful step any non www url's gets redirected to www url's Rating: 5

  2.   Sponsored Links

  3.     
    #2
    Member
    Please use search before posting. A similar thread already exists which was made by InFlames!.

    Thanks for the tut though

  4.     
    #3
    Banned
    Website's:
    sbanime.com
    whoa thanks loads mate always wandered about this

  5.     
    #4
    Banned
    Website's:
    videocave.net warezcave.com yourcinema.net
    Ermf I have added but still getting http:// instead of http://www.

    try
    Code: 
    www.videocave.net

  6.     
    #5
    The Wise One
    Website's:
    twilight.ws ddlrank.com
    Just to let you know that you shouldn't do this lmao, www is considered as a subdomain and might give you more traffic since google will most likely index www links and non-www links
    I can always be contacted by sending a tweet @twilightws

  7.     
    #6
    Banned
    Website's:
    videocave.net warezcave.com yourcinema.net
    but doesn`t google index non www and www as 2 different sites ?

  8.     
    #7
    The Wise One
    Website's:
    twilight.ws ddlrank.com
    ^Not 2 different sites, just a site with a subdomain. Which means -> more indexed links == More traffic.
    I can always be contacted by sending a tweet @twilightws

  9.     
    #8
    Banned
    Website's:
    videocave.net warezcave.com yourcinema.net
    Oh, got ya, so it is for www really good. So my www redirecting is working but I don`t see it in my browser ?

  10.     
    #9
    Member
    does this mean putting www gives me more traffic?

  11.     
    #10
    Member
    Website's:
    yourdomain.com
    i cant see my .htaccess ? but if i search it,it appears on the search result


    ok i solved my problem, anyone experiencing cant find the .httaccess, try to uncheck then check tha show hidden files dot files.


    thanks for this btw,

Page 1 of 2 12 LastLast

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. 301 redirect help
    By tractor3231 in forum Web Development Area
    Replies: 4
    Last Post: 28th Jul 2011, 04:19 PM
  2. How to Redirect !
    By softleaks in forum Tutorials and Guides
    Replies: 12
    Last Post: 20th Jul 2011, 09:01 AM
  3. 301 Redirect help
    By Rox in forum Wordpress
    Replies: 7
    Last Post: 10th Jul 2011, 09:03 PM
  4. In Need of Url REdirect mod ..?
    By litewarez in forum phpBB
    Replies: 25
    Last Post: 20th Oct 2009, 08:40 PM

Tags for this Thread

BE SOCIAL