Can I use AdSense with GitHub Pages? - github-pages

I'd like to add Google AdSense to my GitHub Pages website.
Problem:
AdSense scans the root page (<user>.github.io). But I can only edit a repository page (<user>.github.io/<repo>). So the root will always return 404, making it non-eligible for AdSense.
Possible Solutions:
I can see 3 possible solutions:
Use my own domain. (I know that would work, but I don't want a domain for that)
Somehow edit my root Github page <user>.github.io
Setup AdSense to ignore my root and scan my sub-repo.
Question:
Is any of options 2 or 3 feasible? How?

Related

django redirect to subdomain with exact same url

I have a Django website accessible at codewithbishal.com. This is basically a django blog website and all the blog articles are accessible at codewithbishal.com/example/<path>
But now I want to completely restructure the website{such that it is accessible at blog.codewithbishal.com/<path>} and I do no want to lose the current SEO therefore I want to configure django redirect such that when someone launches codewithbishal.com/example/<path> through google search search result or directly through link, they are redirected to blog.codewithbishal.com/<path> instead of a 404 page and eventually google will start showing the new links instead of old once.
Update: Should I configure redirect through apache .htaccess?
You can use the Django redirects app. Just click the link and find the guide.

GitHub Pages User Project Custom Domain

I am trying to use the custom domain https://tahdo.app/ for my GitHub project page found at https://votemike.github.io/todo/
I'm most of the way there. But at the moment, https://tahdo.app/ shows a white screen with a console error of GET https://tahdo.app/todo/static/css/main.3bffc114.chunk.css net::ERR_ABORTED 404.
I assume this means that the https://votemike.github.io is being replaced with https://tahdo.app/ instead of replacing the whole GH Page URL with my custom domain.
I have the 4 A records that GitHub specify, and the CNAME pointing to votemike.github.io as they suggest.
Supplementary info: I'm using create-react-app and gh-pages to deploy to GH Pages
What am I doing wrong?
It turns out I needed to update the homepage field in my package.json file.
Read more about the answer here: https://dev.to/brettcnelson/getting-create-react-app-to-work-with-custom-domains-on-github-user-project-pages-2hp2

Why not create github.io (github page)

I have created github page.
0
URL : https://github.com/khkong/khkong.github.io
When I access my page, I get a 404 error. I can not find the site. (https://khkong.github.io)
There seems to be a limit to the creation. Help.
When I create a GitHub-page, the URL is https://adarkhero.github.io/PROJECTNAME/ - So, try adding the name of your project to the URL (Like https://khkong.github.io/testproject). You can also see the link to your GitHub-page in the settings of your repository.

Joomla Search issue ".com/index.php/component/users/?view=reset"

I am using Joomla for my website when I search in google for SAPBuddy I always get search result.
Can some one help me I tried to add my side in Google webmaster, but the result is same.
sapbuddy.com/index.php/component/users/?view=reset
Check you've followed these steps.
Create a sitemap. You can use an online tool for this, or a Joomla extension
If you used an online tool to create your sitemap, upload the site the xml file to your server. If you're using an extension, follow their direction. When finished, you should be able to open it with your web browser, e.g. www.domain.com/sitemap.xml . Check if the indexed pages looke good and copy this URL
In webmaster tooks, add your domain then register this sitemap, pasting in your URL
After a short period, check back on Webmaster tools. It will show which pages have been indexed and if there were any errors.
Good luck!

SIteCore - multisite - displaying page from wrong site

We have a multisite SiteCore setup with 2 sites within the same .Net solution.
This works by setting the rootPath property on a Site Definition in web.config to limit the site to part of the SiteCore folder structure.
This works well apart from when pages are created with the same name as in the other site then it's serving content from the other site! We have inherited a fair bit of custom code in this solution form the other site so this may be the cause but dont know what Im looking for ...
Thanks
How are you referencing the sites? Do they each have their own host name? Do you have the "hostName" property set for the site node in the Site Defintion?
I will assume that you are not referring to them this way and instead, the sites are using the "virtualFolder" property. If both sites have the same default value of "/" for virtualFolder, attempting to get to either site will result in Sitecore rendering the first site that it matches on, which would be the site listed first.
Try putting the actual site name for "virtualFolder" and "physicalFolder" (e.g. "Site1" and "Site2", respectively). Then you can address your sites as http://yourserver.com/Site1 and http://yourserver.com/Site2. The "virtualFolder" will match first and render the correct site.
See Configuring Sites in the web.config File on SDN for additional information.
Hope this helps.
It turns out this is happening in this case because of a System alias that is redirecting for a subset of pages