Forums

Can't load site after transfer to root dir (22 posts)

  1. bexstar82
    Member
    Posted 7 months ago #

    Hello,
    I have spent a few hours running through the forum and although there are many similar questions, i simply keep running into dead ends.
    Basically I changed the URL address in my general admin settings, then moved my site files from http://mudshop.com.au/home to the root http://mudshop.com.au and now I get the message "firefox has detected that the server is redirecting the request for this address in a way that will never complete. This problem can sometimes be caused by disabling or refusing to accept cookies."

    I know I am missing something but seem to be getting my self more and more confused. ANY HELP would be appreciated as it is for a client and needs to be up and running by tomorrow. Also this is my first wordpress site so I am very much a NOVICE - EKKKK!

  2. Big Bagel
    Member
    Posted 7 months ago #

    Sounds like an .htaccess issue.

    codex.wordpress.org/Moving_WordPress#Moving_WordPress_Within_Your_Site

    It looks like you've stopped at step nine. It seems you can still log in:

    http://www.mudshop.com.au/wp-login.php

    Try logging in and resetting your permalinks.

  3. bexstar82
    Member
    Posted 7 months ago #

    Hi - Thanks so much for your quick response!
    I tried to login but it I get "Not Found The requested URL /wp-login.php was not found on this server.
    Apache/2.2.9 (Debian) PHP/5.2.6-1+lenny13 with Suhosin-Patch mod_ssl/2.2.9 OpenSSL/0.9.8g Server at mudshop.com.au Port 80
    I am freaking out a bit now! I know this is the correct username and password. I don;t understand about permalinks, is there anything I can do from my FTP?
    Thanking you again!

  4. dgilmour
    Member
    Posted 7 months ago #

    Could this be one of those things where a trailing / on the URL (to make clear it's a directory) can make all the difference?

    Resetting permalinks is easy. Go to Settings / Permalinks, set back to default and save, then restore to your preferred option and save again.

  5. bexstar82
    Member
    Posted 7 months ago #

    Thanks dgilmour but I can't get into my admin so I am stuck! When I try to login in I receive an Error 404 message.I am completely lost. Maybe it is because I moved my files to the root dir and not copied them??

  6. Big Bagel
    Member
    Posted 7 months ago #

    Open your .htaccess and paste your WordPress rules here. Make sure to follow the rules for posting code. Your RewriteBase is probably set to your old directory; you can try changing it to just /.

  7. bexstar82
    Member
    Posted 7 months ago #

    With regards to step 9 and beyond for
    codex.wordpress.org/Moving_WordPress#Moving_WordPress_Within_Your_Site

    it says to: Change the following and save the file. Change the line that says:
    require('./wp-blog-header.php');
    to the following, using your directory name for the WordPress core files:
    require('./wordpress/wp-blog-header.php');
    I am not sure I would be changing mine too?
    Again, any help would be greatly appreciated.

  8. Big Bagel
    Member
    Posted 7 months ago #

    I don't see that step anywhere on that page.

  9. bexstar82
    Member
    Posted 7 months ago #

    Sorry I have got so many "how to" sites open at the moment, frantically trying to find a solution. It got that info from http://codex.wordpress.org/Giving_WordPress_Its_Own_Directory
    Could you tell me what word press rules I need to paste into the .htaccess file? I am very new to WordPress and it is all quite foreign to me.

  10. dgilmour
    Member
    Posted 7 months ago #

    These are the rules added to the .htaccess text file in your WP root directory. (This is a file used by the Apache web server. It contains instructions (Directives, in Apache-speak) which are able to override the default web server settings for that specific directory.)

    You can see examples here:
    http://codex.wordpress.org/Create_A_Network#.htaccess_and_Mod_Rewrite

  11. Big Bagel
    Member
    Posted 7 months ago #

    That codex page is similar, but primarily for doing the exact opposite of what you're doing right now.

    I meant posting the contents of your .htaccess file here, so I can check if there's an obvious problem. I think it's a problem with your RewriteBase. It's probably still set to your old directory rather than the root directory: /. This would cause all your requests to be sent to the old directory, which doesn't exist anymore.

  12. bexstar82
    Member
    Posted 7 months ago #

    ok here it is Big Bagel

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>

    # END WordPress

  13. bexstar82
    Member
    Posted 7 months ago #

    Cancel that last post:

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /home/
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /home/index.php [L]
    </IfModule>

    # END WordPress

  14. Big Bagel
    Member
    Posted 7 months ago #

    Yup, change it to your first example:

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    # END WordPress
  15. bexstar82
    Member
    Posted 7 months ago #

    Ok BB will try and let you know...

  16. bexstar82
    Member
    Posted 7 months ago #

    Bugger, no good: I get this on the page:
    The page isn't redirecting properly

    Firefox has detected that the server is redirecting the request for this address in a way that will never complete.
    This problem can sometimes be caused by disabling or refusing to accept
    cookies.

  17. bexstar82
    Member
    Posted 7 months ago #

    Do I need to change any thing in regards to the config or index.php files??

  18. Big Bagel
    Member
    Posted 7 months ago #

    No. Are you sure you put wp-config.php in the root of your site? I get a 404 when navigating to:

    http://mudshop.com.au/wp-config.php

    It should show a blank page or a 403 if it exists.

    Try removing the WordPress .htaccess rules all together. It will prevent you from using permalinks until your regenerate/reupload it, but it will make any problems in the file a non-issue.

    Edit:

    I also get a 404 for:

    http://mudshop.com.au/wp-admin/index.php

    Are you sure you moved over everything?

  19. bexstar82
    Member
    Posted 7 months ago #

    Still no good. Would you be willing to have a look at the files for me? I don't know if that is ok or if there is some where I can go. I can PM you the username and password.
    I am desperate :(

  20. Big Bagel
    Member
    Posted 7 months ago #

    Er...I suppose. I can't guarantee anything, but I can take a look.

  21. bexstar82
    Member
    Posted 7 months ago #

    Have emailed, cheers BB

  22. Big Bagel
    Member
    Posted 7 months ago #

    The OP set his site URL and home URL as http://mudshop.com.au but his server is set to redirect everything to http://www.mudshop.com.au. So, the server and WordPress kept redirecting from one URL to the other. Fixing the entries in the database did the trick. If anyone needs to do the same:

    http://codex.wordpress.org/Changing_The_Site_URL

Reply

You must log in to post.

About this Topic