I've never seen this before:

This D7 installation runs in a subfolder of my dev server. The same way as all the other installations.

In a view I have a field with the node alias path. But this path I get with the subfolder.

Drupal runs in: myserver/subfolder/mydrupal The path is: this-is-my-node

I should get: this-is-my-node

I get: /subfolder/this-is-my-node

When I overwrite the output of this field with [path] all works fine.

What could be happened?

  • Have you uncommented RewriteBase / in .htaccess? – Collins Jan 19 '15 at 14:50
  • works. but I never had this before... Thank you! – deelite Jan 20 '15 at 9:44
  • Great! Please mark my answer as correct :-) – Collins Jan 20 '15 at 11:49

Open your root .htaccess file and uncomment RewriteBase /

This should set the new root for your Drupal installation when operating out of a sub folder. This is usually required when enabling Clean URL's.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.