Forum Moderators: phranque
result$
result/ RED+SHOES
\+ is it OK
RewriteRule foobar widget.html [R=301,L] http://www.example.com/home/lucy24/example.com/widget.html There's also a space missing before the RewriteRule flags.
http://www.example.com/a.html[R=301,L] There's also a space missing before the RewriteRule flags.
That's got to be a typo in the post.
... it didnt seem to work
The original request, and the substitution, are underneath the DocumentRoot
per-directory (htaccess)
The filesystem path to the directory containing the RewriteRule, suffixed by the relative substitution, is also valid as a URL path on the server (this is rare).
RewriteRule widget hoosegow/test-one.html [L] I've been saying all along that / is the default, and it isn't. Where did I get that from?
The original request, and the substitution, are underneath the DocumentRoot
Wonder what, exactly, they mean by ...
... You can also have RewriteRules in <Directory> sections of a config file.
If your RewriteRule is configured as a rewrite alone (no R flag) then targets without leading / are treated as if they did have a /.