External HTML page and wordpress in same root folder - html

I got a quick question:
I have a HTML page and my wordpress blog in the root folder due to some technical integration's used in it. What I have done to achieve this:
I simply saved my HTML page as "index.html" and put in the root folder that holds the Wordpress "index.php" file. The "index.html" automatically was granted a higher status and opened as my home page.
My question:
How this affects my SEO?
How my sitemap is affected by that?
Since I use SEO plugin by Yoast, this plugin builds my sitemap but I am not sure that it will include my homepage.
I am opened to your interactions and suggestions.
Thanks in advance.

Related

Sitemap - Wordpress site on subdomain

I'm trying to get a definite answer regarding the issue. I have an html website which contains a WordPress blog under it in a subdomain as a folder.
I currently have site map on both the html site and the blog itself. Is that the way to go ? I have also noticed that the sitemap on the html site doesn't include any of my pages/posts from the blog, should it include them as well?
Having two sitemaps for the root and subdomain is perfectly fine and acceptable. Don't forget to submit them to search engines, or include them in your robots.txt file if you have one.
As the methode said, this is perfectly fine and acceptable. All you have to do is just add the in your robots.txt file so that search engines can crawl your html site as well as blog.
First of all create a new robots.txt (if not created earlier) in root / home /www foler of your website and add the following two lines by replacing them with your site related values
sitemap: http://<www.yoursite.com>/<path_to_your_html_sitemap>.xml
sitemap: http://<www.yoursite.com>/<path_to_your_blog_sitemap>.xml

I cant access html files from my document root

I have index.html in /var/www, which is my root document directory. I also have relevantskills.html in the same directory. The first link on index.html leads me to relevantskills.html. When I go to my website at http://brianhotopp.cf/ I can see index.html, and when I click on the first link, it displays relevantskills.html. However, when I try to access relevantskills.html from http://brianhotopp.cf/relevantskills.html, It brings me to index.html. Also I cannot view images in my root document directory. For example, I have a png called favicon, but when I go to mywebsite/favicon.png, it displays the default favicon for my domain name provider, not the one I have in /var/www. Is this a problem with my configuration? My permissions? Any help is appreciated, thanks.
Your website is running inside an iframe, that's why it is not working. When you're clicking on a link, your browser is not "redirected" but the website in the iframe is. That's also why you don't see any changes in the url bar on top of your browser.
I suppose you don't want to see your website inside an iframe. If this is the case, you better contact your hosting company because this is a dirty way of hosting websites.

Static HTML page that links to current Wordpress blog

So, I currently have a WP blog installed. What I want to do is put a static HTML landing page at the root of the site and then a link to the blog. The HTML landing page does not look similar in theme and everything is hosted under the same domain.
How can I do this with this current structure?
I suppose I would have to somehow move the blog to /blog instead of the root?
Thanks.
Depending on what server you're running, you might not need to do anything. Certain servers, like Apache, have a DirectoryIndex which gives priority to .html files by default. So even if you had index.html and index.php in the same folder, it would load the index.html file.
You could also define the priority in an htaccess file or use the commenter above's suggestion of pasting the HTML into the index.php template and then making a "home" template and telling Wordpress to use that specific page as the homepage.
That being said, I would strongly recommend installing Wordpress in a sub-directory, such as "/blog" as you mentioned. Just as a fail-safe.

How to link to a wordpress blog from a static page in a single host computer?

I have a introduction page that is totally html and a blog based on Wordpress. I aim to link my log from the Static page and vice a versa. Is it possible to host both of those pages ina single host by linking each other. If it is, how?
Yes; if you're using Apache, you can set the html page to be served by default using .htaccess:
DirectoryIndex index.html index.php
will ensure that the html file is read before Wordpress's index.php. In the html file you can add a simple link, and in WP you can add arbitrary URLs using custom menus, that will enable you to link back to the introduction page.

How do I make a hyperlink go to a page on another website?

When creating the html files for my website, I had no problem understanding how to create links so that users could navigate between pages. For example, this worked fine to send someone to the about page:
ABOUT
I'm having issues upon uploading the html files to my web server.
How, do I get About link to send the user to: www.blahblahblah.com/about ?
My landing page has been renamed index.html.
You need to add http:// in the href to go to a page on an external site:
About page on blahblahblah.com
This is because when you simply link to it without the http:// in front (hyper text transfer protocol) it is trying to go to the page "www.blahblahblah.com" which obviously does not eixst on your server. When you add the http://, the browser knows that it is another website and therefore will bring you to the external site.
Your web server will be configured with a "document root" directory. Usually this is the directory where index.html is located. Place your about.html in the same directory, and the link you provided will link to it if it is served from the same URL-path (that is to say, it's not in a sub-folder). If your files are indeed in the document root, you may prefix your link href attributes with a forward-slash, which indicates that the path is relative to the document root.
As noted in the previous comment, this technique only works for pages hosted in the same directory as each other, on the same host. If the files are in different directories, you must start with the slash, and if they are on different hosts, you must include the full domain and path.
This is what he meant:
<input type="button" value="SampleText" onClick="window.location='http://www.blahblahblah.com/about';">
and this will open it in a new window:
<input type="button" value="SampleText" onclick="window.location='http://www.blahblahblah.com/about';" target="_blank">