• 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. ??

    Thread Starter 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 – https://www.ads-software.com/extend/plugins/wp-htaccess-control/

    Thread Starter 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 ^(.*)$ https://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.