Support » Plugin: Duplicator - WordPress Migration & Backup Plugin » index.html or .htaccess issues
index.html or .htaccess issues
-
Hi there, after migrating my site to a new server, from a shared server using cPanel to a VPS using Plesk, my frontpage does not show up, instead a default webpage created by Plesk display. There is no doubt that is has something to do with either index.html or .htaccess files, but I haven’t been able to figure out a solution. Some suggest that server settings have to be made through SSH.
What is wright or wrong in this case, and which settings should I change to point my site to the new server?
Regards
Carsten
-
The .htaccess file has been created, but it is suggested here that the .htaccess file is not configured on the apache server?
https://www.linode.com/community/questions/19952/missing-htaccess-when-migrating-wordpress-sitesIt is also suggested that you should not use .htaccess on a VPS server.
https://www.danielmorell.com/guides/htaccess-seo/basics/dont-use-htaccess-unless-you-must
Is the server .htaccess file configured when migrating?
Hey @carsten-lund,
By default the .htaccess is reset to a minimalist version, This helps to support the transition, and avoid additional issues on the new server or environment. The .htaccess file setup is configurable more details about that process can be found here.
- How to resolve filename & config file migration issues?
- https://snapcreek.com/duplicator/docs/faqs-tech/#faq-installer-230-q
Hope this helps~
Hi there, thank’s for the link. As I read the case, I can rule out the .htaccess file for causing the trouble. Can index.html create any issues like this, it seems like my site is not directed in the right direction?
Ohter ideas to try out?
Regards Carsten
Hey @carsten-lund,
Yes, an index.html or any index file could cause this issue, you may want to check with your hosting provider to see if they can pinpoint the redirect.
Thanks
Hi there, my site on the old server, did not have an index.html file in the root of the directory, but after migration to the new server an index.html has been created?
Should any of the content in the index.html be changed to specify my domain, or should it be kept standard as it is?
<!doctype html> <html lang="en"> <head> <meta charset="utf-8"> <title>Domain Default page</title> <meta name="copyright" content="Copyright 1999-2022. Plesk International GmbH. All rights reserved."> <script src="https://assets.plesk.com/static/default-website-content/public/default-website-index.js"></script> </head> <body> This is a default webpage generated for <script>document.write(location.hostname)</script> by Plesk. </body> </html>
On the other hand a .htaccess.bk probably created by cPanel, has been added the new server running Plesk, during migration. I have deleted that file, but it has no effect on my issue.
# php -- BEGIN cPanel-generated handler, do not edit # Set the “ea-php73” package as the default “PHP” programming language. <IfModule mime_module> AddHandler application/x-httpd-ea-php73 .php .php7 .phtml </IfModule> # php -- END cPanel-generated handler, do not edit # BEGIN WordPress # The directives (lines) between "BEGIN WordPress" and "END WordPress" are # dynamically generated, and should only be modified via WordPress filters. # Any changes to the directives between these markers will be overwritten. # END WordPress # BEGIN cPanel-generated php ini directives, do not edit # Manual editing of this file may result in unexpected behavior. # To make changes to this file, use the cPanel MultiPHP INI Editor (Home >> Software >> MultiPHP INI Editor) # For more information, read our documentation (https://go.cpanel.net/EA4ModifyINI) <IfModule php7_module> php_flag display_errors Off php_value max_execution_time 30 php_value max_input_time 60 php_value max_input_vars 1000 php_value memory_limit 32M php_value post_max_size 8M php_value session.gc_maxlifetime 1440 php_value session.save_path "/var/cpanel/php/sessions/ea-php73" php_value upload_max_filesize 8M php_flag zlib.output_compression Off </IfModule> <IfModule lsapi_module> php_flag display_errors Off php_value max_execution_time 30 php_value max_input_time 60 php_value max_input_vars 1000 php_value memory_limit 32M php_value post_max_size 8M php_value session.gc_maxlifetime 1440 php_value session.save_path "/var/cpanel/php/sessions/ea-php73" php_value upload_max_filesize 8M php_flag zlib.output_compression Off </IfModule> # END cPanel-generated php ini directives, do not edit
Hey @carsten-lund
It looks like the index.html file is being laid down by your host, that is not something the duplicator would create but only copy. You might be able to temporarily remove the index.html file or rename it. The .htaccess.bk will not be processed if it has the .bk extension so that file can be ignored as long as it has the “dot beak”.bk” at the end.
If you would like to submit a support ticket for this issue we can have a closer look at your setup. Please provide a link to this forum thread when submitting the ticket.
Thanks
Hi Cory, thank’s, I appreciate if you would take a closer look at the issue.
Maybe I got a little bit closer to solve the issue. I ran the installer again, and received this error, but I’m not able to read anything out of it myself.
General Notices Report Fatal error on WordPress front-end tests! SCRIPT FILE TEST: /var/www/vhosts/domain/httpdocs/index.php EXCEPTION call_user_func_array(): Argument #1 ($callback) must be a valid callback, function "addmetawebcapablelinks" not found or invalid function name FILE: /var/www/vhosts/domain/httpdocs/wp-includes/class-wp-hook.php[308] --- TRACE --- CLASS___: WP_Hook->apply_filters FILE: /var/www/vhosts/domain/httpdocs/wp-includes/class-wp-hook.php[332] CLASS___: WP_Hook->do_action FILE: /var/www/vhosts/domain/httpdocs/wp-includes/plugin.php[517] FUNCTION: do_action FILE: /var/www/vhosts/domain/httpdocs/wp-includes/general-template.php[3043] FUNCTION: wp_head FILE: /var/www/vhosts/domain/httpdocs/wp-content/themes/generatepress/header.php[16] FUNCTION: require_once FILE: /var/www/vhosts/domain/httpdocs/wp-includes/template.php[783] FUNCTION: load_template FILE: /var/www/vhosts/domain/httpdocs/wp-includes/template.php[718] FUNCTION: locate_template FILE: /var/www/vhosts/domain/httpdocs/wp-includes/general-template.php[48] FUNCTION: get_header FILE: /var/www/vhosts/domain/httpdocs/wp-content/themes/generatepress/page.php[17] FUNCTION: include FILE: /var/www/vhosts/domain/httpdocs/wp-includes/template-loader.php[106] FUNCTION: require_once FILE: /var/www/vhosts/domain/httpdocs/wp-blog-header.php[19] FUNCTION: require FILE: /var/www/vhosts/domain/httpdocs/index.php[17] FUNCTION: require_once FILE: /var/www/vhosts/domain/httpdocs/wp-content/wp_test_script_85fbb11-13150025.php[117]
Hey @carsten-lund,
That issue doesn’t look like it’s related to the duplicator plugin, however, we might be able to take a closer look if you submit a ticket to the link above.
Thanks~
- The topic ‘index.html or .htaccess issues’ is closed to new replies.