Here's a summary of my scenario:
- I'm running Wordpress on a linux environment
- The root directory contains and
index.phpfile that references the subdirectory where my main site's files are (codex link). Let's say this site is example.com
- Example.com works fine and pulls up the content that I have stored in my subfolder
- I have another Wordpress site that I've set up, and I'd like it to be accessible at
example.com/barredirects me to the canonical URL e.g.
No matter what I do, I can't seem to get
example.com/bar to load my other Wordpress site.
Here's what I've done so far.
- Checked to make sure there is no
- Removed any non-standard
.htaccesscontent from both the
/fooand root directories.
- Modified the
/barto contain this (which results in an internal server error)
RewriteRule . /bar/index.php [L]
Followed this guide, which resulted in the error. Any thoughts on how to fix this?
Edit: noticed that this Wordpress environment doesn't ever go to a 404 page. If it's a URL that is similar to a slug that exists it redirects to that slug. If it's a totally unknown URL it redirects to home. However there are no rules for this in
.htaccess nor are there any redirect plugins running.