WordPress.org

Support

Support » How-To and Troubleshooting » [Resolved] WWW. .htaccess redirect caused blog to break

[Resolved] WWW. .htaccess redirect caused blog to break

Viewing 3 replies - 1 through 3 (of 3 total)
  • Check wp.config.php
    What’s the entries for WP_HOME // blog url and WP_SITEURL // site url

    Also Make sure your .htaccess file is redirecting to said entries only.
    Take Backup before doing any changes. with above files.

    christychristine
    Member

    @christychristine

    #mralokkp: I was unable to find either entry you were asking about in the wp.config.php file. I haven’t touched it since I put wordpress onto my site via GoDaddy. The closest item I could find was this:

    /** Absolute path to the WordPress directory. */

    if ( !defined(‘ABSPATH’) )

    define(‘ABSPATH’, dirname(__FILE__) . ‘/’);

    /** Sets up WordPress vars and included files. */

    require_once(ABSPATH . ‘wp-settings.php’);

    Here is what my .htaccss looks like. I haven’t set any rules for redirecting the blog.

    RewriteEngine on
    rewritecond %{http_host} ^christychristine.com [nc]
    rewriterule ^(.*)$ http://www.christychristine.com/$1 [r=301,nc]
    RewriteCond %{THE_REQUEST} ^GET\ .*/index\.(php|html)\ HTTP
    RewriteRule ^(.*)index\.(php|html)$ / [R=301,L]
    RewriteRule ^(.*)default\.(php|html)$ / [R=301,L]

    Thanks for any continued help!!!

    christychristine
    Member

    @christychristine

    Ok, after not trying it last night, I added the WP_HOME and WP_SITEURL as you said, #mralokkp and it worked like a charm!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Resolved] WWW. .htaccess redirect caused blog to break’ is closed to new replies.