Name it "dir" instead of "dir.php", do the .htaccess to process "dir"
as php, then read $PATH_INFO to get the /subdir... stuff.
I may have a few details wrong, but that's the idea. I have the same
situation as you.
Hope this helps.
Mihailo Dzigurski wrote:
> How can I force dir.php to execute on http://www.mysite.com/dir/
> and all other subdirectories, which actually doesn't exists? I
> tray to put ForceType in .htaccess file, and this doesn't work.
>
> This is an example what I mean: http://www.mysite.com/dir/
> http://www.mysite.com/dir/subdir/
> http://www.mysite.com/dir/subdir/subsir/
>
> When I access any of subdirectory, I need to execute same
> dir.php, which will display records from database based on path.
>
> P.S. I can only access to .htaccess file of apache configuration
> files.
John Platte
"Truth binds the mind to what satisfies it,
but worldly thinking does not satisfy
and therefore ignites curiosity."
-- St. Theophan the Recluse
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]