I’m trying to get a subfolder structure working and found this thread really helpful.. for something I thought would be simple - this is giving me some grief.
Aarons .htaccess rewrite rules worked for me... after 1 change, uncomment the first line so its:
RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} ^(www\.)?top-level-domain\.org$
RewriteCond %{REQUEST_URI} !^/subdirectory/
RewriteRule ^(.*)$ subdirectory/$1 [L]
So... to my next problem:
wayfinder is still generating url’s like ’top-level-domain.org/subdirectory/foobar’
so you could type ’top-level-domain.org/foobar’ into your browser bar and it would work... but any links wayfinder generated on that page would contain ’subdirectory’
Things I’ve tried:
-adding ’<BASE href="top-level-domain.org" />’ to my <HEAD> - no joy.
-clearing cache (a lot of times.. just out of frustration)
-changing RewriteBase in /foobar/.htaccess (doesn’t seem to do anything at all?!)
to my naive understanding the problem must be to do with [(site_url)], its being detected correctly.. because the site is indeed located at "top-level-domain.org/subdirectory/" .. its just that I want it to think its "top-level-domain.org"
Any thoughts?