For example,
/.htaccess
- Code: Select all
RewriteEngine on
RewriteCond %{HTTP_HOST} ^www\.example\.com$
RewriteRule ^(.*)$ http://example.com/$1 [R=permanent,L]
/subfolder/.htaccess
- Code: Select all
RewriteEngine on
RewriteRule ^test.txt$ source.txt [L]
So www.example.com/subfolder/test.txt points to example.com/subfolder/source.txt
Unfortunately, the /.htaccess rule seems to be ignored when I try this.