[support] theming primary links, or absolute paths when drupal is in a sub-directory

Cog Rusty cog.rusty at gmail.com
Thu Nov 1 00:41:06 UTC 2007


On 10/31/07, Amanda B Hickman <amanda at velociraptor.info> wrote:
> Actually, Cog (is that a real name, cog rusty?) got me started. Reading
> up on RewriteCond and wildcards got me as far as ...
>
>   RewriteCond %{REQUEST_URI} ^/drupal//.*
>   RewriteRule (.*) /$1 [L]
>
> I'm halfway there. Or three quarters of the way there. Nine tenths. Now
> what I've got is that the menus link to "/drupal//news/" and the page
> loads the content that also appears at "/news/" sitewide. Which of
> course has forced me to realize that what I really want is not URL
> rewrites, but actual redirects. Still, this keeps the site intact as a
> whole so it is plenty good enough.


Glad that you figured out something with those rewrites. The only way
I could think for making the links not to refer to Drupal at all is to
abandon the menu system and put your menu links directly in a block
using PHP like this:

$_SERVER['HTTP_HOST'] . '/news';


More information about the support mailing list