WordPress.org

Support

Support » How-To and Troubleshooting » www or without w,ww

www or without w,ww

  • opportunist86

    @opportunist86

    My site is mentioned in settings as www. But when run without www it doesn”t execute. I want to make it executable in both ways, i.e. with www and without www.
    Moreover, does it effect SEO?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Phil

    @owendevelopment

    Search on Google for ‘www .htaccess’ and you’ll find your answer. 🙂

    opportunist86

    @opportunist86

    i know a little about htaccess but i think wordpress based sites dont have any htaccess thing. do they? Kindly help with this my site is tops on google and doesnt even execute.
    thanks

    Try it without www. in the WordPress settings. So put ‘yoursite.com’ instead of ‘www.yoursite.com’.

    There is also a plugin for controlling htaccess – http://wordpress.org/extend/plugins/wp-htaccess-control/

    opportunist86

    @opportunist86

    My site is working well without www but not executable when run with www. I want it to run with www too. Kindly help with this.
    Can anyone please tell me htaccess code in the easiest way?

    Phil

    @owendevelopment

    you’d want to add something like this into a .htaccess file. If it doesn’t exist – create one in notepad but save as .htaccess (not .htaccess.txt).

    RewriteEngine on
    RewriteCond %{HTTP_HOST} !^www.yourdomain.com$
    RewriteRule ^(.*)$ http://www.yourdomain.com/$1 [R=301]

    Obviously change ‘yourdomain’ to whatever it is.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘www or without w,ww’ is closed to new replies.