in a project i have .htaccess files in many Subdirectories.
here is an example Structure:
project/.htaccess
project/admin/.htaccess
project/admin/pdf/.htaccess
in the last one i successfully use the following:
Options +FollowSymLinks
RewriteEngine On
RewriteBase /project/admin/pdf/
RewriteRule ^([pdf\.actions]+)$ pdf.out.actions.php [QSA]
this works fine, if the Project Folder is placed directly in the root directory. all other subdirs have same htaccess logic, now if the user needs to put the project in any other directory rather than root, he/she has to change all RewriteBase in all htaccess Files in all subdirectories of the project.
my question: how to rewrite my htaccess content, so i get the same result as mentioned above but with "dynamic" base or without Base...etc? i tried somany things without success.
i removed the line RewriteBase /project/admin/pdf/
and tested it, i get site not found...etc!
any Idea?
thanks