Forum Moderators: phranque
> When doing a rewrite to a file in same dir as .htaccess do you need to specify the full path?
No, it's not required.
> If you don't use the full path what implications might there be?
Remember that the rule can be applied in the current directory, or in any subdirectories of that directory. Therefore, if you don't specify at least a server-relative path, you need to make sure that your pattern only matches in the directory you want it to match in.
I assume here that you are asking about
RewriteRule ^pattern$ substitution [L] RewriteRule ^pattern$ [b]/[/b]substitution [L] If you are asking about
RewriteRule ^pattern$ [b]/[/b]substitution [L] RewriteRule ^pattern$ [b]http:[i][/i]//www.example.com/[/b]substitution [R=301,L] The first version can be used to "alias" URLs to filenames, while the second version (using a 301 redirect) is used to inform user-agents that they need to update their URL database to use the new URL (if possible).
Jim