Redirection Issue from nonwww to www

by ours
3 replies
Hello,

This is the site:
The Article Boss we want to redirect pages like The Article Boss to The Article Boss

For this we write the following .htaccess code. (site developed in wordpress)

HTML Code:
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
rewritecond %{http_host} ^thearticleboss.com [nc]
rewriterule ^(.*)$ http://www.thearticleboss.com/$1 [r=301,nc]
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
But still the redirection not happening.

Using 301 plugin we able to redirect pages like The Article Boss to The Article Boss or The Article Boss to The Article Boss

Any advice highly appreciated.
#issue #nonwww #redirection #www
  • Profile picture of the author Wezley
    Wordpress handles this for you automatically. Restore your .htaccess file and go to:

    thearticleboss.com/wp-admin
    >>settings
    >>general

    Set WordPress Address (URL) and Site Address (URL) to your full url with http: // www . thearticleboss .com.

    Sorry I had to add spaces in the above URL because warrior forum won't let me post links yet.
    Signature
    {{ DiscussionBoard.errors[6948040].message }}
  • Profile picture of the author ours
    Thanks so much for this small tips. Sometimes we think too much where the solution is too simple. Appreciate for your help.
    {{ DiscussionBoard.errors[6949206].message }}
  • Profile picture of the author Wezley
    No problem. Glad to help!
    Signature
    {{ DiscussionBoard.errors[6967524].message }}

Trending Topics