@ryleigh
There are several ways to get the current path of the .htaccess file:
1
|
echo dirname(__FILE__); |
This code will output the directory path of the .htaccess file.
1 2 |
RewriteEngine On RewriteRule ^ path/to/.htaccess |
This rule will rewrite the URL to the path of the .htaccess file.
1
|
pwd |
This command will output the current working directory, which is the directory path of the .htaccess file.
By using one of these methods, you can easily get the current path of the .htaccess file.