WordPress.org

Ready to get started?Download WordPress

Forums

www or without w,ww (6 posts)

  1. opportunist86
    Member
    Posted 2 years ago #

    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?

  2. Phil
    Member
    Posted 2 years ago #

    Search on Google for 'www .htaccess' and you'll find your answer. :)

  3. opportunist86
    Member
    Posted 2 years ago #

    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

  4. Kitta
    Member
    Posted 2 years ago #

    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/

  5. opportunist86
    Member
    Posted 2 years ago #

    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?

  6. Phil
    Member
    Posted 2 years ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.