diff --git a/src/includes/classes/MenuPage/Options/ApacheOptimizations.php b/src/includes/classes/MenuPage/Options/ApacheOptimizations.php
index 5c8e721e..245458a1 100644
--- a/src/includes/classes/MenuPage/Options/ApacheOptimizations.php
+++ b/src/includes/classes/MenuPage/Options/ApacheOptimizations.php
@@ -44,7 +44,7 @@ public function __construct()
echo '
'.__('Or, you can update your configuration manually: [ .htaccess configuration ]', SLUG_TD).'
'."\n";
echo ' '."\n";
echo '
'.__('To enable GZIP compression: Create or edit the .htaccess
file in your WordPress installation directory and add the following lines to the top:', SLUG_TD).'
'."\n";
- echo '
'.esc_html($this->plugin->fillReplacementCodes(file_get_contents(dirname(__DIR__).'/templates/htaccess/gzip-enable.txt'))).'
'."\n";
+ echo '
'.esc_html($this->plugin->fillReplacementCodes(file_get_contents(dirname(__DIR__).'/../../templates/htaccess/gzip-enable.txt'))).'
'."\n";
echo '
'.__('Or, if your server is missing mod_deflate
/mod_filter
; open your php.ini
file and add this line: zlib.output_compression = on
', SLUG_TD).'
'."\n";
echo '
'."\n";
@@ -64,7 +64,7 @@ public function __construct()
echo ' '.__('Or, you can update your configuration manually: [ .htaccess configuration ]', SLUG_TD).'
'."\n";
echo ' '."\n";
echo '
'.__('To enable Browser Caching: Create or edit the .htaccess
file in your WordPress installation directory and add the following lines to the top:', SLUG_TD).'
'."\n";
- echo '
'.esc_html($this->plugin->fillReplacementCodes(file_get_contents(dirname(__DIR__).'/templates/htaccess/browser-caching-enable.txt'))).'
'."\n";
+ echo '
'.esc_html($this->plugin->fillReplacementCodes(file_get_contents(dirname(__DIR__).'/../../templates/htaccess/browser-caching-enable.txt'))).'
'."\n";
echo '
'."\n";
}
if (IS_PRO || $this->plugin->isProPreview()) {
@@ -78,7 +78,7 @@ public function __construct()
echo ' '.__('Or, you can update your configuration manually: [ .htaccess configuration ]', SLUG_TD).'
'."\n";
echo ' '."\n";
echo '
'.__('To enforce an exact hostname: Create or edit the .htaccess
file in your WordPress installation directory and add the following lines to the top:', SLUG_TD).'
'."\n";
- echo '
'.esc_html($this->plugin->fillReplacementCodes(file_get_contents(dirname(__DIR__).'/templates/htaccess/enforce-exact-host-name.txt'))).'
'."\n";
+ echo '
'.esc_html($this->plugin->fillReplacementCodes(file_get_contents(dirname(__DIR__).'/../../templates/htaccess/enforce-exact-host-name.txt'))).'
'."\n";
echo '
'."\n";
}
if ((IS_PRO && !empty($GLOBALS['wp_rewrite']->permalink_structure)) || $this->plugin->isProPreview()) {
@@ -93,9 +93,9 @@ public function __construct()
echo ' '."\n";
echo '
'.__('To enforce Canonical URLs: Create or edit the .htaccess
file in your WordPress installation directory and add the following lines to the top:', SLUG_TD).'
'."\n";
if ($GLOBALS['wp_rewrite']->use_trailing_slashes) {
- echo '
'.esc_html($this->plugin->fillReplacementCodes(file_get_contents(dirname(__DIR__).'/templates/htaccess/canonical-urls-ts-enable.txt'))).'
'."\n";
+ echo '
'.esc_html($this->plugin->fillReplacementCodes(file_get_contents(dirname(__DIR__).'/../../templates/htaccess/canonical-urls-ts-enable.txt'))).'
'."\n";
} else {
- echo '
'.esc_html($this->plugin->fillReplacementCodes(file_get_contents(dirname(__DIR__).'/templates/htaccess/canonical-urls-no-ts-enable.txt'))).'
'."\n";
+ echo '
'.esc_html($this->plugin->fillReplacementCodes(file_get_contents(dirname(__DIR__).'/../../templates/htaccess/canonical-urls-no-ts-enable.txt'))).'
'."\n";
}
echo '
'."\n";
}
@@ -113,7 +113,7 @@ public function __construct()
echo ' '.__('Or, you can update your configuration manually: [ .htaccess configuration ]', SLUG_TD).'
'."\n";
echo ' '."\n";
echo '
'.__('To send the Access-Control-Allow-Origin header: Create or edit the .htaccess
file in your WordPress installation directory and add the following lines to the top:', SLUG_TD).'
'."\n";
- echo '
'.esc_html($this->plugin->fillReplacementCodes(file_get_contents(dirname(__DIR__).'/templates/htaccess/access-control-allow-origin-enable.txt'))).'
'."\n";
+ echo '
'.esc_html($this->plugin->fillReplacementCodes(file_get_contents(dirname(__DIR__).'/../../templates/htaccess/access-control-allow-origin-enable.txt'))).'
'."\n";
echo '
'."\n";
}
echo ' '."\n";