WordPress.org

Ready to get started?Download WordPress

Forums

Help Moving to Root directory!! (9 posts)

  1. angeldazie
    Member
    Posted 3 years ago #

    I have found a few things on here about moving the site, but it doesn't seem to be working. I will pay someone to do this and finish it. Just please help. I have two copies of the database. The site is in a /beta/ folder, so I want to take out the "beta" and have it be on the main domain name. I am uncertain of what some things mean in my "wp-config.php" file, such as the $base, etc. I did a search and replace and removed the word "beta" from everywhere in the database. Someone mentioned that some things in the .htaccess file would need to be changed. Somehow I don't have one. I've got 50 blog authors with working blogs and the site finished up ready to go live, but no .htaccess folder. I'm afraid to make one since it all works in a folder right now. I continue to get the "error establishing database connection" message. Insight anyone? If not insight, anyone interested in a small paying job here?

  2. angeldazie
    Member
    Posted 3 years ago #

    Well, somehow it's all showing in the main: http://www.inframebride.com/

    BUT, all of the pages return with a 404 error and it' won't let me view the dashboard. It takes me to the login page, but no further. I have this in the config right now. I've tried a few combos, so it only works if I leave the path to current site as being "beta", which doesn't seem right...:
    define ('WPLANG', '');
    define( 'MULTISITE', true );
    define( 'SUBDOMAIN_INSTALL', false );
    $base = '/';
    define( 'DOMAIN_CURRENT_SITE', 'www.inframebride.com' );
    define( 'PATH_CURRENT_SITE', '/beta/' );
    define( 'SITE_ID_CURRENT_SITE', 1 );
    define( 'BLOG_ID_CURRENT_SITE', 1 );
    define( 'BP_SILENCE_THEME_NOTICE', true );

  3. angeldazie
    Member
    Posted 3 years ago #

    Ok, I got it. It was hard to find clear instructions on doing this. I have a wordpress 3.0 multisite with buddypress. So anyone else who has this question or issue arise...I did nothing in my dashboard as the "settings">"general" didn't give the URLS for me to change. I made two copies of my database in case I ruined one of them.:) Use this tool strip out or change the url, etc: http://spectacu.la/search-and-replace-for-wordpress-databases/

    Make sure you have an .htaccess folder with this in it:
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]

    # uploaded files
    RewriteRule ^([_0-9a-zA-Z-]+/)?files/(.+) wp-includes/ms-files.php?file=$2 [L]

    # add a trailing slash to /wp-admin
    RewriteRule ^([_0-9a-zA-Z-]+/)?wp-admin$ $1wp-admin/ [R=301,L]

    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^ - [L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?(wp-(content|admin|includes).*) $2 [L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?(.*\.php)$ $2 [L]
    RewriteRule . index.php [L]

    In the wp-config you can now change the $base to be "/" and the current path to be "/" instead of your other folder you are moving from.

    Hope this helps someone!

  4. angeldazie
    Member
    Posted 3 years ago #

    Well, I might have lied here. I can't login to the admin still, and if you just plain type the URL into the address bar it goes to the "beta" folder. If you do it again it will go to the main site. Help anyone??

  5. It appears to be working correctly. Try clearing your browser's cache.

  6. angeldazie
    Member
    Posted 3 years ago #

    Yeah, the site works fine, but I can't login to the admin part. No one who is not an admin would know.

  7. I can't login to the admin still, and if you just plain type the URL into the address bar it goes to the "beta" folder. If you do it again it will go to the main site.

    Search your database for the beta folder name. I bet somewhere in there it lingers. Like a rotten egg.

  8. angeldazie
    Member
    Posted 3 years ago #

    Any other ideas? It will let me go to the admin page and enter in username and password and then it just redirects back to the homepage.

  9. I would dump all cookies from the browser and try logging in again.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.