Hi Drupal community...I have been wresling with the clean URLs option and for some reason I don't get it to work properly. I hope that one of you can spot the error.
I have set the httpd.conf file in /etc/httpd/conf/httpd.conf as:
<Directory /var/www/vhosts/mydomain.nl/htdocs>
AllowOverride all
RewriteEngine on
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]
</Directory>
I have the drupal .htaccess file in the docroot and I've tested that it works by putting something bogus in it...it will come back with a good old error message.
When i do the "clean URL test" at ?q=admin/config/search/clean-urls it will just refresh the page, no option to turn on clean URLs, nor an error page.
I assumed that something in the .htaccess must be failing, but when I manually change my URL from http://dev.mydomain.com/?q=node/1 to http://dev.mydomain.com/node/1 it loads the page properly, so that makes me think that the .htaccess is doing its work partially anyway. But when I however create a new basic page, it will still display the ?q=, when I make it into a menu link, it still has the ?q= query stuff.
So the clean URL is ending up at the correct node, but it does not get changed in the address bar automatically, nor does Drupal create new pages, links and menu's with the clean URLs, and this is probably related to the clean URL test not working...
Any ideas?
Comments
oke following the comments on
oke following the comments on this page http://drupal.org/node/881376 I've manually changed the URL query from www.mydomain.com/?q=admin/config/search/clean-urls to www.mydomain.com/admin/config/search/clean-urls, this displayed the checkbox to enable clean URLs, and its working now. Somehow the opening up of the cleand URL page failed, and also failed to display and error, which I guess is correct as there was nothing wrong with the page..anyway...solved
When you are in the front
When you are in the front page( such as htp://drupal.org ; not http://drupal.org/node), hover the menu links to see if menu paths have clean-urls enabled or not.
Anyway, by default, /?q=node won't redirect to /node unless you use Global Redirect module.
What's new and changing in PHP 8.4
Clean URL Option Not Visible on Content Menu
Took awhile, but the simple fix is to enable the PATH MODULE. Did this and the Clean URL option is now appearing on the CONTENT Admin pages.