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 bgedney on
I'm a newb. I'm running apache on Ubuntu and trying to get Clean URLS to work. The test fails. So I followed the documentation.
My http.conf reads
<Directory /var/www>
RewriteEngine on
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]
AllowOverride All
</Directory>
And the virtual host file reads
<VirtualHost *:80>
DocumentRoot /var/www/{Doman-Name-Omitted}/wwwroot
ServerName {Doman-Name-Omitted}
ServerAdmin webmaster@localhost
ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
<Directory "/usr/lib/cgi-bin">
AllowOverride all
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
Order allow,deny
Allow from all
</Directory>
ErrorLog /var/log/apache2/error.log
LogLevel warn
CustomLog /var/log/apache2/access.log combined
Alias /doc/ "/usr/share/doc/"
<Directory "/var/www/{Doman-Name-Omitted}/wwwroot">
allow from all
Options +Indexes
AllowOverride All
</Directory>
HostNameLookups on
ServerAlias *.{Doman-Name-Omitted}
</VirtualHost>
I'm omitting my domain name with {Doman-Name-Omitted} . I don't need to post my configs online for someone who wants to break in to see how all the magic happens.
My .htaccess is the default, excecpt with
RewriteBase /
not commented out.
And yes, the rewrite_module is loaded.
Any ideas?
Billy Gedney
Comments
Clean URLs
There's a long discussion on the various ins and outs here:
https://drupal.org/getting-started/clean-urls
============================
Resonetrics: Better Tools for Building Brands
http://resonetrics.com
http://technologyformarketers.com
http://kittenassociates.org
http://www.linkedin.com/in/sammooreatresonetrics
Yep. I've followed them and
Yep. I've followed them and it still isn't working...
RewriteBase
Perhaps you've already tried this...
I can't think of an installation I have where RewriteBase / is not commented out - what happens if you comment that line?
============================
Resonetrics: Better Tools for Building Brands
http://resonetrics.com
http://technologyformarketers.com
http://kittenassociates.org
http://www.linkedin.com/in/sammooreatresonetrics