Quantcast
Channel: Recent posts across whole site
Viewing all articles
Browse latest Browse all 49197

Multi-site symlinks conflicting with sub-site path aliases

$
0
0

Hello,
So here is my problem, I created a multi-site installation of Drupal using a single source tree with 50+ sub-sites using symlinks for each. The problem I have is if I try to create a page alias on a sub-site that is the same as another symlink sub-site directory Drupal will not display the page. Instead Drupal will validate the URL as the first sub-site's home page.
Here is an example

1) I have a default site at:
www.example.com

2) I have two sub-sites
www.example.com/math
www.example.com/arts

If on the math sub-site I attempt to create a page using pathauto like so:

www.example.com/math/arts

Apache and Drupal will get confused, instead of evaluating "/math/arts" are "/math/" as a symlink and "/arts" is a path alias Apache and Drupal just get confused and ignore anything after "/math/" if the path is also a symlink directory.

I should state that my symlinks all link back to the root of the Drupal installation to make the sub-sites load correctly.

Any ideas on how to fix this?

I have been researching creating a series fo mod-rewrite conditions and rules.. but still haven't got anywhere.. I really hope I don't have to hack the core to address this issue. If anyone has experienced this before I would happy to hear how you solved the problem.


Viewing all articles
Browse latest Browse all 49197

Trending Articles