*Re-reads the whole topic then re-reads https://codex.www.ads-software.com/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.