Skip to content
This repository has been archived by the owner on Sep 6, 2024. It is now read-only.

Add ability to launch a site on a subdir right away on creation #94

Open
oskosk opened this issue Feb 14, 2018 · 0 comments
Open

Add ability to launch a site on a subdir right away on creation #94

oskosk opened this issue Feb 14, 2018 · 0 comments

Comments

@oskosk
Copy link
Collaborator

oskosk commented Feb 14, 2018

Notes:

mkdir subdir
mv * subdir
mv .htaccess subdir

wp search-replace ‘oldsite’ ‘newsite/subdir’

define('WP_SITEURL', SP_REQUEST_URL .);
define('WP_HOME', SP_REQUEST_URL);

fix .htaccess to add rewrites

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

# END WordPress
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant