I have a drupal instance on my server and as far as I can tell Apache is configured for mod_rewrite but when I try and configure Drupal for clean URL's it doesn't seem to pick it up.
I do have the .htaccess file that came with drupal in the the /var/www directory which is the apache document root.
Any ideas on how to get Drupal to recognize the clean url's?
Try uncommenting the RewriteBase rule in your .htaccess file. If your site is rooted at /var/www and /var/www/index.php is what corresponds to http://example.com/index.php , try:
RewriteBase /
-Seth
Martin Hooper wrote:
I have a drupal instance on my server and as far as I can tell Apache is configured for mod_rewrite but when I try and configure Drupal for clean URL's it doesn't seem to pick it up.
I do have the .htaccess file that came with drupal in the the /var/www directory which is the apache document root.
Any ideas on how to get Drupal to recognize the clean url's?
On Tue, Jan 12, 2010 at 5:59 PM, Seth Freach sfreach@gmail.com wrote:
Try uncommenting the RewriteBase rule in your .htaccess file. If your site is rooted at /var/www and /var/www/index.php is what corresponds to http://example.com/index.php , try:
RewriteBase /
-Seth
Already got that in there still not working...
Also what perms does the .htaccess need?
-rwxr--r-- 1 www-data www-data 4199 2010-01-12 18:16 .htaccess
Thats what Ive got...
I have a drupal instance on my server and as far as I can tell Apache is configured for mod_rewrite but when I try and configure Drupal for clean URL's it doesn't seem to pick it up.
If you have that, then Drupal will work. First thing is to confirm that it's really working with a very simple mod_rewrite test. If that fails, then you know what the problem is.
F
Make sure you have AllowOverride set in Apache for the host/Vhost. For testing and dedicated servers I generally set it to all:
http://httpd.apache.org/docs/2.2/mod/core.html#allowoverride
Jamie Holly http://www.intoxination.net http://www.hollyit.net
On 1/12/2010 12:55 PM, Martin Hooper wrote:
I have a drupal instance on my server and as far as I can tell Apache is configured for mod_rewrite but when I try and configure Drupal for clean URL's it doesn't seem to pick it up.
I do have the .htaccess file that came with drupal in the the /var/www directory which is the apache document root.
Any ideas on how to get Drupal to recognize the clean url's?
On Tue, Jan 12, 2010 at 6:03 PM, Jamie Holly hovercrafter@earthlink.net wrote:
Make sure you have AllowOverride set in Apache for the host/Vhost. For testing and dedicated servers I generally set it to all:
http://httpd.apache.org/docs/2.2/mod/core.html#allowoverride
Its an Ubuntu server - Which configuration file should I add it to..?
On Tue, Jan 12, 2010 at 11:50 PM, Martin Hooper martin.hooper@gmail.comwrote:
On Tue, Jan 12, 2010 at 6:03 PM, Jamie Holly hovercrafter@earthlink.net wrote:
Make sure you have AllowOverride set in Apache for the host/Vhost. For testing and dedicated servers I generally set it to all:
http://httpd.apache.org/docs/2.2/mod/core.html#allowoverride
Its an Ubuntu server - Which configuration file should I add it to..?
/etc/apache2/sites-enabled/000-default
It depends on how you actually got the site and server set up. If the site as running as a VHost then it's best to put it in the VHost directive (check /etc/apache2/sites-enabled).
If you have problems finding that then you can just add it to the base /etc/apahce2/apache2.conf file:
<Directory /path/to/drupal/installation> AllowOverride all </Directory>
Just remember to restart apache after you do the changes so they kick in.
Jamie Holly http://www.intoxination.net http://www.hollyit.net
On 1/12/2010 1:20 PM, Martin Hooper wrote:
On Tue, Jan 12, 2010 at 6:03 PM, Jamie Hollyhovercrafter@earthlink.net wrote:
Make sure you have AllowOverride set in Apache for the host/Vhost. For testing and dedicated servers I generally set it to all:
http://httpd.apache.org/docs/2.2/mod/core.html#allowoverride
Its an Ubuntu server - Which configuration file should I add it to..?
On Tue, Jan 12, 2010 at 6:28 PM, Jamie Holly hovercrafter@earthlink.net wrote:
It depends on how you actually got the site and server set up. If the site as running as a VHost then it's best to put it in the VHost directive (check /etc/apache2/sites-enabled).
If you have problems finding that then you can just add it to the base /etc/apahce2/apache2.conf file:
<Directory /path/to/drupal/installation> AllowOverride all
</Directory>
That was it - Thanks guys!