Note that there are some explanatory texts on larger screens.

plurals
  1. POApache2+Wordpress, not displaying the index.php but download
    text
    copied!<p>I just moved my Wordpress site from using nginx to Apache2, and found that the homepage could not be shown, instead, the browser prompt me to download it (the file download is exactly the one of index.php).</p> <p>However, the strange thing is that, except the home page, all other pages (including the individual post page, wp-admin pages, rss, theme preview, etc.) work fine.</p> <p>And i have another wordpress site hosted in the same machine, works fine.</p> <p>Here is the .htaccess file: (this is actually what Wordpress did)</p> <pre><code># BEGIN WordPress &lt;IfModule mod_rewrite.c&gt; RewriteEngine On RewriteBase / RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] &lt;/IfModule&gt; # END WordPress </code></pre> <p>And here is what i got from the access.log</p> <pre><code>207.46.92.16 - - [30/Dec/2010:16:17:56 +0800] "GET /index.php HTTP/1.1" 301 - "-" "Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; .NET CLR 1.1.4322; .NET CLR 3.0.04506; SLCC1; InfoPath.3; .NET4.0C; .NET4.0E; MS-RTC LM 8)" </code></pre> <p>Actually I did the following but no change:</p> <ol> <li>Disable mod_rewrite Copy the</li> <li>.htaccess from the correct wordpress site</li> </ol> <p>Did anyone face anything like this or have any clue on this?</p> <p>I also opens a link here. try the followings:</p> <ol> <li><a href="http://www.weigblog.com/" rel="nofollow">http://www.weigblog.com/</a></li> <li>adding index.php (sorry i can't post more than 1 link)</li> <li>adding testphp.php</li> </ol>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload