Just for those who might also be struggling with this.

My drupal working directory is under my home directory on this ubuntu system;

/home/myname/public_html/drupal/

In order to get clean urls working, the 'RewriteBase' for apache must be;

RewriteBase /~myname/drupal/

While it looks the same, the following does not work;

RewriteBase /home/myname/public_html/drupal/

(Thanks to the post on SmallOrange;)

http://forums.asmallorange.com/lofiversion/index.php/t9447.html

Comments

ceejayoz’s picture

That's because RewriteBase works on the URL, not the file path.

That RewriteBase will only work if you access your website at http://domainorIP/~myname/drupal/. A RewriteBase directive essentially sets a prefix on all the RewriteRules, so a rewrite rule for /admin works at /~myname/drupal/admin instead.

ItangSanjana’s picture

Thanks for the hint, still relevant in 2011 :)

ttnk’s picture

thanks for this post, very usefull