Forum Moderators: phranque
Currently my rewriterules look like this,
RewriteRule ^$ /filename.php?var=1 [L]
Which sends them to the filename.php file which looks like this,
<? include( '/usr/path/files/page.php' );?>
Is it possible just to directly access my files in htaccess like this,
RewriteRule ^$ /usr/path/files/page.php?var=1 [L]
The idea would be to keep all php in the root directory. I've tried messing around with RewriteBase but am having no luck.
On reflection, I hope you will appreciate the security problems that are avoided by doing this.
You can probably do this direct-php-access trick if you put the code in httpd.conf
Jim