woocha wrote:The problem is that all users are usnig the details.php file in the root and that is where the htaccess file has to be. So I really can't make the file users specific.
Not sure how this would affect the use of .htacess of php functions for rewrites.
As for using a function.. I have one site where I allow people to generate their own filenames for each page generated. If it is allowed (within user-allowed paths) the path s stored in a database. I use .htaccess to rewrite all URLS that are not in a predefined set of 'protected' folders to a processingfile & send the requested file as a variable. You can then query the database for that path.
It is an old system, and I do not recommend it, as getting it to work was a *****. But.. it now works fine.