SitePoint Sponsor

User Tag List

Results 1 to 24 of 24

Hybrid View

  1. #1
    SitePoint Member
    Join Date
    Feb 2013
    Posts
    13
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Trouble moving from a sub folder to root domain - help needed!

    Hey guys,

    I've just come across this forum after a quick Google and was wondering whether you could help me out.

    I'm currently moving a WordPress site from a sub folder - located at www.tyisafbala.co.uk/WordPress/ - to its root domain.

    I have followed this tutorial http://codex.wordpress.org/Giving_Wo...ectory_install but I seemed to have stumbled after point six. If I try to login to the WP admin panel I'm getting re-directed to here http://tyisafbala.co.uk/wp-login.php...in%2F&reauth=1

    Can anyone help me out here?

    Much appreciated!

  2. #2
    SitePoint Addict deadmix's Avatar
    Join Date
    Jun 2009
    Location
    france
    Posts
    210
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    maybe you have to check this line : require('./wordpress/wp-blog-header.php'); in your case it's should be :

    require('./WordPress/wp-blog-header.php');

  3. #3
    SitePoint Member
    Join Date
    Feb 2013
    Posts
    13
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by deadmix View Post
    maybe you have to check this line : require('./wordpress/wp-blog-header.php'); in your case it's should be :

    require('./WordPress/wp-blog-header.php');
    I've just checked that but it looks fine to me. Within the index.php, yeah?

  4. #4
    SitePoint Addict deadmix's Avatar
    Join Date
    Jun 2009
    Location
    france
    Posts
    210
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by carra23 View Post
    I've just checked that but it looks fine to me. Within the index.php, yeah?
    Ok, so you would try this : http://codex.wordpress.org/Moving_Wo...thin_Your_Site

  5. #5
    SitePoint Member
    Join Date
    Feb 2013
    Posts
    13
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by deadmix View Post
    Sorry, what exactly do I have to do here?

  6. #6
    SitePoint Addict deadmix's Avatar
    Join Date
    Jun 2009
    Location
    france
    Posts
    210
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by carra23 View Post
    Sorry, what exactly do I have to do here?
    You have to follow the steps... start from :

    If you want to move WordPress to your root directory, make sure all index.php, .htaccess, and other files that might be copied over are backed up and/or moved, and that the root directory is ready for the new WordPress files.

  7. #7
    SitePoint Member
    Join Date
    Feb 2013
    Posts
    13
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Anyone able to help?

  8. #8
    SitePoint Zealot
    Join Date
    Feb 2005
    Posts
    153
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Check the htaccess file, maybe theres a redirect or something in there??

  9. #9
    SitePoint Member
    Join Date
    Feb 2013
    Posts
    13
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Just tried copying the wp-admin folder to the root domain to no avail.

    Can I just go from Point 8 on that tutorial where it says "Move your WordPress core files to the new location. This includes the files found within the original directory, such as http://example.com/wordpress, and all the sub-directories, to the new location."

  10. #10
    SitePoint Addict deadmix's Avatar
    Join Date
    Jun 2009
    Location
    france
    Posts
    210
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by carra23 View Post
    Just tried copying the wp-admin folder to the root domain to no avail.

    Can I just go from Point 8 on that tutorial where it says "Move your WordPress core files to the new location. This includes the files found within the original directory, such as http://example.com/wordpress, and all the sub-directories, to the new location."
    it's really important to add the new correct WordPress address (URI) and Site link URL... if you can't login, use PhpmyAdmin from your control panel, open your database and go to wp-options table : The first option is is for siteurl Then go to the next page of the table and check the home value. This should be the URL to the main site URL... save the table then try to get to the wp-admin ! because wehn i check your website all is good but you have to fixe this URI Mess...

  11. #11
    SitePoint Member
    Join Date
    Feb 2013
    Posts
    13
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by deadmix View Post
    it's really important to add the new correct WordPress address (URI) and Site link URL... if you can't login, use PhpmyAdmin from your control panel, open your database and go to wp-options table : The first option is is for siteurl Then go to the next page of the table and check the home value. This should be the URL to the main site URL... save the table then try to get to the wp-admin ! because wehn i check your website all is good but you have to fixe this URI Mess...
    Both the Site URL and WordPress Address have been changed in the wp-config - is it not just a case of moving the rest of the files from the sub folder to the root domain??

  12. #12
    SitePoint Addict deadmix's Avatar
    Join Date
    Jun 2009
    Location
    france
    Posts
    210
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by carra23 View Post
    Both the Site URL and WordPress Address have been changed in the wp-config - is it not just a case of moving the rest of the files from the sub folder to the root domain??
    Just check your Database using Phpmyadmin and make the changes... im sure it's the problem as You didn't Do that on the old Wordpress dashboard before moving the files to the root... just check the database because in your Website source i still see some urls like :

    http://tyisafbala.co.uk/WordPress/wp-content/uploads/2013/01/tyisaf_bg.jpg

    http://tyisafbala.co.uk/WordPress/wp-content/uploads/2012/11/home.jpg

    You have to update your database, make a backup before making changes and check what i said before...

  13. #13
    SitePoint Member
    Join Date
    Feb 2013
    Posts
    13
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by deadmix View Post
    Just check your Database using Phpmyadmin and make the changes... im sure it's the problem as You didn't Do that on the old Wordpress dashboard before moving the files to the root... just check the database because in your Website source i still see some urls like :

    http://tyisafbala.co.uk/WordPress/wp-content/uploads/2013/01/tyisaf_bg.jpg

    http://tyisafbala.co.uk/WordPress/wp-content/uploads/2012/11/home.jpg

    You have to update your database, make a backup before making changes and check what i said before...
    I apologise for my ignorance or lack of understanding, but how do I access PhpMyAdmin?

  14. #14
    SitePoint Member
    Join Date
    Feb 2013
    Posts
    13
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by deadmix View Post
    it's really important to add the new correct WordPress address (URI) and Site link URL... if you can't login, use PhpmyAdmin from your control panel, open your database and go to wp-options table : The first option is is for siteurl Then go to the next page of the table and check the home value. This should be the URL to the main site URL... save the table then try to get to the wp-admin ! because wehn i check your website all is good but you have to fixe this URI Mess...
    I've checked this now and both are pointing to the root domain...

  15. #15
    SitePoint Addict deadmix's Avatar
    Join Date
    Jun 2009
    Location
    france
    Posts
    210
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by carra23 View Post
    I've checked this now and both are pointing to the root domain...
    ok, so try this trick : (please always backup your files before trying anything i suggest!!)

    open .htaccess delet all the content and add this one :

    RewriteEngine on

    <IfModule mod_rewrite.c>
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    Im pretty sure its a permalink issue... because when i try to get to your wp-login.php i get : The requested URL /wp-login.php was not found on this server.

  16. #16
    SitePoint Member
    Join Date
    Feb 2013
    Posts
    13
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by deadmix View Post
    ok, so try this trick : (please always backup your files before trying anything i suggest!!)

    open .htaccess delet all the content and add this one :



    Im pretty sure its a permalink issue... because when i try to get to your wp-login.php i get : The requested URL /wp-login.php was not found on this server.
    Tried that - didn't work!

  17. #17
    SitePoint Guru bronze trophy Slackr's Avatar
    Join Date
    Jan 2009
    Location
    New Zealand
    Posts
    679
    Mentioned
    7 Post(s)
    Tagged
    0 Thread(s)
    Looks to me like you've managed to do the transition. Are you still experiencing log in difficulties? Here's some help from the wordpress codex:
    http://codex.wordpress.org/Login_Trouble they're actually pretty helpful.

  18. #18
    SitePoint Member
    Join Date
    Feb 2013
    Posts
    13
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Ok, I've got access to the PhpMyAdmin now!


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •