How can i retrive the filename in .htaccess file

Environment variables inside %{}.
Example:
Code:
RewriteCond %{HTTP_HOST} ^([^.]+)\.
RewriteCond %1 !^www$ [NC]
RewriteRule ^(.*)$ http://www.whatever.com%{REQUEST_URI} [R,L]
So, what you need is probably %{SCRIPT_NAME}
 
Back
Top