Rewrite URL to remap WordPress Permalink

The most efficient way to accomplish this would be to change the structure to /%postname%/ and add a 301 redirect to your .htaccess file for the old structure: RedirectMatch 301 ^/([0-9]{4})/([0-9]{2})/(?!page/)(.+)$ http://example.com/$3 Change example.com to your domain and add the redirect above the # BEGIN WordPress directive so it won’t be removed if WordPress updates … Read more

Media sizes aren’t being created – server config?

It looks like “Easy Apache” handles both Apache and PHP. Only a guess, but you have recompiled Apache/PHP without the needed image libraries– either GD or ImageMagick. Without those, the server cannot physically resize images. You can use a phpinfo() script to see if the libraries are present. If not, you will need to recompile– … Read more

Installing WordPress in a Sub-Folder (not in root) on Localhost

Why don’t you use WordPress core settings for doing this? This is the recommended way and doesn’t need editing .htaccess or Apache config directly. You can find the details here in WP docs. I’m posting the steps here: After installing WP in the root dir, Go to the Settings->General and change these values: WordPress Address … Read more

How to configure self hosted wordpress so that everything can be upgraded/installed from dashboard

This is an issue with your server configuration, not with WordPress. Generally, it means that the server is not configured to use suPHP. (More, via Otto, here and here.) The (usually simple) solution is to add your FTP information to wp-config.php: define(‘FTP_USER’, ‘username’); define(‘FTP_PASS’, ‘password’); define(‘FTP_HOST’, ‘ftp.example.org’); Put these in wp-config.php (with your specific information, … Read more

How to configure site for automatic upgrades

Easiest way: Use mod_suphp instead of mod_php. This should just be a matter of using whatever ubuntu’s package manager is to remove mod_php and install mod_suphp instead. mod_suphp is a slightly modified version of mod_php. It does the same thing, but it sets the user of the apache process to be the same as the … Read more

WordPress V2 REST-API: Endpoints 404?

Try changing your permalinks structure. Within the dashboard go to Settings > Permalinks and select the Post Name structure. When this is done click Save Changes. If Post Name is already selected, it might be worth clicking save changes again to reset the permalinks. Update: Per the comments below, WordPress does not, out of the … Read more

Error 101 after upgrading WordPress

Are you sure /wp-includes/load.php made it to the server? If you were installing manually, there’s a chance it got lost during the transfer. Happens to me occasionally using FileZilla. The error messages are basically telling you that the server can’t find the file, so make sure the file is there.

Using separate Apache log files for multisite

You could set up custom logs in your httpd-vhosts.conf depending on the HTTP_HOST variable – if your server is an Apache and you use subdomains for each single site. For sub directories (not tested): SetEnvIf Request_URI ^sitename1 sitename1 SetEnvIf Request_URI ^sitename2 sitename2 CustomLog sitename1.log common env=sitename1 CustomLog sitename2.log common env=sitename2

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)