Thread:Project:Support desk/Short URL Problem/reply (3)

Your rewrite rules aren't be applied because they're defined inside the Directory /home/sample/web/sample.com/public_html/w directive, but the rewrite rule applies to /wiki requests.

You should move them to be directly under the VirtualHost directive.

Also, the documentation say:

Note: Enabling rewrites in per-directory context To enable the rewriting engine for per-directory configuration files, you need to set ``RewriteEngine On´´ in these files and ``Options FollowSymLinks´´ must be enabled. If your administrator has disabled override of FollowSymLinks for a user's directory, then you cannot use the rewriting engine. This restriction is needed for security reasons.

So maybe your .htaccess didn't work because you didn't had Options FollowSymLinks for the directory.