Thread:Project:Support desk/Removing indexdotphp from the URL?/reply (2)

Thanks a lot! First attempt failed, but I'm sure I'm on the right path. My service provider uses an Apache/LiteSpeed server. I used the wizard linked from the guide. Created .htaccess and added to localsettings.php "/wiki/.htaccess" RewriteEngine On RewriteRule ^/?wiki/wiki(/.*)?$ %{DOCUMENT_ROOT}/wiki/index.php [L] RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-f RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-d RewriteRule ^/?wiki/images/thumb/[0-9a-f]/[0-9a-f][0-9a-f]/([^/]+)/([0-9]+)px-.*$ %{DOCUMENT_ROOT}/wiki/thumb.php?f=$1&width=$2 [L,QSA,B] RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-f RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-d RewriteRule ^/?wiki/images/thumb/archive/[0-9a-f]/[0-9a-f][0-9a-f]/([^/]+)/([0-9]+)px-.*$ %{DOCUMENT_ROOT}/wiki/thumb.php?f=$1&width=$2&archived=1 [L,QSA,B] "/wiki/LocalSettings.php" $wgScriptPath = "/wiki"; $wgScriptExtension = ".php"; $wgArticlePath = "{$wgScriptPath}/wiki/$1"; $wgUsePathInfo = true;
 * 1) The URL base path to the directory containing the wiki;
 * 2) defaults for all runtime URL paths are based off of this.
 * 3) For more information on customizing the URLs please see:
 * 4) http://www.mediawiki.org/wiki/Manual:Short_URL

The problem now is twofold:
 * 1. The page links are changed not from "/wiki/index.php/Page_name" to "/wiki/Page_name", but instead to "/wiki/wiki/Page_name"
 * 2. Both "/wiki/wiki/Page_name" and "/wiki/Page_name" gives an error message, "resource not found". So I can't add a page there. However, I can still access the page by manually changing the url to "/wiki/index.php/Page_name".