I'm not sure what you're looking to do. Keep in mind, a web request comes in and goes to Apache then to .htaccess then to any rules specified in .htaccess and then to whatever the filesystem has (which is where PHP lives). You could use rewrite rules to clean up the url and stuff and you can have your scripts refer to those urls. That would work perfectly fine.