MIGPRO
Forum Replies Created
-
Forum: Localhost Installs
In reply to: Error Establishing Database ConnectionAll that info gets changed to connect with the live database before I put it back on the server. I didn’t change any privileges… Right now, for some reason I cannot get the site to come up on the WAMP. I have other sites that come up fine so its not an issue with WAMP or privileges… Can you or someone else help?
Forum: Localhost Installs
In reply to: "Error Establishing Database ConnectionI am getting the same error “Error establishing a database connection” and with the exception of replacing all the URL’s in the database, I “think” I have done everything right.
How do I do a mass search and replace if I cannot get the site to come up on WAMP? I already changed the 2 main URL’s on the wp_options table.
Or, could there be something else I am forgetting?
This is a MU version…
Forum: Plugins
In reply to: [BulletProof Security] Where to add 301 Redirects?Well, I really appreciate all the support you guys give. For whatever reason, this one is not getting sorted out. I will have to move the sites over to multipress as this will be the best option and its much easier to control everything anyway…
Thank You!
Forum: Plugins
In reply to: [BulletProof Security] Where to add 301 Redirects?ok, I will try that.
Thanks!
Forum: Plugins
In reply to: [BulletProof Security] Where to add 301 Redirects?Yes, I know that… I did not know how to make child themes (still have not tried) and it becomes an issue when I have the same theme being used with 2 different modified looks. So, when I originally set all this up, I opted to create separate installs. Learning as I go here… Its no wonder I have no hair left on my head! ??
I have to get that done and get everything under the multisite. But, I lost a lot of ground in the SERPs recently and realized I had all this duplicate content out there. So, that is priority #1.
Forum: Plugins
In reply to: [BulletProof Security] Where to add 301 Redirects?Well, I would have lost that bet. The redirects are still working properly on the other site after I enabled WP Super Cache:
Settings are all the same… I don’t get it!?!
So, I really don’t know what to do now, other than build all those redirects. Any other suggestions?
These pages are not working:
https://www.immunocal.md/immunotec-marketing-system/your-tools-for-success/
https://www.immunocal.md/immunotec/full-product-line/This one is working properly:
https://www.immunocal.md/colon_cancer/something-natural-for-colon-cancer/By the way, that page is working fine without the RewriteCond %{REQUEST…….. code. After I saw that, I went back and replaced the original www to non-www to see if something had changed. But, it still remains with the other 2 WP installs not working and this new one I shared is working.
Forum: Plugins
In reply to: [BulletProof Security] Where to add 301 Redirects?ok, I tried the code you suggested:
RewriteCond %{REQUEST_URI} !^immunotec-marketing-system/(.*)$
Its not working either. I have not yet tried to set up the 301’s (I will try that last).
I wanted to let you know that one of the other external installs is working fine. The only difference is that WP Super Cache had been disabled. I am guessing this is where the problem is coming from.
Right now I am enabling it, and my bet is that once that is completed, I will have the same loop problem.
Forum: Plugins
In reply to: [BulletProof Security] Where to add 301 Redirects?It only works with the main URL:
https://www.immunocal.md/immunotec-marketing-system/This one with the page extension does not work:
https://www.immunocal.md/immunotec-marketing-system/why-immunotec/There are no other redirects set up for that site, other than old pages being redirected to them and that all works fine. Its just the www to non-www that is not working.
Maybe it’s like you said, a multisite issue.
Forum: Plugins
In reply to: [BulletProof Security] Where to add 301 Redirects?Yes it is separate and I have installed BPS, clicked AutoMagic and activated BulletProof, as I normally do.
I have added the new rule as you have specified and activated everything as I normally do, with no luck.
Is the code supposed to be exactly as you have shown above or just add the new rule?
I used the following:
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ – [L]
RewriteRule ^immunotec-marketing-system/ – [L]
RewriteCond %{HTTP_HOST} ^www\.immunocal\.md$ [NC]
RewriteRule ^(.*)$ https://immunocal.md/$1 [R=301,L]# uploaded files
RewriteRule ^([_0-9a-zA-Z-]+/)?files/(.+) wp-includes/ms-files.php?file=$2 [L]# add a trailing slash to /wp-admin
RewriteRule ^([_0-9a-zA-Z-]+/)?wp-admin$ $1wp-admin/ [R=301,L]Forum: Plugins
In reply to: [BulletProof Security] Where to add 301 Redirects?Ok, new issue discovered:
All the redirects and www to non-www are working perfectly on the multisite. However, I have a few WP installs that are outside of the multisite and they are not redirecting the www to non-www properly.
For example:
https://www.immunocal.md/immunotec-marketing-system/ (redirects properly)
https://www.immunocal.md/immunotec-marketing-system/why-immunotec/ (pages/posts don’t work)That particular page redirects back to the main domain, so that URL ends up with a 404 at immunocal.md/why-immunotec and all the pages and posts do the same thing on these externals… (the “immunotec-marketing-system” is missing).
I am guessing that this is related to the code we placed in the “main root” and perhaps it only needs an extra extension for the redirect command?
Currently we have:
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ – [L]
RewriteCond %{HTTP_HOST} ^www\.immunocal\.md$ [NC]
RewriteRule ^(.*)$ https://immunocal.md/$1 [R=301,L]# uploaded files
RewriteRule ^([_0-9a-zA-Z-]+/)?files/(.+) wp-includes/ms-files.php?file=$2 [L]# add a trailing slash to /wp-admin
RewriteRule ^([_0-9a-zA-Z-]+/)?wp-admin$ $1wp-admin/ [R=301,L]I tried changing the end of the RewriteCond to .md\*$ but that did not work…
So, other than transferring all the external installs to the multisite, is there a simple solution for me here?
Thank You
Forum: Plugins
In reply to: [BulletProof Security] Where to add 301 Redirects?Hey!! That code actually worked perfectly… everything is working now…
It was my fault that I had left the other code I tried in the Custom Code section… After I removed that and tried all the links again, she works!!!
Awesome and thank you for your tremendous assistance and support.
Forum: Plugins
In reply to: [BulletProof Security] Where to add 301 Redirects?Looks like I am using sub-directory. Here is a site URL as an example that is in the multisite:
https://immunocal.md/cancerThey are all the same, like sub-directories, so I am assuming they are as such. If I were to add a new site, it is considered to be a “path”. Also, BPS is telling me:
Use These AutoMagic Buttons For Your Website
For WP Network / Multisite sub-directory InstallationsSo, I uploaded the code above, in the root found where you mentioned and then updated everything. But, a problem remains…
If I go to https://www.immunocal.md/testimonials (this is a “page” on the primary) it redirects to immunocal.md
If I go to https://www.immunocal.md/cancer (this is a subdirectory of multisite) it redirects properly to immunocal.md/cancer
If I go to https://www.immunocal.md/radiation-in-our-world-today/ (this is a post on the primary) it redirects to immunocal.md
If I go to https://www.immunocal.md/prostate-cancer/story/ (this is a “post in another subdirectory of multisite) and it redirects to immunocal.md/story which is a page that does not exist, so its a 404.
So, what we have added is partly working. Is there another piece of code needed somewhere?
Forum: Plugins
In reply to: [BulletProof Security] Where to add 301 Redirects?ok, got it and have now ONLY activated BPS on the primary site. Thanks for that…
My primary site is not a subdomain, so what code from above do I use and where exactly do I place it?
Forum: Plugins
In reply to: [BulletProof Security] Where to add 301 Redirects?Hello again, I am posting here to reference what we did the other day.
To update:
The redirects were not working because the URL’s had www included. Once I removed www from all the destination URL’s, the redirects worked fine. So, that issue is resolved.
However, I am now trying to redirect the www version to the non-www version of the site. I have read over the various posts you have regarding this and have tried to get this working, without success.
My problem seems to be that I am not putting the code in the right place for it to work on all of the .htaccess files produced by BPS?
As it stands, the wordpress install (multisite) is loaded without the www. So, if I go to https://www.immunocal.md it automatically redirects to immunocal.md (with or without any redirect code).
However, if I go to a post page, ie. https://www.immunocal.md/gmo_food_in_baby_formula/ it redirects back to the homepage (https://immunocal.md, rather than https://immunocal.md/gmo_food_in_baby_formula/
So, where am I supposed to be loading the code:
RewriteEngine on
RewriteCond %{HTTP_HOST} ^www\.immunocal\.md$ [NC]
RewriteRule ^(.*)$ https://immunocal.md/$1 [R=301,L]
RewriteBase /
RewriteRule ^index\.php$ – [L]Thank you!
Forum: Plugins
In reply to: [BulletProof Security] Where to add 301 Redirects?Thanks very much for your help, we are getting somewhere now… I think the old redirect is from the old host. There must be something there on their server still because I moved this entire site to a new host, but left a couple others.
Thanks again!