If your second subfolder installation is successful, you may likely run into an issue when WordPress writes its Permalink (within the subfolder). The issue apparently has to do with the subfolder installation and how it sees the site root path. WordPress will normally write a .htaccess file in the installation directory, and that folder is usually the website root folder. Here is the applied solution:
change to new WordPress .htaccess (within the demo subfolder)
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /demo/
RewriteRule ^index.php$ – [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /demo/index.php [L]
</IfModule>
# END WordPress
Related Posts:
- WP install in sub-dir white screen
- Creating a copy of a website in a subdirectory, wp-admin redirect problem
- Install second wordpress in root subfolder, Error 404
- File and directory permissions
- Permalink Issues by Installing WordPress in Subdirectory / Subfolder
- Place static HTML files in path below WordPress page
- .htaccess for wordpress inside another wordpress install
- Isolating WordPress to a subfolder
- Permalinks not working on second wordpress installed in a subdirect
- Move wordpress to folder without changing urls
- Change wp-content without changing the name of the folder
- How to restrict access to wp-content, wp-includes and all sub-folders
- Two domains on one WordPress Installation
- Redirect main domain to subdirectory
- Exclude subfolder from WP-redirect works with html but not php files
- Giving WordPress its own subdirectory – nginx
- WordPress On subfolder
- Can’t Access Subdirectory
- Fixing custom 404 pages broken by WordPress in a subdirectory
- Drawbacks to using Options -Indexes
- subdirectory install breaking existing links
- htaccess, site and staging in subdirectories
- External content won’t load in iframe in Safari
- Disable directory browsing of uploads folder
- I have a page using a pretty url and a mod_rewrite rule matching it. I expected it to give an error but it’s working. Why?
- Access sub-domain when root public_html is protected with .htaccess password
- Cannot access subdirectory subpages
- How to execute WordPress as though it is in the root folder while it is installed in a subdirectory?
- WP Codex answer incomplete? Put WP in subdirectory. .htaccess change required
- Remove subdirectory from links
- How to properly give WordPress its own directory
- htaccess- to hide subdirectory slug only from the post
- How to direct users to a subcatalog
- Installing wordpress on subdirectory 2 levels down
- Cannot Override WordPress 404 for a Sub-Directory
- htaccess mod_rewrite not working
- .htaccess and virtual host configuration for WP in its own directory
- Giving WordPress it’s own directory and using .htaccess Directory Index
- Improve wordpress security by hiding non public resources
- Move WordPress to subdirectory, keep ALL URLs
- htaccess rewrite conflict with wordpress rules and ssl
- Site redirects to wrong url when saving settings
- Remove year and month in URL using .htaccess
- Unable to access WP admin
- Sub-domain or 2nd, temporary different domain?
- Using WordPress only for the backend, and using AngularJS as a frontend
- Protect Upload Folder Files With Ampersand Problem
- .htaccess and WordPress Admin Bar
- Blocking access to wp-login via htaccess not working
- How to Redirect huge numbers of URLs to another URLs?
- Struggling with add_rewrite_rule
- Cannot mask WordPress page URL using .htaccess
- How can I make an htaccess file on a Mac? [closed]
- Change the actual (or viewable) WordPress directory structure
- Restricting user login by IP address
- WordPress overrides custom 404 page with it’s own
- New installation can’t be found due to htaccess of the original non-WordPress site
- Case insensitive header params for API request
- 301 Redirect domain Sub-folders to Subdomain subfolder
- Override 404 page with htaccess
- Htaccess Rewrite reverts to default .htaccess file
- WordPress – Promoting A Dev Build In A Subdirectory To Production / Root Directory
- .htaccess RewriteRule always overwritten – how to prevent?
- Redirect old domain with query paramaters
- What might be removing my redirects from my htaccess?
- How to host unrelated pages on WordPress domain
- WordPress .htaccess to consider blog as directory
- Multisite installation on an existing single installation
- Password protect directory but not files
- google xml sitemap won’t work on directory install
- fix 302 redirection error on https
- main-domain of wordpress keep redirecting to subdomain
- How to deny access to a particular wordpress site url
- Rewrite URL in address bar for a specific page [closed]
- Home links redirects to old site
- Selectively Disabling PHP via .htaccess in Root Directory
- Moving from subdirectory and subdomain -> root
- Configure .htaccess to have a WordPress single site installation with all subdomains pointing to the same pages?
- Rewriting subfolders to specific parent folder in WordPress
- Azure WordPress deny access to xmlrpc
- domain redirection is not working from old to new
- Deny,Allow on .htaccess isn’t working
- Using htaccess to prevent spam through wp-comments-post.php
- modifying htaccess for localhost with a custom port
- .htaccess redirects for posts in new directory and new domain
- domain.in/wp-admin give the result to 403 Access to this resource on the server is denied!
- Installation directory for WordPress and child theme
- Restrict Content for only Contributors via .htaccess
- Redirect from domain.com to subdomain.domain.com
- How do I block a subdirectory from WordPress theming?
- 3 domains, 1 wordpress install, redirecting and changing domains on live site
- WP white screen of death after duping a site that works fine on same server
- MAMP.app & .htaccess – Can’t override after config
- register_post_type and register taxonomy and htaccess
- Why ‘Authorization Required’ is coming on wordpress login
- Restricting direct downloads of wp content files, but allow them on the website.
- Forward blog requests to another URL
- .htaccess rewrite rule stopped working for wordpress site after moving server
- How To Add CSP frame ancestors in WordPress Website? [closed]
- How do I modify each instance of setcookie?