Can't verify Wordpress in Google Search Console - php

I have been figuratively banging my head against a wall and literally ripping my hair out in frustration over this. This is the issue:
I need to make my webpage tied to my name, i.e. when you search my name the page pops up. Thus I need to verify my webpage on google search console
All the methods for doing this somehow require me entering code into the HTML of my front page
This cannot be edited from Wordpress online, thus I must install Wordpress
Wordpress installation requires that I first install FTP, which requires FTP username and password, which Wordpress does not want to give me.
Thus, I am totally unable to achieve my first goal (connect my webpage to my name). Is there a way to achieve this without having to download Wordpress, which is turning into a huge pain in the ass? I use a free version of Wordpress.

Actually you can insert the Google Console verification meta on a Wordpress.com hosted site.
Go to settings > SEO
Direct URL: https://wordpress.com/settings/seo/

You can verify your webpage in Google Search Console using Google Analytics. It is one of the alternate methods for the verification. Google Analytics support on WordPress.com is available as a feature of the WordPress.com Business plan. Visit Settings → Analytics under My Sites to enable Google Analytics.
Another option would be to verify via DNS and your domain name provider. Detailed instructions how to set up a CNAME record for that are available within the Google Search Console. With this option, you do not need to edit the front page HTML too.

Related

PHPBB Add User Automatically When They Sign-up on the Main Website

I have a website that requires login and I've installed PHPBB to a subdomain. I want users to automatically register to the PHPBB forum when they register to the main page and I need to give them access to only specific forums so I need to give them forum permissions based on their choices on the register page. How can I achieve this?
I've tried sending requests to ACP Add User Plugin using cURL but it requires tokens so after some time token expires and I can't send any more requests.
When you use your Browser to get the key, go into the developer tools, network tab, select the first http request, right click and choose copy as curl.
I would NEVER install Chrome on my PC. So here is a Firefox example.
Then go to Convert curl commands to PHP
And paste in the curl copied from your Browser.
So now you can go get a new token when ever you need a new one.

CloudFlare for caching REST API response developed in core php

I have developed REST API in core php. This APIs are used in mobile app to fetch data from server.
Now we have a situation where 10000 users are using the app at the same time. When all this users are on app at same time, the server(Amazon EC2 UBUNTU 12.04) fails.
In order to solve this, we have decided to use CloudFlare. After lot of research, it is still not clear how to use cloudflare to cache the response coming from APIs.
Below are few links that I have followed so far:
https://support.cloudflare.com/hc/en-us/articles/202775670-How-Do-I-Tell-Cloudflare-What-to-Cache-
https://blog.cloudflare.com/introducing-pagerules-advanced-caching/ .
We have already set CNAME and HOST details on our CloudFlare account. Can someone help me to know what implementation is needed. Or if this is possible at all or no?
After a lot of research, I found that it is possible to cache the response of REST API. We just need to create a custom page rule.
Just in case someone else is facing the same issue then follow below steps:
1) Get the domain name for your URL. For example, if your API URL is http://xx.xx.xx.xx then you need to get a domain and link it so that your API URL can be http://domainname/...
2) Since the data is not HTML content or CSS, you should create a custom page rule. It is detailed very nicely by cloud flare but is hard to find the link. SO here is the link for the same: https://support.cloudflare.com/hc/en-us/articles/115000150272-How-do-I-use-Cache-Everything-with-Cloudflare-
The entire setup with Cloudflare is done and the performance of my server has improved drastically. We just need to follow the steps carefully!!!

How to implement Moodle and Wordpress SSO?

I have a Moodle(3.0) website and a WordPress blog (3.5.4). I need to implement SSO between these two.
Here is the basic idea why I want to do it:
Some of the courses in Moodle contain external content (load a page with resources in iframe). At the bottom of the iframe page, that is loaded there is a bbPress embedded (Forum plugin for WordPress).
I need the SSO, so when user logs in his moodle account and choose to view certain resource to be able to participate in the forum topic under the resource without the need of login again.
I've read Authenticate Users From Moodle Into WordPress, and tried to configure External database Authentication Method in Moodle, but so far no luck.
I've found an WordPress plugin Edwiser Bridge, but it makes quite the opposite (integrates Moodle within WordPress) - which is of no use to my particular case.
I will much appreciate every help I can get. Thanks
I ended up building an API, which makes the handshake between Moodle and Wordpress.
I've modified the moodle/login/index.php page and wp-login.php to send requests to the API when logging in.
Every time someone logs in either platform a request is being sent to the API. It tries to log the user programmatically and start a session cookie for the user. (if the username and password match in the db).
When user is being registered the user data is stored in both databases (Moodle and Wordpress).
NOTE: This is not exactly SSO, but it solved my problem and its working.

How to disable Openshift Wordpress app url from getting indexed in Google

I'm running a Wordpress site on free openshift by redhat.
I added the custom domain and everything is working fine.
The problem is that both of my urls: www.namanboard.com(custom) + nb-namanwp.rhcloud.com(openshift app) are getting indexed in google.
And it affects my SEO. my website is available to google at two different urls with same content. I want to disable the openshift app url i.e nb-namanwp.rhcloud.com from getting indexed in google.
I'm unable to add it to google search console at I can't verify my identity there.
Please help.
You must to upload a file in the nb-namanwp.rhcloud.com server. The file needs to be called robots.txt and with this content:
User-agent: *
Disallow: /
And google stop to indexing. To remove the last indexed pages you need to login into webmaster tools account and search the "Remove pages" section. You must to define the whole correct URL to remove and wait few days. Ces't fini.
Good luck

GAE - Wordpress Admin Login Through Custom Domain?

I'm trying to set up a Wordpress Multisite network on Google App Engine. I have the install up and running, and am mapping custom domains for each site with the help of this plugin. I'm using Wordpress 4.0.
The domain mapping works, in that when I navigate to the custom domain it pulls up the corresponding site, but when I try to access any admin pages from the custom domain, I get an SSL error. I gather that this is due to Google's not allowing custom domains to access GAE apps via SSL, and so I've been trying to fix this by redirecting all requests of the form mycustomdomain.com/wp-admin/(.+) to myapp.appspot.com/wp-admin/\1.
My rationale for trying this is that myapp.appspot.com/subsite/wp-admin/ works just fine, but mycustomdomain/wp-admin does not, despite the two pointing to the same location.
Unfortunately, I haven't been able to figure out how to do this redirection properly. I've tried adding redirect rules to the .htaccess file with no success. I've also tried messing with app.yaml handlers, but this, too, yielded no results.
Also worth noting is that I attempted to force all requests to go through http (as a hackish, temporary workaround) via this plugin to no avail.
I'm new to working with servers, and any help would be much appreciated. I'm not even sure that redirection is the right solution, so I welcome any other suggestions. I can supply pertinent code if needed. Thanks.
EDIT: I could go through Google's custom domain registration process via Google Apps and get an SSL certificate that way, but my app will eventually be used by a large number of independent sites that I don't control, so that solution won't work.
I have been trying to achieve something similar on a regular server and not on GAE, so I'm not sure this will apply to you...
Isn't the 4th option of the Domain Mapping what you're looking for? In the WP network administration, go to Settings > Domain Mapping, then you can tick/untick the 4th option :
4. Redirect administration pages to site's original domain (remote login disabled if this redirect is disabled)
This will allow you to use a custom domain to access a site and its wp-admin interface, allowing SSL certificates to validate since the domain stays the same.

Categories