Redirect to dynamic relative paths with .htaccess?
问题 Is it possible to make .htaccess "understand" dynamic relative paths and redirect to them properly? My setup goes as follows: http://domain.com/htroot/aaa/xyz http://domain.com/htroot/bbb/xyz http://domain.com/htroot/ccc/xyz And so on. For the sake of the example, "htroot" contains the .htaccess I need to modify. The following sublevels (aaa, bbb, ccc) can be any a-z0-9 name, and the folders have an index.php (or any other .php to be redirected to). The xyz should work as a parameter of sorts