John Peden
Forum Replies Created
-
Forum: Plugins
In reply to: [Backup and Restore WordPress - Backup Plugin] WP Backitup LiteIt really depends on the size of your wp-content folder. The copying process will try to complete but the plugin fails after 5 minutes anyway. In the past, there were issues for one user trying to backup with several gigs of backup-buddy zips in their wp-content directory.
Could you provide me with FTP details (email to [email protected]) and I’ll take a look?
Forum: Networking WordPress
In reply to: Multisite Sub-Sites Not Loading CSS, JS or wp-adminGot this working but removing the rewrite base string from subsequent rewrites for e.g. wp-admin:
RewriteRule ^([_0-9a-zA-Z-]+/)?(.*\.php)$ solas-lite/$2 [L]
became
RewriteRule ^([_0-9a-zA-Z-]+/)?(.*\.php)$ $2 [L]
Seems to be a conflict with my rewrite base ‘/solas-lite-/’ but not totally sure as to why it didn’t work in the first place.
Forum: Networking WordPress
In reply to: Multisite Sub-Sites Not Loading CSS, JS or wp-adminThanks for fixing the links mod! Any input on how to fix my problem?
Hi Chris,
I ended up uninstalling your plugin as it couldn’t seem to override the system-generated robots.txt files. Instead I wrote an mu-plugin and added this to it:
/** Load custom robots.txt */ function custom_robots($output) { $output ="#robots.txt\nUser-agent: *\nDisallow: /"; $url = site_url(); if (!strpos($url,"%%%servername%%%.%%%domain%%%.net")) { //Accept robots on all public domains $output .= "wp-content/plugins/"; } return $output; } add_filter('robots_txt','custom_robots');
Anyone else struggling with this could just add that to your functions.php file within a theme. Just change the line:
if (!strpos($url,"%%%servername%%%.%%%domain%%%.net")) {
Chris,
I’ve been playing around with this and I’m still stuck:
(Root site) – live.service.domain.net/robots.txt
# robots.txt
User-agent: *
Disallow: /I want this for all non-mapped domains
(Site 3) – cctld.live.service.domain.net/robots.txt
# robots.txt
User-agent: *
Disallow: /wp-content/plugins/I want this for the mapped domains only
(Mapped Site 3) – https://www.britishcouncil.org.ng/robots.txt
User-agent: *
Disallow: /wp-admin/
Disallow: /wp-includes/Generated by WordPress, not wanted at all
Hi Chris,
I didn’t have any leftover robots.txt files. I’ve figured out that the problem is a conflict with the virtual robots.txt files generated by WordPress when a user (un)selects ‘Discourage search engines from indexing this blog’.
One or two of my sites had either block/unblocked search engines. I set them all to allow search engines and the plugin now works, to a degree.
I’ve got a system-wide robots.txt file configured through MS Robots.txt Manager and a different one for site 3. However, I want the system-wide file to display on the unmapped site 3 and the custom robots.txt to display on the mapped domain of site 3.
Its currently the wrong way round.
Even though the site in question is running on a mapped domain, the plugin reports that it is not a mapped domain. Why is that?
Fixed in version 1.1.0. Please upgrade.
Hello mate,
Sorry I didn’t get to this sooner; I wasn’t alerted for some reason :S
Anyway, I’m not at my comp right now but looking at the line in question, it appears that your plugin isn’t detecting any addons. It shouldn’t be as you probably don’t have any installed.
That said, it shouldn’t be returning an error. I’ll update the code to only run if the addons folder exists and there are dirs/files within it. Next release within 24 hours!
Thanks
John
Forum: Plugins
In reply to: [Backup and Restore WordPress - Backup Plugin] Question on WP Backitup pluginGreat stuff Susie, for anyone else, only one backup zip is ever stored. You can manually delete it from the /backups folder.
Forum: Networking WordPress
In reply to: Multiple Domains, One SiteI’m looking to do something pretty similar myself as I’m setting up WordPress for an enterprise whose naming standards dictate that the front-end have a different URL to the back end:
ng.live.platform.organization.net – should serve wp-admin (or at least the site) over SSL-Akamai.
https://www.organization.org.ng – should serve the non-encrypted site through Akamai.
Any thoughts?
Forum: Hacks
In reply to: Passing multiple checkbox values to the Settings API using AJAXI couldn’t get this to work in the end but I just kept it as a PHP form and it works fine; refreshing the page and submitting the values to the DB takes less than a second.
Forum: Fixing WordPress
In reply to: Is it safe to import an xml of posts from a hacked site?This was imported with no obvious problems.
Forum: Plugins
In reply to: WP Popular Posts Overloads CPUThis was due to a conflict with the terribly coded Optin Skin.
Forum: Hacks
In reply to: Passing multiple checkbox values to the Settings API using AJAX