I tested your config on my machine and it works as expected.
I tested only the 3 lines you sent but not the previous redirect to
http://students.iiit.net/~deepak_r/$1
so probably that's where the problem is.
If I were you, I'd try to get rid of the RewriteBase directive to see what's
happening.
Also, the RewriteCond %{REQUEST_FILENAME} !-d is kind of useless, or better
said redundant (imho). I took it out and works ok again.
hth,
Lian
> -----Original Message-----
> From: Rajasekaran Deepak [mailto:deepak_r@students.iiit.net]
> Sent: Wednesday, June 25, 2003 8:58 PM
> To: users@httpd.apache.org
> Subject: [users@httpd] Hiding file extensions using htaccess
>
>
> I want to hide file extensions. MultiViews is enabled but it
> doesn't seem to be working. I had attached a copy of httpd.conf
> with a previous mail. My htaccess file contains:
>
> RewriteCond %{REQUEST_FILENAME} !-d
> RewriteCond %{REQUEST_FILENAME}\.shtml -f
> RewriteRule ^(.*)$ $1.shtml
>
> But the above lines do not allow files to be accessed without
> the ".shtml" extension. Could you tell me what the mistake in my
> htaccess file is? A soft link to the whole htaccess file is at:
>
> http://students.iiit.net/~deepak_r/htaccess
>
> Thanks in advance,
> Rajasekaran Deepak
>
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> " from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
|