As the title suggests, I am getting this error when trying to enable clean urls:

"The requested URL /admin/settings/clean-urls was not found on this server."

I have seen some other posts about this which suggest some edits to the .htaccess file, but so far copy and pasting and making small edits etc to the file has not worked. I know it will be long but I will put my .htaccess file on the bottom of the post. I'm not sure if it matters but the url the site is currently on is www.alextestsite.mediafxgroup.com, and it is NOT in a sub-directory.

Any and all help would be greatly appreciated - thank you very much!

#
# Apache/PHP/Drupal settings:
#

# Protect files and directories from prying eyes.

Order deny,allow
Allow from all

# Set some options.
Options -Indexes
Options +FollowSymLinks

# Customized error messages.
ErrorDocument 404 /index.php

# Set the default handler.
DirectoryIndex index.php

# Override PHP settings. More in sites/default/settings.php
# but the following cannot be changed at runtime.

# PHP 4, Apache 1

php_value magic_quotes_gpc 0
php_value register_globals 0
php_value session.auto_start 0

# PHP 4, Apache 2

php_value magic_quotes_gpc 0
php_value register_globals 0
php_value session.auto_start 0

# PHP 5, Apache 1 and 2

php_value magic_quotes_gpc 0
php_value register_globals 0
php_value session.auto_start 0

# Reduce the time dynamically generated pages are cache-able.

ExpiresByType text/html A1

# Various rewrite rules.
mod_rewrite on
RewriteEngine on

# If your site can be accessed both with and without the prefix www.
# you can use one of the following settings to force user to use only one option:
#
# If you want the site to be accessed WITH the www. only, adapt and uncomment the following:
# RewriteCond %{HTTP_HOST} !^www\.example\.com$ [NC]
# RewriteRule .* http://www.example.com/ [L,R=301]
#
# If you want the site to be accessed only WITHOUT the www. , adapt and uncomment the following:
# RewriteCond %{HTTP_HOST} !^example\.com$ [NC]
# RewriteRule .* http://example.com/ [L,R=301]

# Modify the RewriteBase if you are using Drupal in a subdirectory and
# the rewrite rules are not working properly.
RewriteBase /

# Rewrite old-style URLs of the form 'node.php?id=x'.
#RewriteCond %{REQUEST_FILENAME} !-f
#RewriteCond %{REQUEST_FILENAME} !-d
#RewriteCond %{QUERY_STRING} ^id=([^&]+)$
#RewriteRule node.php index.php?q=node/view/%1 [L]

# Rewrite old-style URLs of the form 'module.php?mod=x'.
#RewriteCond %{REQUEST_FILENAME} !-f
#RewriteCond %{REQUEST_FILENAME} !-d
#RewriteCond %{QUERY_STRING} ^mod=([^&]+)$
#RewriteRule module.php index.php?q=%1 [L]

# Rewrite rules for static page caching provided by the Boost module
# BOOST START

AddCharset utf-8 .html

RewriteCond %{REQUEST_URI} !^/cache
RewriteCond %{REQUEST_URI} !^/user/login
RewriteCond %{REQUEST_URI} !^/admin
RewriteCond %{HTTP_COOKIE} !DRUPAL_UID
RewriteCond %{REQUEST_METHOD} ^GET$
RewriteCond %{QUERY_STRING} ^$
RewriteCond %{DOCUMENT_ROOT}/cache/%{SERVER_NAME}/0/%{REQUEST_URI} -d
RewriteCond %{DOCUMENT_ROOT}/cache/%{SERVER_NAME}/0/%{REQUEST_URI}/index.html -f
RewriteRule ^(.*)$ cache/%{SERVER_NAME}/0/$1/index.html [L]
RewriteCond %{REQUEST_URI} !^/cache
RewriteCond %{REQUEST_URI} !^/user/login
RewriteCond %{REQUEST_URI} !^/admin
RewriteCond %{HTTP_COOKIE} !DRUPAL_UID
RewriteCond %{REQUEST_METHOD} ^GET$
RewriteCond %{QUERY_STRING} ^$
RewriteCond %{DOCUMENT_ROOT}/cache/%{SERVER_NAME}/0/%{REQUEST_URI}.html -f
RewriteRule ^(.*)$ cache/%{SERVER_NAME}/0/$1.html [L]
# BOOST END

# Rewrite current-style URLs of the form 'index.php?q=x'.
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]

# $Id: boosted.txt,v 1.4 2006/12/05 10:39:19 arto Exp $

Comments

Wolfflow’s picture

Hi , That's a hint i did not go deeper but the first think I saw is:

# Set some options.
Options -Indexes
Options +FollowSymLinks

please try:

# Set some options.
# Options -Indexes
# Options +FollowSymLinks

Share your experience with the Open Source Community
it's not only a choice but a Life Philosophy !!!

Contact me for drupal projects in English, German, Italian, Drupal Hosting Support.

OrbisMedia’s picture

Thanks for your help, but commenting out those lines did not seem to work.

I'm at a loss here since other sites on our gridserver seem to have clean-urls enabled with the same .htaccess folder yet this one will not budge...

Is there any other info I can provide that may help?

Wolfflow’s picture

Do you have safephp installed on the grid-server or any security control software?
Can you provide some more information of your host:

system used
webserver version
php version

can you do a phpinfo?

note:
I miss following code from your provided .htaccess file above

# Protect files and directories from prying eyes.
<FilesMatch "\.(engine|inc|info|install|module|profile|po|sh|.*sql|theme|tpl(\.php)?|xtmpl)$|^(code-style\.pl|Entries.*|Repository|Root|Tag|Template)$">
  Order allow,deny
</FilesMatch>

Share your experience with the Open Source Community it's not only a choice but a Life Philosophy !!!
Some interesting Old & New, Issues & posting on Drupal.org

Contact me for drupal projects in English, German, Italian, Drupal Hosting Support.

uniyolu.com’s picture

RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]"
change this row as

RewriteRule ^(.*)$ /index.php?q=$1 [L,QSA]"

I think this technique will be fixed your problem.
Please write the result if you try this.

http://uniyolu.com

p5systems’s picture

Hello,
Take a copy of your .htaccess file and keep it safe some where in your system now delete every thing from your original .htaccess file and paste this-
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /index.php?q=$1

save and now your clean url will work.