We help IT Professionals succeed at work.
Troubleshooting Question

Why do I not see my site?

Bruce Gust
Bruce Gust asked
Last Modified: 2020-11-18
I'm using Backup Buddy to migrate my Wordpress site from my localhost on my home computer to my localhost on my work computer.

Migration when fine, but when I go to look at the index page, I get this:

My index.php file is this:

 * Front to the WordPress application. This file doesn't do anything, but loads
 * wp-blog-header.php which does and tells WordPress to load the theme.
 * @package WordPress

 * Tells WordPress to load the WordPress theme and output it.
 * @var bool
define( 'WP_USE_THEMES', true );

/** Loads the WordPress Environment and Template */

require __DIR__ . '/wp-blog-header.php';

When I tried to type in "http://alight.newsletter.com/wp-blog-header.php," I got a 404 error.

What am I missing?   
Watch Question

Bruce GustPHP Developer


Bruce GustPHP Developer


I've got a meeting in three minutes - I wanted to show the team what I had done. Nuts!

Daniel PineaultPresident / Owner CARDA Consultants Inc.
Distinguished Expert 2018
Have you properly defined the

DirectoryIndex index.html index.htm index.php

in your .htaccess file?
Most Valuable Expert 2018
Distinguished Expert 2019
If you look directly at the index.php page, do you see your site: http://yourdomain.com/index.php

It sounds like your WebServer isn't set up correctly to server index.php files. How you fix that will depend on your local AMP stack (i.e. what and how you're running a webserver (Apache etc). Have a look at the Virtual Host entry for your setup.
Bruce GustPHP Developer


This is my .htaccess file:

# 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.
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /wordpress/
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /wordpress/index.php [L]

# END WordPress

The home directory is "newsletter," and not "wordpress." It was "wordpress" on my other computer.
Most Valuable Expert 2018
Distinguished Expert 2019
This problem has been solved!
(Unlock this solution with a 7-day Free Trial)
Bruce GustPHP Developer


Fellas, here's what I've got / here's what I know...

I bought Backup Buddy thinking that by doing so, all my dreams would come true and I would've have to deal with all of this.

I've got my .htaccesss file above. The "RewriteRule" has me concerned. Is that a "thing?"

I've got my httpd.conf and my hosts file is good to go. I can run a random php file and get the content, so this is a WP problem.

And, Chris, when I do the "index.php" exercise, no, I don't get my page. I get the list of files that you see above.

What do y'all think?
Most Valuable Expert 2018
Distinguished Expert 2019
OK - Rename your htaccess file (bak.htaccess for example) to take it out of the equation. Now load up your site and see if your index.php is parsed correctly. It soundslike htacess is wrongly re-writing your index.php file.
David FavorFractional CTO
Distinguished Expert 2019
There are many problems with this site.

Tip: Before trying to get WordPress working, get this working...

1) HTTPS working.

2) HTTP2 working.

3) Remove NGINX (currently giving intermittent 502 gateway errors) + get Apache working.

4) At this point you should have https://alight.newsletter.com correctly serving an empty directory.

Once this is working, then install your WordPress files + continue.

Currently, it's difficult to guess what's occurring with your site.

5) Now https://alight.newsletter.com is producing a consistent 502 gateway error for visits.
David FavorFractional CTO
Distinguished Expert 2019
Aside: Some days I'll setup 10-100+ WordPress sites.

In every case, my first step is always to get HTTPS/HTTP2/Brotli working to serve a bare directory.

Trying to fix WordPress problems... when underlying tech is broken can drain away many hours of life you can't get back.

Gain unlimited access to on-demand training courses with an Experts Exchange subscription.

Get Access
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Empower Your Career
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE

Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions