Ready to get started?Download WordPress


Url Path Redirects (5 posts)

  1. CoolCarlS
    Posted 5 years ago #

    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:
    if ( !defined('ABSPATH') )
    define('ABSPATH', dirname(__FILE__) . '/');
    require_once(ABSPATH . 'wp-settings.php');

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

  2. figaro
    Posted 5 years ago #

    Comes up fine for me...must have fixed it?

  3. Samuel B
    Posted 5 years ago #

    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

  4. figaro
    Posted 5 years ago #

    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.

  5. CoolCarlS
    Posted 5 years ago #

    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]

Topic Closed

This topic has been closed to new replies.

About this Topic