WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] About Site Address (10 posts)

  1. pal8
    Member
    Posted 1 year ago #

    Could someone clarify Site Address vs WordPress Address. This is what I followed.

    http://codex.wordpress.org/Giving_WordPress_Its_Own_Directory

    I have two concerns.

    1) It says to create a wp dir, then make changes with amdin. THEN move the core files. But you can't do anything without admin which are the core files. Are the WP team sure on what it says?

    2) What happens when changing the Site Address? Does it create a rewrite rule in htaccess?

  2. pal8
    Member
    Posted 1 year ago #

    Can I edit htacccess myself? Or is that not recommended? I would like to remove /wordpress/ from the url.

  3. Don't bump, as per the Forum Rules.

    Are the WP team sure on what it says?

    Of course we are. Read the docs again. Millions of people have made this move.

    Does it create a rewrite rule in htaccess?

    No, the URL is changed in the database. Permalinks as reset as part of the move in admin.

  4. pal8
    Member
    Posted 1 year ago #

    Don't bump

    I didn't know about this "rule". Most of the forums I use don't have it. And don't need it. FYI, I didn't "bump" I added a second thought. I guess you mean I should have edit my first post instead?

    Of course we are. Read the docs again. Millions of people have made this move.

    You need to read it again. Are you sure that "millions of people" are not lost as I am? Reading it again more carefully made me understand. I didn't first because I'm so tired of overload info and complexity. WP is to complex. This is my point.

    Anyway, this could easily be simplified by letting WP take care of writing and moving. Any problems with permissions would trigger WP to point to this info.

    Under "Using a pre-existing subdirectory install" it ask you to move the .htaccess file. Does that relates to my second bump question?

    I'm careful in what I do. I had a WP installed that was erased when reinstalling. WP overwrited the existing tables which is a huge no-no without warning.

  5. I didn't know about this "rule". Most of the forums I use don't have it. And don't need it.

    Welcome to the WordPress support forums. You really should give that link a read.

    http://codex.wordpress.org/Forum_Welcome

    I'm careful in what I do. I had a WP installed that was erased when reinstalling. WP overwrited the existing tables which is a huge no-no without warning.

    WordPress doesn't do that but you may have. How far if at all did you get with those instruction? Or are you looking for guidance before you make a move like that? It's a little unclear if your at the before or after step.

  6. pal8
    Member
    Posted 1 year ago #

    Welcome to the WordPress support forums. You really should give that link a read.

    Thank you for your welcome. But app 14000 characters. I understood this would be a sensitive topic. Not easy to see the forest for the trees. Part of the complexity :-)

    WordPress doesn't do that but you may have

    Funny, it was WP who did it. Not me.

    It's a little unclear if your at the before or after step.

    Not part of the initial question. A different topic. When making a install WP should not be allowed to over-write existing tables without warning.

  7. *Re-reads the whole topic then re-reads http://codex.wordpress.org/Giving_WordPress_Its_Own_Directory once more*

    Sorry, but I honestly have no idea what you are talking about.

    1) It says to create a wp dir, then make changes with amdin. THEN move the core files. But you can't do anything without admin which are the core files. Are the WP team sure on what it says?

    Right, step 6 says

    6. Move your WordPress core files to the new location (WordPress address).

    Yes. That's correct.

    2) What happens when changing the Site Address? Does it create a rewrite rule in htaccess?

    No. You still have to do the step that says

    If you have set up Permalinks, go to the Permalinks panel and update your Permalink structure. WordPress will automatically update your .htaccess file if it has the appropriate file permissions. If WordPress can't write to your .htaccess file, it will display the new rewrite rules to you, which you should manually copy into your .htaccess file (in the same directory as the main index.php file.)

    That step of updating the Permalink structure will create/update the .htaccess file for you. Just changing the site address or WordPress address wont do that for you.

    A different topic. When making a install WP should not be allowed to over-write existing tables without warning.

    It's your topic but if there's an installation of WordPress in the tables already then you hit this code starting at line 144 of wp-admin/install.php

    // Let's check to make sure WP isn't already installed.
    if ( is_blog_installed() ) {
            display_header();
            die( '<h1>' . __( 'Already Installed' ) . '</h1><p>' . __( 'You appear to have already installed WordPress. To reinstall please clear your old database tables first.' ) . '</p><p class="step"><a href="../wp-login.php" class="button button-large">' . __( 'Log In' ) . '</a></p></body></html>' );
    }

    I've never tried to see if WordPress will install on top of existing non-WordPress tables but the user should have some idea of what tables they've got. Or at least keep backups.

    Also WordPress will create tables starting with the $table_prefix so it could happen I guess but the odds would be unlikely.

  8. pal8
    Member
    Posted 1 year ago #

    Sorry, but I honestly have no idea what you are talking about.

    I thank you for your effort to help but I say the same thing. Read what I said.

    Reading it again more carefully made me understand. I didn't first because I'm so tired of overload info and complexity. WP is to complex. This is my point.

    It didn't die and warned 'Already Installed'. But I see that it should have. I don't have the time but maybe is_blog_installed() should be examined for errors.

  9. Mariokluser
    Member
    Posted 1 year ago #

    I followed the steps for "Using a pre-existing subdirectory install" and when I saved the changes in the General Tab I was thrown out of the Admin-arera and the site looks like a mess.

    Trying to restore everything now. Luckily I've made a complete site back-up beforehand.

  10. @Mariokluser Please start your own topic with your own details. Usually what you've described is easy to fix but your problem has nothing to do with this topic.

    http://wordpress.org/support/forum/how-to-and-troubleshooting#postform

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.