Thread:Manual talk:Short URL/Apache/AllowOverride All/reply (2)

Thanks Daniel, that helps. I now have the Apache config code from the Redwerks code generator (which is brilliant for a novice like me):

RewriteEngine On  RewriteRule ^/?wiki(/.*)?$ %{DOCUMENT_ROOT}/mediawiki/index.php [L] RewriteRule ^/?$ %{DOCUMENT_ROOT}/mediawiki/index.php [L] RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-f RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-d RewriteRule ^/?mediawiki/images/thumb/[0-9a-f]/[0-9a-f][0-9a-f]/([^/]+)/([0-9]+)px-.*$ %{DOCUMENT_ROOT}/mediawiki/thumb.php?f=$1&width=$2 [L,QSA,B] RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-f RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-d RewriteRule ^/?mediawiki/images/thumb/archive/[0-9a-f]/[0-9a-f][0-9a-f]/([^/]+)/([0-9]+)px-.*$ %{DOCUMENT_ROOT}/mediawiki/thumb.php?f=$1&width=$2&archived=1 [L,QSA,B]

...and I have the instruction: "Apache config: This configuration is meant to go the same block as whatever VirtualHost or other directive you have your wiki's DocumentRoot, ServerName, etc... already defined in." I presume this means I have to put the code into one of the blocks in  which, in my case, looks like this:

Alias /mediawiki /var/lib/mediawiki  Options +FollowSymLinks AllowOverride None order allow,deny allow from all   Options -FollowSymLinks AllowOverride None   Options -FollowSymLinks AllowOverride None 
 * 1) Uncomment this to add an alias.
 * 2) This does not work properly with virtual hosts..
 * 1) some directories must be protected

So I paste in the Redwerks code into the first directory block (because I am not sure whatelse to do) and go to   and add the extra lines but I find that when I go back to my wiki I have correctly formed short urls   but I now get a 404 Not Found page error.

Any suggestions?