[support] theming primary links, or absolute paths when drupal is in a sub-directory
Amanda Bee
amanda at velociraptor.info
Wed Oct 31 18:06:51 UTC 2007
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Earnie Boyd wrote:
> Quoting Amanda B Hickman <amanda at velociraptor.info>:
>
>> I'm not dying to go the .htaccess route, I promise, but I can't figure
>> out how to persuade drupal that a path in the menu like "/news/" is
>> relative to the whole site, not relative to drupal.
>>
>
> Try path aliasing, e.g. follows:
>
> <code file="/etc/httpd/conf.d/mydomain.conf">
> <VirtualHost *>
> DocumentRoot "e:\var\www\mydomain"
> ServerName www.example.com
> ServerAlias example
> Alias /drupal e:\var\www\drupal-5.2
> Alias /bin e:\var\www\bin
> Alias /sqladmin e:\var\www\phpMyAdmin-2.6.1
> </VirtualHost>
> </code>
I think this means that I would have to define an Alias for anything I
want to link to from within Drupal's menus system that lives outside of
my Drupal installation, right?
That kind of defeats the point.
I think that
RewriteRule ^/drupal//(.*) /$1 [L]
Should fundamentally work: for any path that links to /drupal// assume
that drupal is taking over where it shouldn't and pull the /drupal/
part. Leave the /.
It doesn't, though.
> Earnie -- http://for-my-kids.com/
> -- http://give-me-an-offer.com/
>
- --
Amanda, Bee
http://velociraptor.info/notes
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFHKMQ7rxDTsWdh5zkRAvJAAJwOebyzqhiudS1ITDGHPsjrFBE6qgCeOprr
X1Ru4uGPKYINwRpecnulXfc=
=dge2
-----END PGP SIGNATURE-----
More information about the support
mailing list