Can the redirect from "sites/sub1" directory to drupal core directory be accomplished with something else than symlinks?
For instance, would an index file in "sites/sub1" directory with the following entry work somehow?

location.href="http://example.com"

Mikael

Comments

cog.rusty’s picture

No, that would just take you cleanly to the main site.

The special property of symlinks is that they leave the requested URL unchanged. Why don't you want to use them?

ericxb’s picture

I just sussed this out. Frankly, I didn't consider using symlinks (it didn't occur to me and I didn't see that idea in the multisite docs I found).

Let me know if it works for you.

http://drupal.org/node/321355#comment-1074575

mi-sjo’s picture

I have my Drupal sites at a hosting company. Not allowed to create symlinks (or http.conf..).
Does not seem like they can do parking of domains either...

I need to run my sites against a single code base so this is my last (?) attempt to get it to work.
Otherwise I have to consider moving my sites to some other place.

mi-sjo’s picture

By the way, can the rewrite rules be implemented in the .htaccess file directly? Do not have access to apache config.

cog.rusty’s picture

By "not allowed", do you mean that they forbid them, or that they don't give you shell access to let you type commands? In the second case you could try to do it with a php script.

I am not sure you can use ericxb's method in .htaccess, because you can do the rewrites but not the aliases, so drupal won't be found at the destination of the rewrites.

mi-sjo’s picture

I do not have shell access... I just learned now that "web-aliases" in my domain setup can be the way to go.
I will try this and report back shortly.

Mike

mi-sjo’s picture

Have updated my other thread: http://drupal.org/node/322984#comment-1083527