Freebsd 6.2, Apache 2.2.4, Drupal 5.1
httpd.conf includes:
LoadModule rewrite_module libexec/apache22/mod_rewrite.so
Drupal is installed in
/usr/local/www/apache22/data
/usr/local/www/apache22/data/drupal/.sites/default/settings.php includes:-
$base_url = 'http://localhost/drupal';
This is what I have added to
/usr/local/www/apache22/data/drupal/.htaccess:-
*{Directory drupal}
RewriteEngine on
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]
*{/Directory}
* {} symbols are used because the normal brackets do not format properly for some reason
I have restarted apache, but when I 'Run the clean URL test' in
Administer > Site Configuration > Clean URLs
I get a 404
The requested URL /drupal/admin/settings/clean-urls was not found on this server.
Can anyone spot what I have done wrong or ommitted?
Could it be the directory entry? maybe it should be '/'....
Comments
Remove your HTACCESS file
Remove your HTACCESS file and re-upload the standard one - it worked for me!
-----------------------------------------------------------------
Michael O'Toole
Gay Youth :: South East - Founder & Operations Administration
Standard .htaccess does not work
I only changed the .htaccess file because the 'clean urls' test did not work.
htaccess question - trouble with clean URL's
I'm having trouble with turnng on clean URL's as well. My site is with Netfirms and .htaccess is enabled.
I'm getting this error when I run the test: The requested URL /admin/settings/clean-urls was not found on this server.
Here's the newbie question, where can I find the .htaccess file? I've searched every directory and can't find it. And if I find somehow that it's corrupted where can I find a "standard" htaccess file to replace the bad one?
Where does this thing live?
Thanks for your time.
~J
.htaccess
Goto your Server Root folder (WWW) and find it. It should be there.
how to enable clean url and remove ' /admin/settings/clean-urls
I have posted the solution of this out here how to enable clean url and remove ' /admin/settings/clean-urls was not found on this server.' problem, i have also posted a .htaccess file i found on drupal nodes to solve this problem. Its a standard one that should help everybody.
Thanks.
...after transferring from
...after transferring from sub-directory to root...
Try running update.php (http://yourdomain.com/update.php)
worked for me...
.htaccess invisible on Macs
May help someone:
I had this problem; seeing this thread, and checking server, realised that lacked .htaccess file on site.
This because I unpacked Drupal on my computer, then uploaded files: but as using a Mac, couldn't see .htaccess on my computer. Used Onyx to see "hidden" files, uploaded the file, and ok now.
_________
___________________
CheungChauHK 長洲HK - South China Sea island in Hong Kong.
____________________________
DocMartin and Hong Kong Outdoors
Clean .htaccess
Yes its 2008 and the same simple procedure worked for me. get the clean .htaccess from the official pack