I'm doing some work on a live WordPress site, and before making changes wanted to create a local copy of the site to use. I've gone ahead and done that, (using BackUpBuddy) but I am getting this error for every page (except the home page)
Not Found The requested URL /index.php was not found on this server.
I've tried going to dashboard -> settings -> permalinks and re-saving and it doesn't work. If I change the permalink setting to "default" instead of "post name" I am able to load all the other pages.
I've done some investigating and tried changing a couple things in my .htaccess file in my text editor, but still no luck. Here's the content of .htaccess
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /014-TGGGLocal/
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /014-TGGGLocal/index.php [L]
</IfModule>
# END WordPress
I should also mention that .htacess and index.php are both in the directory indicated by the Site address (URL) setting on my General Options page. AND using post name "permalinks" works fine on the live version of the site.
IfModule
block..htaccess
but not wrapped in#BEGIN WordPress
- so when your local wp wrote to the file, it appended the rules instead of replacing them.