Thread:Project:Support desk/Trouble after adding $wgArticlePath/reply (2)

I am using Wordpress for the website, it generated it's own htaccess file, with two different url rewrite rules. The url rewrite works if add it to the end of the file, but I get a 404. Putting it at the beginning of the file allows the rewrite to work completely, and I can access the wiki with a more desired url. However, if I add the rule to the beginning, I can no longer access the main site. Going to www.example.com redirects me to www.example.com/wiki/Main_Page

Here is the .htaccess, if it helps:



RewriteEngine On

RewriteBase //

RewriteRule ^index\.php$ - [L]

RewriteCond %{REQUEST_FILENAME} !-f

RewriteCond %{REQUEST_FILENAME} !-d

RewriteRule ^(.*)$ $1.php





RewriteEngine On

RewriteBase /

RewriteRule ^index\.php$ - [L]

RewriteCond %{REQUEST_FILENAME} !-f

RewriteCond %{REQUEST_FILENAME} !-d

RewriteRule. /index.php [L]





RewriteEngine On

RewriteRule ^/?wiki(/.*)?$ %{DOCUMENT_ROOT}/w/index.php [L]

RewriteRule ^/*$ %{DOCUMENT_ROOT}/w/index.php [L]



The last rule is the rule used to rewrite the url for the wiki