Support » Fixing WordPress » 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.

    #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} ^ [nc]
    rewriterule ^(.*)$$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!!!

    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 ‘WWW. .htaccess redirect caused blog to break’ is closed to new replies.