How can I redirect www to non www site?

How can I set a 301 redirect to the www. directory in htaccess or CPanel for a wordpress site?

  • How can I set a 301 redirect to the www. directory in htaccess or CPanel for a wordpress site.

  • Answer:

    I agree with , as the Redirection plugin is great. But really, if you're only making one change, a plugin is a bit overkill. Use the .htaccess directive he showed you and you'll be fine.

Travis Quinnelly at Quora Visit the source

Was this solution helpful to you?

Other answers

You can achieve a 301 redirect through Wordpress plugins: http://wordpress.org/extend/plugins/simple-301-redirects/ http://wordpress.org/extend/plugins/redirection/ Or use following .htaccess directive: RewriteEngine On RewriteBase / redirect 301 old-url new-url

Kashif Aziz

There really needs to be a little more context to the question. Where are you redirecting from? For what purpose? On the same domain, or is it a cross-domain redirect. Theorectically, the answers posted are right, but I fear there are details being left out that could substantially change what needs to happen.

Christopher Smith

Related Q & A:

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.