If you want your WP site to function completely in subfolder, just set it up there as usual (including .htaccess
) and do not add any directives to the root.
Setup of .htaccess
in root, while WP is in subfolder, is only necessary if you want to have core files (and so admin area) there, but have site itself be root-based. As per Giving WordPress Its Own Directory instructions in Codex.
Related Posts:
- File and directory permissions
- Place static HTML files in path below WordPress page
- .htaccess for wordpress inside another wordpress install
- 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
- Redirect main domain to subdirectory
- Exclude subfolder from WP-redirect works with html but not php files
- Can’t Access Subdirectory
- Fixing custom 404 pages broken by WordPress in a subdirectory
- WP install in sub-dir white screen
- Drawbacks to using Options -Indexes
- WordPress installed in root, need second in subdirectory with different domain
- 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?
- Creating a copy of a website in a subdirectory, wp-admin redirect problem
- 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
- Install second wordpress in root subfolder, Error 404
- 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
- .htaccess and 500 error, extra character added
- WordPress .htaccess subdirectory problem
- Static raw HTML page
- htaccess rewrite for author query string when WP is in subfolder
- .htaccess file redirecting to parent directory
- WordPress in sub directory wp-admin problem
- Correct htaccess to display page while also passing in GET parameters
- What is the role of .htaccess file in WordPress?
- How have I misconfigured basic auth for my wordpress site?
- Remove File Extension for Page Outside of WordPress
- WordPress trims off the forward slash when import
- WordPress best solution shared theme for consumers and businesses (two url’s one instaltion)
- Removing code added to htaccess with insert_with_markers
- WordPress On subfolder
- WordPress 404 on Subdomain
- How to redirect subcategories to a page?
- Override htacces rule only for specific directory
- How To Allow Only Specific User Agent To Access a URL?
- How can I enable keep alive (Not accessing to Apache)
- htaccess has broken my site
- TimThumb & htaccess : clean url
- HTTP Error 406 always on site?
- Point all URLs to homepage but maintain URL
- htaccess working on local server but not on live server
- How to write .htaccess so that https is on for subpages only but not the home page
- Only Allow Front End Access
- .htacess rewrite condition: page to seconddomain/page
- Custom rewrite rule, url returning 404
- ReDirect subfolder link to another sub-folder and force SSL
- mod_rewrite doesn’t work as I want even with JSON API Plugin disabled
- WordPress .htaccess file gives issues with subdirectory
- W3 Total Cache CSS & JS files GZip issues [closed]
- WP Super Cache unable to locate cache file for only the homepage
- Cannot login to WordPress site after changing .htaccess for security purposes
- WordPress permalink, stop redirection
- add_rewrite_rule to remove /category/ from permalink
- disable WordPress 404 for one specific page/folder to receive actual php errors
- .htaccess Non-‘www’ to ‘www’ Subdomain Redirection Only Works for Homepage
- Non WordPress Folder in a WordPress Site
- Can’t access htaccess [closed]
- Htaccess rewrite based on query string, not working [closed]
- Redirect all subdomains to root domain
- Change root directory
- Htaccess maintenance page rules that actually work with WordPress?
- How to allow only vpn access to dashboard on Bitnami WordPress by IP address restricting
- WordPress not linking correctly with .htaccess redirect to subdirectory
- Blocking wp-login in HTACCESS has also blocked password protected pages
- htaccess redirect to path
- Non-wordpress subdomain on Multisite Installation
- Unable leverage Browser Caching on AWS Bitnami stack (Apache) through W3TC and Cloudfront CDN
- Unable to find ‘full-path’ to my 404.php file
- Rewrite rules and maintain URL
- Use htaccess to redirect wordpress non-existent page to homepage
- Subfolder renaming
- Resource 404 error on multisite subdirectory install
- Targeting .htaccess file with file_put_contents
- Redirect Loop in Regex Moving to HTTPS
- .htaccess file changes disappear
- Fresh wordpress installation in sub-directory not accessible
- WordPress login bug. Need an emergency solution
- 403 forbidden due to .htaccess?
- Where is the htaccess in wordpress.com hosting?
- rewrite rule on plugin activation
- Debug errors for “Destination directory for file streaming does not exist or is not writable”
- WordPress redirection
- Home page returns 404
- Browser Caching .htaccess