Cloned a live Wordpress, only the front page of localhost site is working


  • | 910 points

    Cloned a live Wordpress (on IIS server) to Laragon (on Windows 10) for some heavy restructuring, but first I have to get the localhost site to work!

    Right now only the front page is working, the rest of the pages/posts are showing "The requested URL (name of page) was not found on this server."

    I have re-save the Permalink inside Wordpress (an old trick that used to work).

    My .htaccess is:

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

    Have tried:

    <IfModule mod_rewrite.c>
        <IfModule mod_negotiation.c>
            Options -MultiViews -Indexes
        </IfModule>
    
        RewriteEngine On
    
        # Handle Authorization Header
        RewriteCond %{HTTP:Authorization} .
        RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
    
        # Redirect Trailing Slashes If Not A Folder...
        RewriteCond %{REQUEST_FILENAME} !-d
        RewriteCond %{REQUEST_URI} (.+)/$
        RewriteRule ^ %1 [L,R=301]
    
        # Handle Front Controller...
        RewriteCond %{REQUEST_FILENAME} !-d
        RewriteCond %{REQUEST_FILENAME} !-f
        RewriteRule ^ index.php [L]
    </IfModule>
    

    This line in httpd.conf is not commented:

    LoadModule rewrite_module modules/mod_rewrite.so
    

    I don't know what else to try now.


  • | 525 points

    @nil-nil Considering I've done this a lot (and I do mean a lot), I'd recommend creating a new instance of WordPress (I usually download a copy myself and do it the manual way).
    Then I'd set it up to see if you can at least create a new page/post without issue.

    I'd add the front end theme to it, and whichever plugins, to see if they work out fine.
    Then I'd finally export from the live site into the dev site (there's functionality/a plugin you can use for this).

    That way you can see where things are breaking.

    There is also a "wordpress migration" plugin I've used before, although I'm not 100% sure on that one (I've only used it a couple of times).


  • | 910 points

    Problem solved. Answer: SSL.


  • | 525 points

    Isn't that always the case! :laughing:


Log in to reply
 

Looks like your connection to Laragon was lost, please wait while we try to reconnect.