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

And I just found a working configuration for SMF and the Wiki. Whew!

I'll post it here so anyone can get the working configuration for SimpleMachinesForum and MediaWiki short/prettyurls working:

RewriteEngine on

RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-l RewriteRule ^$ /wiki/Main_Page [R]
 * 1) uncomment this rule if you want Apache to redirect from www.mysite.com/ to www.mysite.com/wiki/Main_Page
 * 2) 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

RewriteRule ^wiki/?(.*)$ /w/index.php?title=$1 [L,QSA]
 * 1) do the rewrite


 * 1) PRETTYURLS MOD BEGINS
 * 2) Pretty URLs mod
 * 3) http://code.google.com/p/prettyurls/
 * 4) .htaccess file generated automatically on: September 10, 2013, 2:11
 * 5) RewriteBase /

RewriteRule ^profile/([^/]+)/?$ ./index.php?pretty;action=profile;user=$1 [L,QSA]
 * 1) Rules for: profiles

RewriteRule ^(activate|admin|announce|attachapprove|buddy|calendar|clock|collapse)/?$ ./index.php?pretty;action=$1 [L,QSA] RewriteRule ^(coppa|credits|deletemsg|display|dlattach|editpoll|editpoll2|emailuser)/?$ ./index.php?pretty;action=$1 [L,QSA] RewriteRule ^(findmember|forum|portal|groups|help|helpadmin|im|jseditor)/?$ ./index.php?pretty;action=$1 [L,QSA] RewriteRule ^(jsmodify|jsoption|lock|lockvoting|login|login2|logout|markasread)/?$ ./index.php?pretty;action=$1 [L,QSA] RewriteRule ^(mergetopics|mlist|moderate|modifycat|modifykarma|movetopic|movetopic2|notify)/?$ ./index.php?pretty;action=$1 [L,QSA] RewriteRule ^(notifyboard|openidreturn|pm|post|post2|printpage|profile|quotefast)/?$ ./index.php?pretty;action=$1 [L,QSA] RewriteRule ^(quickmod|quickmod2|recent|register|register2|reminder|removepoll|removetopic2)/?$ ./index.php?pretty;action=$1 [L,QSA] RewriteRule ^(reporttm|requestmembers|restoretopic|search|search2|sendtopic|smstats|suggest)/?$ ./index.php?pretty;action=$1 [L,QSA] RewriteRule ^(spellcheck|splittopics|stats|sticky|theme|trackip|about:mozilla|about:unknown)/?$ ./index.php?pretty;action=$1 [L,QSA] RewriteRule ^(unread|unreadreplies|verificationcode|viewprofile|vote|viewquery|viewsmfile|who)/?$ ./index.php?pretty;action=$1 [L,QSA] RewriteRule ^(\.xml|xmlhttp)/?$ ./index.php?pretty;action=$1 [L,QSA]
 * 1) Rules for: actions

RewriteRule ^([-_!~*'$a-zA-Z0-9]+)/([-_!~*'$a-zA-Z0-9]+)/?$ ./index.php?pretty;board=$1;topic=$2.0 [L,QSA] RewriteRule ^([-_!~*'$a-zA-Z0-9]+)/([-_!~*'$a-zA-Z0-9]+)/([0-9]*|msg[0-9]*|new)/?$ ./index.php?pretty;board=$1;topic=$2.$3 [L,QSA]
 * 1) Rules for: topics


 * 1) PRETTYURLS MOD ENDS