WordPress.org

Support

Support » How-To and Troubleshooting » Url Path Redirects

Url Path Redirects

  • Whenever you try to go to my wordpress blog ‘http://www.gadget-world.net’, it redirects to ‘http://www.gadget-world.net/gadget-world.net/’. In chrome it says ‘Oops! This link appears broken’.

    I using a hostgator shared account (my other wp-blog work fine).

    I have DB table wp-options: field #1 set to http://gadget-world.net
    and field #39 set to http://gadget-world.net

    The wp-config file has the standard:
    >>>CLIP<<<
    if ( !defined(‘ABSPATH’) )
    define(‘ABSPATH’, dirname(__FILE__) . ‘/’);
    require_once(ABSPATH . ‘wp-settings.php’);
    >>>END-CLIP<<<<

    Is there another wordpress setting that might be causing this redirect?
    Any help appreciated..

Viewing 4 replies - 1 through 4 (of 4 total)
  • Comes up fine for me…must have fixed it?

    Comes up fine for me

    does it when you click his link above?
    If I click the link, I get a double url.
    If enter straight in browser all works fine

    Yes, clicking the link he put here does give me a double url…I assume he just copied and pasted something when it was broken. Typing the url works.

    I think its fixed now, I added some code that I found on this forum to the .htaccess file and it seems to work like a charm..

    >>>.htaccess <<<

    Options +FollowSymlinks
    RewriteEngine on
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    rewritecond %{http_host} ^gadget-world.net [nc]
    rewriterule ^(.*)$ http://www.gadget-world.net/$1 [r=301,nc]

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Url Path Redirects’ is closed to new replies.
Skip to toolbar