kparberry
Forum Replies Created
-
Matt –
Did you ever get this worked out? I’m having the exact same problems.New sub-directory wordpress (this site was working fine on my old server/testing site) site installed in a regular-old-not-multisite functioning WordPress site
Moved a wordpress install to the sub-folder of an existing wordpress install (changed the database options tables to reflect http://domain/subdomain).
If I use default aka ugly permalinks on the subdirectory install everything is mostly ok. If I switch to pretty /%postname%/ permalinks then only the homepage is found for the sub-site using the http://domain/subdirectory but any of the other site pages redirect to the root folder and 404. I’ve been fighting with this all weekend.
I’m losing my mind and the only option is to get this to work… but I’m at a complete loss. I haven’t changed anything in either .htaccess because I don’t know where to go from here… I’ve tried changing the headers etc.
This is what my current .htaccess says (the rewrite part is also what was setup by the person before me in the main wordpress install):# BEGIN WordPress <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . index.php [L] </IfModule> # CORS Headers <ifModule mod_headers.c> Header always set Access-Control-Allow-Origin: "*" Header always set Access-Control-Allow-Methods "POST, GET, PUT, DELETE, OPTIONS" Header always set Access-Control-Allow-Headers "X-Requested-With, content-type" </ifModule> # CORS OPTIONS RewriteCond %{REQUEST_METHOD} OPTIONS RewriteRule ^(.*)$ $1 [R=200,L] # END WordPress