Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
By chombium on
Hi,
I've installed fresh Drupal 5.10 on Ubuntu 8.04 server and I have a problem enabling Clean URLs.
I configured apache so that the www directory is located in my home folder by adding alias /etc/conf.d/alias file:
Alias /jovan /home/jovan/www/
<Directory /home/jovan/www/>
Options Indexes FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
</Directory>
The apache rewrite module is enabled as well.
I keep getting Eror 404 page not found when I click "Run the clean URL test".
Any ideas how to solve this issue?
TIA, Jovan
Comments
I solved it
After a little bit of googling I've found this post http://drupal.org/node/134439
and I decided to debug the problem.
I've added the following two lines in the apache.conf to enable mod_rewrite logging:
The mod_rewrite log didn't show anything wrong but in the apache error log file I've found the following
It was clear to me that the path where the mod_rewrite module was pointing was wrong, it pointed to the default document root.
I solved the problem by setting:
In the drupal's .htaccess file. The RewriteBase has to be set to the alias of the directory, not to the physical path of the directory.
I hope somebody will find this helpful ;)
Cheers, Jovan