Replace “index.php/” with another name
-
Hi thank you for the great software! For verion 4.0, I find it useful to:
(1) Replace the index.php/ directory with other names (some servers confuse the index.php/ with index.html).
In the StaticHtmlOutput.php file, add
$fileDir = str_replace(“index.php”, “wpindex_php”, $fileDir);
somewhere before “wp_mkdir_p( $fileDir );”, then add
$fileName = str_replace(“index.php”, “wpindex_php”, $fileName);
$fileContents = str_replace(“index.php”, “wpindex_php”, html_entity_decode($fileContents));”
before “file_put_contents( $fileName, $fileContents );”.(2) In case the WP site is installed at a subdirectory under the “www root” directory, “$archiveDir” (StaticHtmlOutput.php) may be poorly defined and cause a “file not found” error when moving the static files. I solved it by appending the subdirectory name to the “$archiveDir” variable.
Hope it helps~
The topic ‘Replace “index.php/” with another name’ is closed to new replies.