Pagination 404s on custom query

There are a couple of things I don’t understand here, but I’ll try answering them as I go along. You have a home.php, which I assume is your default homepage. You have one line of code in there, and that is to call a another page template. Here is you code <?php require dirname( __FILE__ … Read more

WordPress suddenly changed all links to example.com/example.com/

Check your .htaccess file for the proper values. Here’s what WP recommends; you may need to adjust for your configuration (from here; more examples that might help) https://codex.wordpress.org/htaccess # BEGIN WordPress <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteRule ^index\.php$ – [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] </IfModule> # END WordPress … Read more

How to fix: “The resource you are looking for has been removed, had its name changed, or is temporarily unavailable.”

Caveat I know this question is a little out of date and our question/issue is technically regarding an Azure WordPress Resource not a hosted environment… but I thought it might be helpful to answer for future readers. Background/Issue We spun up an Azure Worpress resource and migrated our site to it using updraft. Once transferred … Read more

make wordpress log errors in apache log file

I use a separate error-log-file for WordPress that i add to wp-config.php like this: Step 1: Create a log file Create an empty file called “php-errors.log”. This file will serve as your site’s PHP error log. Your server will need write access to this file, so make sure to set the appropriate permissions. Step 2: … Read more

WordPress triggers 404 on page 2 for custom search query

index.php is the default template, the fallback. If we look here: http://codex.wordpress.org/Template_Hierarchy And at the diagram: We can see here that search.php is the appropriate template. Have you considered using author.php and the author archives instead of modifying the search template? There are far better ways of implementing what you want, even the searching via … Read more

404 redirecting to home [closed]

If this is not occurring on your local installation: have you checked your webserver’s configuration? Since the locally it works and it seems to work for the 404’s of your subsites of your mainsite I would check this and make sure no plugins are activated during debugging this issue. If you use Apache with mod_rewrite … Read more