After upgrading from 4.3 to 4.4, the following regex for block paths does not work anymore: ^(/$|index\.php)^

Only when I acces the front page through index.php the block shows up. When I go to the front page via www.mysite.com/ nothing appears. The forementioned regex did work for drupal 4.3

Thanks for your help.

Dieter

Comments

magnestyuk’s picture

Hi!
I couldn't make it to work with < (/$|index\.php) >, so instead I defined which pages I don't want those blocks to appear:

< ^(?!admin|user|blog|node|forum|tracker) >

it requires a bit of testing, but it works for me.
Better than nothing... :)

dieter’s picture

Thanks a lot for your suggestion! The problem is my site uses clean URLs and apparently this workaround does not work for the clean URLs :-( I really hope this issue ever gets solved.

dieter’s picture

Woohooo, I found the solution (remove spaces after < and before >):

< ^(|index\.php)$\ >

Enjoy it!