I am using clean url's and mod rewrite and have encounted a small problem in parsing the string,
The clean url that works is url.com/_flie-23.html
RewriteRule ^_file-(.*)$ %{DOCUMENT_ROOT}/newFile/$1 [L]
however I have been getting some requests that fail such as url.com/dirt/_flie-23.html. This now misses the rewrite test. I have tried the following and it works for the /dirt/ but not the clean. any suggestions how I would do for both?
RewriteRule ^([^/]+)_file-(.*)$ %{DOCUMENT_ROOT}/newFile/$2 [L]
UPDATE DoH! just needed to change to
RewriteRule ^(.*)_file-(.*)$ %{DOCUMENT_ROOT}/newFile/$2 [L]
Thx Art