Thread:Project:Support desk/ShortURLs trouble... please help./reply (2)

Hi, Ciencia!

My thanks for taking a look at this.

How would I do the RewriteCond in order to ensure that the specific rule doesn't try hitting wiki?

Actually, a quick google tells me that I should do something similar to the following:

RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-l RewriteRule ^/?wiki(/.*)?$ /w/index.php [PT,L,QSA]
 * 1) If the request is not for a valid directory
 * 1) If the request is not for a valid file
 * 1) If the request is not for a valid link

Or rewrite the prettyurl bit so that it doesn't mangle the wiki. I have yet to figure out how to do this, though. I'm working on learning how .htaccess rules work, but it seems like arcane black magic to me.

Still, I'd like to thank you!