Redirects and Subdirectory migration to Root Directory

I do the following: Move all old files in the root dir to a special folder (i.e. “_old”) Login to the new site in subdir and remove the subdir from the WordPress and Site Adress (so remove sitename.org/new and enter sitename.org) Using FTP or your hosts file manager, move all files from the subdir “new” … Read more

Internal server error

Assuming that www.example.com/site1 is the 1st site (in the root folder site1 folder), and www.example.com/site2 is the second site (in the root folder site2 folder. The easiest way (normally) to clone (or move) a site is to use the excellent WP-Clone plugin to backup and restore the ‘site1’ site to the root. But, you will … Read more

Migration from XAMPP in windows to MAMP in Mac

Do this: Create a folder on your Windows Desktop and give it a name (ie ‘WebProject’) Find htdocs folder of XAMPP, right click on folder, Send To -> Compressed Folder. Move the zip file created in step 2 to the folder from Step 1. Open phpMyAdmin and export your DB. Save the file in folder … Read more

Import all media referenced in posts

Can I use get_attached_media() to get the images referenced on a page, even if they’re not formally attached? No, if they’re not attached they won’t be attached. I assume you’re talking about images in your posts that are offsite? If so, you need to download them, create an attachment post, attach it to the post, … Read more

SSL errors when I activate my custom theme

I agree with Drupalizeme above. Use phpmyadmin and go to wp-options table. you should see a line for siteurl. make sure it does not say HTTPS. There will most likely be a second line for the wordpress site which you should also check. Those two settings are usually in the Settings > General tab in … Read more

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