Dear all,
i tried all the suggustions that may solve the problem of clean URL's with apache2. still i am facing the problem. can anybody help me. attached is my .htaccess file info
#
# Apache/PHP/site settings:
#
# Protect files and directories from prying eyes:
order deny,allow
deny from all
# Set some options
Options -Indexes
Options +FollowSymLinks
# Customized server error messages:
ErrorDocument 404 /index.php
# Set the default handler to index.php:
DirectoryIndex index.php
# Overload PHP variables:
#
# If you are using Apache 2, you have to use
# instead of .
php_value register_globals 0
php_value track_vars 1
php_value short_open_tag 1
php_value magic_quotes_gpc 0
php_value magic_quotes_runtime 0
php_value magic_quotes_sybase 0
php_value arg_separator.output "&"
php_value session.cache_expire 200000
php_value session.gc_maxlifetime 200000
php_value session.cookie_lifetime 2000000
php_value session.auto_start 0
php_value session.save_handler user
php_value session.cache_limiter none
php_value allow_call_time_pass_reference On
# Various rewrite rules
RewriteEngine on
Options All
# 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 URLs of the form 'index.php?q=x':
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]
# $Id: .htaccess,v 1.58 2004/10/09 20:41:49 dries Exp $
Comments
Basically you need to remove
Basically you need to remove the uncomment the commented Rewrite directives in the Rewrite Engine block. An exampl would be the following .htaccess file:
And clean urls work fine for me... notice I have removerd other stuff from the above listing just to keep the point at hand...
Hope this helps...
hpk a.k.a. vikram
[De-centralizing the central issues]
National Institute of Design, India
Where i can find the file
Where i can find the .htaccess file?
i did not find it in my home folder , or www/html
i am using Fedora Core 3
Thank you
--
Ahmed Hashim
It is distributed with
It is distributed with drupal in the home directory but is hidden because it starts with a dot and is only copied if you copy the whole folder, not some or all files from it. You can view and copy these files but i dont now much bout linux. try command line > "man ls" to see how to veiw hidden files with "ls" command
http://www.econsultant.co.za
ls -a
"ls -a" would list all files, including hidden ones in a directory.