qid int64 4 8.14M | question stringlengths 20 48.3k | answers list | date stringlengths 10 10 | metadata list | input stringlengths 12 45k | output stringlengths 2 31.8k |
|---|---|---|---|---|---|---|
84,988 | <p>Hey there :) I'm having some trouble with the design I have from a designer and the need for structured data.</p>
<p>The problem is as follows:</p>
<p>The design of the frontpage has 8 integrated articles that leads to the full article. It has a title, desc, date time published, and they want structured data for t... | [
{
"answer_id": 84997,
"author": "Evgeniy",
"author_id": 43910,
"author_profile": "https://webmasters.stackexchange.com/users/43910",
"pm_score": 3,
"selected": true,
"text": "<p>you should be clear, why do you want to make use of structured data? to go through the testing tool or to deli... | 2015/09/14 | [
"https://webmasters.stackexchange.com/questions/84988",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/47562/"
] | Hey there :) I'm having some trouble with the design I have from a designer and the need for structured data.
The problem is as follows:
The design of the frontpage has 8 integrated articles that leads to the full article. It has a title, desc, date time published, and they want structured data for the news on the in... | you should be clear, why do you want to make use of structured data? to go through the testing tool or to deliver correctly formatted and standard conform structured data to search engine, so your site will be included into Google News output?
Google News Article needs image: that's the fact. Why it needs it? To show ... |
84,993 | <p>I'm trying to link a <code>Brand</code> to a <code>Product</code> with the following code:</p>
<pre><code><div itemscope itemtype="http://schema.org/Product" id="p2000">
...
<meta itemprop="brand" itemscope itemtype="http://schema.org/Brand" itemref="v1437"/>
...
</div>
</code></pre>
<p>The <c... | [
{
"answer_id": 84996,
"author": "Evgeniy",
"author_id": 43910,
"author_profile": "https://webmasters.stackexchange.com/users/43910",
"pm_score": 0,
"selected": false,
"text": "<p>i guess , that you get different Id's: in case of <code><meta itemprop=\"brand\" itemscope itemtype=\"http... | 2015/09/14 | [
"https://webmasters.stackexchange.com/questions/84993",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/55879/"
] | I'm trying to link a `Brand` to a `Product` with the following code:
```
<div itemscope itemtype="http://schema.org/Product" id="p2000">
...
<meta itemprop="brand" itemscope itemtype="http://schema.org/Brand" itemref="v1437"/>
...
</div>
```
The `Brand` is already defined on the same web page above, inside an ind... | `itemref` does not work like that.
You have to add the `itemref` attribute to the element you want to apply a property to, and this property has to be defined on an element with the matching ID.
So your example should be:
```html
<div itemscope itemtype="http://schema.org/Product" itemref="v1437">
</div>
<h1 itempr... |
84,999 | <p>I have a page where the object (<strong>music album</strong>) is the main focus. Directly underneath the title of the album is the <strong>artist</strong> of the album. Semantically I'm debating what would be the most appropriate tag to give the artist. </p>
<p>My first inclination was to wrap the two in an <code>&... | [
{
"answer_id": 85000,
"author": "Simon Hayter",
"author_id": 20604,
"author_profile": "https://webmasters.stackexchange.com/users/20604",
"pm_score": 3,
"selected": true,
"text": "<p>If you want marking up of music then its best to use microdata such as <a href=\"https://schema.org/Music... | 2015/09/14 | [
"https://webmasters.stackexchange.com/questions/84999",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/42130/"
] | I have a page where the object (**music album**) is the main focus. Directly underneath the title of the album is the **artist** of the album. Semantically I'm debating what would be the most appropriate tag to give the artist.
My first inclination was to wrap the two in an `<hgroup/>` and provide a second level head... | If you want marking up of music then its best to use microdata such as [SCHEMA MusicAlbum](https://schema.org/MusicAlbum). Also, not sure what guides your following but [hgroup was deprecated](https://www.w3.org/wiki/HTML/Elements/hgroup) eons ago!
A typical good example would look something like this:
```
<main item... |
85,062 | <p>According to <a href="https://support.google.com/webmasters/answer/2620865?hl=en&ref_topic=2370587&vid=1-635779726011705328-50738121" rel="nofollow">this</a> Google help document, we can create a sitemap telling Google that we have more than one language. But this requires indicating each URL with different ... | [
{
"answer_id": 85074,
"author": "Mike -- No longer here",
"author_id": 46807,
"author_profile": "https://webmasters.stackexchange.com/users/46807",
"pm_score": 1,
"selected": true,
"text": "<p>I'd like to increase compatibility of my sitemaps to as many search engines as possible. For th... | 2015/09/16 | [
"https://webmasters.stackexchange.com/questions/85062",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/33872/"
] | According to [this](https://support.google.com/webmasters/answer/2620865?hl=en&ref_topic=2370587&vid=1-635779726011705328-50738121) Google help document, we can create a sitemap telling Google that we have more than one language. But this requires indicating each URL with different languages every time.
That means if... | I'd like to increase compatibility of my sitemaps to as many search engines as possible. For this reason, I'd like to only insert my URLs between `<loc>` and `</loc>` only. For example:
```
<loc>http://www.example.com/english/</loc>
<loc>http://www.example.com/french/</loc>
<loc>http://www.example.com/german/</loc>
`... |
85,073 | <p>Is there any way to redirect a page with a question mark in the URL, to the same page, but with everything after the question mark removed?</p>
<p>For example:</p>
<p>From: <code>/residential-properties/projectname/?utm_source=moneycontrol&utm_medium=email&utm_campaign=project</code></p>
<p>To: <code>/res... | [
{
"answer_id": 85074,
"author": "Mike -- No longer here",
"author_id": 46807,
"author_profile": "https://webmasters.stackexchange.com/users/46807",
"pm_score": 1,
"selected": true,
"text": "<p>I'd like to increase compatibility of my sitemaps to as many search engines as possible. For th... | 2015/09/16 | [
"https://webmasters.stackexchange.com/questions/85073",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/55956/"
] | Is there any way to redirect a page with a question mark in the URL, to the same page, but with everything after the question mark removed?
For example:
From: `/residential-properties/projectname/?utm_source=moneycontrol&utm_medium=email&utm_campaign=project`
To: `/residential-properties/projectname/`
I hope you ge... | I'd like to increase compatibility of my sitemaps to as many search engines as possible. For this reason, I'd like to only insert my URLs between `<loc>` and `</loc>` only. For example:
```
<loc>http://www.example.com/english/</loc>
<loc>http://www.example.com/french/</loc>
<loc>http://www.example.com/german/</loc>
`... |
85,103 | <p>At this point in time there's no property in Schema.org that would allow a business to directly communicate holiday periods (e.g., Christmas) to Google bots and other web crawlers. There seems to be an <a href="https://github.com/schemaorg/schemaorg/issues/245" rel="nofollow">open issue on Schema.org's GitHub reposi... | [
{
"answer_id": 85157,
"author": "Evgeniy",
"author_id": 43910,
"author_profile": "https://webmasters.stackexchange.com/users/43910",
"pm_score": -1,
"selected": false,
"text": "<p>I would prefer this solution, because it avoids any redundance, is clear and valid:</p>\n\n<pre><code><di... | 2015/09/16 | [
"https://webmasters.stackexchange.com/questions/85103",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/-1/"
] | At this point in time there's no property in Schema.org that would allow a business to directly communicate holiday periods (e.g., Christmas) to Google bots and other web crawlers. There seems to be an [open issue on Schema.org's GitHub repository](https://github.com/schemaorg/schemaorg/issues/245) however there's no t... | As you said there is an open issue on schema.org for this, so you may be better attempting your own solutions and using trial-and-error to see if google picks it up correct. I would use solution 2. because it gives closed hours and seems clearest, this sounded similar to the suggested solution from the schema.org threa... |
85,143 | <p>So if AdSense places the highest paying ad in the first ad block in your HTML (I’ve read this from multiple sources, if anyone does not agree please let me know why you don’t), how do I make sure the highest paying ad is placed on my best performing location?</p>
<p>In my particular case I have a page we I have one... | [
{
"answer_id": 85144,
"author": "Mike -- No longer here",
"author_id": 46807,
"author_profile": "https://webmasters.stackexchange.com/users/46807",
"pm_score": 2,
"selected": false,
"text": "<p>You're lucky google hasn't issued you a warning (or have they?). </p>\n\n<p>According to this:... | 2015/09/17 | [
"https://webmasters.stackexchange.com/questions/85143",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/55667/"
] | So if AdSense places the highest paying ad in the first ad block in your HTML (I’ve read this from multiple sources, if anyone does not agree please let me know why you don’t), how do I make sure the highest paying ad is placed on my best performing location?
In my particular case I have a page we I have one image and... | One solution is to change the position with css. As you are going to be swapping the ad positions I would rename them in the HTML too to save confusion.
```
<div id="imagesequence">
<div class="prev">...</div>
<div class="ad_right">...</div>
<div class="image">...</div>
<div class="ad_left">...</div>
<div c... |
85,145 | <p>Recently I got email message from Google that <code>Googlebot</code> <code>cant access your site</code>. I tried to look for some articles on the internet about this issue and most them points its because of <em>robots.txt</em> file being set as <code>User-agent: * Disallow: /</code> so does was mine.</p>
<p>How c... | [
{
"answer_id": 85147,
"author": "John Conde",
"author_id": 1253,
"author_profile": "https://webmasters.stackexchange.com/users/1253",
"pm_score": 3,
"selected": true,
"text": "<p>No, the last two lines of your robots.txt file take precedence over the first four as the syntax of those fir... | 2015/09/17 | [
"https://webmasters.stackexchange.com/questions/85145",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/56006/"
] | Recently I got email message from Google that `Googlebot` `cant access your site`. I tried to look for some articles on the internet about this issue and most them points its because of *robots.txt* file being set as `User-agent: * Disallow: /` so does was mine.
How can I allow `Goolebot` and `Bingbot` to crawl the co... | No, the last two lines of your robots.txt file take precedence over the first four as the syntax of those first four lines is incorrect. As a result Google is blocked from viewing your website.
To allow Google and Bing you must specifically and individually allow each crawler:
```
User-agent: googlebot
Disallow:
U... |
85,174 | <p>I've found that the following two URLs will show the same content:</p>
<pre><code>http://example.com/blog/
http://example.com/blog/index.html
</code></pre>
<p>In the case of the first URL, it appears to pick up the <code>index.html</code> from the <code>blog</code> pseudo-folder. I guess this is because I have <co... | [
{
"answer_id": 85236,
"author": "Evgeniy",
"author_id": 43910,
"author_profile": "https://webmasters.stackexchange.com/users/43910",
"pm_score": 0,
"selected": false,
"text": "<p>place in your /blog/index.html on the top, before opening < head></p>\n\n<pre><code><?php\nheader(\"HTT... | 2015/09/18 | [
"https://webmasters.stackexchange.com/questions/85174",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/32167/"
] | I've found that the following two URLs will show the same content:
```
http://example.com/blog/
http://example.com/blog/index.html
```
In the case of the first URL, it appears to pick up the `index.html` from the `blog` pseudo-folder. I guess this is because I have `index.html` configured as my index document.
Howe... | Firstly, make sure you are only linking to one version of the URL, whether it is `/blog/` or `/blog/index.html` (I'd prefer the former since it's shorter and simpler).
The best solution with regards to SEO would be to use a canonical tag. Put this inside the `<head>` tag:
```
<link rel="canonical" href="http://yoursi... |
85,202 | <p>my website is built by jooml 3.4, today it gets a syntax error message like this:</p>
<pre><code>syntax error, unexpected 'if' (T_IF), expecting function (T_FUNCTION) in /public_html/libraries/cms/router/site.php on line 350
</code></pre>
<p>I compare this site.php with other site's site.php file and find out some... | [
{
"answer_id": 85205,
"author": "Nelson",
"author_id": 56053,
"author_profile": "https://webmasters.stackexchange.com/users/56053",
"pm_score": 0,
"selected": false,
"text": "<p>You probably don't have enough access to determine if it is a hack. However, the fact that a file was changed... | 2015/09/19 | [
"https://webmasters.stackexchange.com/questions/85202",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/46631/"
] | my website is built by jooml 3.4, today it gets a syntax error message like this:
```
syntax error, unexpected 'if' (T_IF), expecting function (T_FUNCTION) in /public_html/libraries/cms/router/site.php on line 350
```
I compare this site.php with other site's site.php file and find out some codes are missing around ... | What I would recommend since you already restored the file is check all your access logs that reference the affected `site.php`. This means you (and/or your hosting provider) check your FTP access logs, website access logs (example: access\_log in apache) and logs of any other software installed on the server that can ... |
85,247 | <p>I am managing an e-store site created by another colleague, that was badly created from the start.
Because of the structure, pagination and user browser capabilities combined with lack of meta robots directives to "noindex" certain pages it ended up with over 20k pages indexed in Google. </p>
<p>I am working on a w... | [
{
"answer_id": 85248,
"author": "Evgeniy",
"author_id": 43910,
"author_profile": "https://webmasters.stackexchange.com/users/43910",
"pm_score": 3,
"selected": true,
"text": "<pre><code>by another colleague, that was badly created from the start\n</code></pre>\n\n<p>my deepest condolence... | 2015/09/21 | [
"https://webmasters.stackexchange.com/questions/85247",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/37417/"
] | I am managing an e-store site created by another colleague, that was badly created from the start.
Because of the structure, pagination and user browser capabilities combined with lack of meta robots directives to "noindex" certain pages it ended up with over 20k pages indexed in Google.
I am working on a website res... | ```
by another colleague, that was badly created from the start
```
my deepest condolences:)
The main point you should consider, is whether pages you want to get rid of have EXTERNAL links. This should be the basis for your decision to 301 or 404 them:
* if they have external link, 301 them to save the link equity
... |
85,313 | <p>What is the correct tag to use in the middle section of the image below, keeping in mind correct site structure and SEO?</p>
<p><a href="https://i.stack.imgur.com/Zcz5X.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Zcz5X.jpg" alt="Screenshot of webpage, showing 3 text blocks with different font ... | [
{
"answer_id": 85316,
"author": "Kyle",
"author_id": 55806,
"author_profile": "https://webmasters.stackexchange.com/users/55806",
"pm_score": -1,
"selected": false,
"text": "<p>I'd lean towards the H2 tag as it is actually a single line of text, not a paragraph (so not <code>p</code>).</... | 2015/09/23 | [
"https://webmasters.stackexchange.com/questions/85313",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/28771/"
] | What is the correct tag to use in the middle section of the image below, keeping in mind correct site structure and SEO?
[](https://i.stack.imgur.com/Zcz5X.jpg)
There have been some discussions and these are ... | Using a heading (like `h2`) for this sentence would create a wrong outline. Everything that follows would be in scope of this "heading", which is likely not what you intend. If it *would* be content appropriate for a heading, it should be part of the first heading (`h1`).
(It’s not appropriate for a heading because ... |
85,383 | <p><em>I don't know <strike>much</strike> anything about how hosting works, so if there's any additional info I should provide, please let me know.</em></p>
<p>The URL <code>example.com</code> correctly forwards to <code>www.example.com</code>. But <code>example.com/file.pdf</code> and <code>example.com/some-blog-post... | [
{
"answer_id": 85422,
"author": "Mike -- No longer here",
"author_id": 46807,
"author_profile": "https://webmasters.stackexchange.com/users/46807",
"pm_score": 1,
"selected": false,
"text": "<p>What you could do is make <code>example.com</code> and <code>www.example.com</code> as separat... | 2015/09/25 | [
"https://webmasters.stackexchange.com/questions/85383",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/56263/"
] | *I don't know much anything about how hosting works, so if there's any additional info I should provide, please let me know.*
The URL `example.com` correctly forwards to `www.example.com`. But `example.com/file.pdf` and `example.com/some-blog-post` *also* forwards to `www.example.com` rather than `www.example.com/file... | You have implemented this redirect with Namecheap. [Their help document](https://www.namecheap.com/support/knowledgebase/article.aspx/385/77/how-do-i-set-up-url-forwarding-for-a-domain) explains how to set up the redirects either way:
>
>
> ```
> www1 http://destination.com Permanent (301)
> www2 http://desti... |
85,409 | <p>I run a website where I have full cpanel and limited whm access. I recently upgraded one of my domains to include SSL (A first-time experience for me).</p>
<p>The certificates are installed in cpanel, and our happy little padlock is now displaying, this works perfectly on desktops (all browsers), iphones and some o... | [
{
"answer_id": 85421,
"author": "Simon Hayter",
"author_id": 20604,
"author_profile": "https://webmasters.stackexchange.com/users/20604",
"pm_score": 0,
"selected": false,
"text": "<p>Inspecting your SSL certification on your website I can confirm that you have used the correct files inc... | 2015/09/27 | [
"https://webmasters.stackexchange.com/questions/85409",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/56300/"
] | I run a website where I have full cpanel and limited whm access. I recently upgraded one of my domains to include SSL (A first-time experience for me).
The certificates are installed in cpanel, and our happy little padlock is now displaying, this works perfectly on desktops (all browsers), iphones and some other phone... | Simply, the problem here is that the certificate chains up to COMODO RSA Certificate Autority at the root, not to AddTrustExternalCARoot.
Android devices do not have the COMODO RSA Certificate Authority in their root stores, only AddTrustExternalCARoot.
If running IIS, you should go ahead and remove the COMODORSACerti... |
85,419 | <p>I have a site where much of the focus are the images themselves. When people visit the website directly (with an AdSense ad shown), the image shows in normal high-quality. </p>
<p>When robots visit the image, they will see a watermarked version. The reason for this is because the photographer of the site dedicates ... | [
{
"answer_id": 85526,
"author": "Terradon",
"author_id": 49755,
"author_profile": "https://webmasters.stackexchange.com/users/49755",
"pm_score": 0,
"selected": false,
"text": "<p>You should not do that, for reasons already mentioned by the comments. \nYou could filter by user-agent stri... | 2015/09/27 | [
"https://webmasters.stackexchange.com/questions/85419",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/46807/"
] | I have a site where much of the focus are the images themselves. When people visit the website directly (with an AdSense ad shown), the image shows in normal high-quality.
When robots visit the image, they will see a watermarked version. The reason for this is because the photographer of the site dedicates his time i... | The ideal way would be handling this at nginx level.
Do something like this:
* If page requested == "/images/watermark.jpg"
* If useragent == bot
* Rewrite (internal) to something like "/images/bot/watermark.jpg"
---
### Step 1
Add this in your nginx config.
```
map $http_user_agent $limit_bots {
default 0;
... |
85,454 | <p>I have a site whose <code>.htaccess</code> file contains:</p>
<pre><code>ErrorDocument 404 /errors/404.html
ErrorDocument 500 /errors/500.html
</code></pre>
<p>The 404 redirect works just fine, but when I encounter a 500 Internal Server Error, it gives the default Internal Server Error message as opposed to <code>... | [
{
"answer_id": 85437,
"author": "Evgeniy",
"author_id": 43910,
"author_profile": "https://webmasters.stackexchange.com/users/43910",
"pm_score": 0,
"selected": false,
"text": "<p>They can do both. But keywords in the domain name are no longer a ranking factor, which could give you an edg... | 2015/09/28 | [
"https://webmasters.stackexchange.com/questions/85454",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/53621/"
] | I have a site whose `.htaccess` file contains:
```
ErrorDocument 404 /errors/404.html
ErrorDocument 500 /errors/500.html
```
The 404 redirect works just fine, but when I encounter a 500 Internal Server Error, it gives the default Internal Server Error message as opposed to `/errors/500.html`. It also says
>
> Add... | Okay, just for the sake of explanation, I thought I would jump in. This is a simple process to understand. I thought I would explain it theoretically so that you can take the concepts forward with you into the future and apply it in other areas.
There are a few things you need to know in order to understand how this w... |
85,461 | <p>What I want to do is try to get search engines to rescan my sitemap files (plain xml files stored on server). It did recently attempt to access it but it received a not modified response (HTTP status 304) from the server. </p>
<p>Is there any configuration setting I can apply to apache so that any future requests ... | [
{
"answer_id": 85468,
"author": "Evgeniy",
"author_id": 43910,
"author_profile": "https://webmasters.stackexchange.com/users/43910",
"pm_score": 0,
"selected": false,
"text": "<p>I think, like this would help:</p>\n\n<pre><code><FilesMatch \"\\.(xml)$\">\nExpiresDefault A14515200\n... | 2015/09/29 | [
"https://webmasters.stackexchange.com/questions/85461",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/46807/"
] | What I want to do is try to get search engines to rescan my sitemap files (plain xml files stored on server). It did recently attempt to access it but it received a not modified response (HTTP status 304) from the server.
Is there any configuration setting I can apply to apache so that any future requests to successf... | Let me make your question a little simpler.. :)
What ?
------
* Send 200 response instead of 304
How ?
-----
Just add this configuration in your Apache setup.
```
<filesMatch "\.(xml)$">
FileETag None
<ifModule mod_headers.c>
Header unset ETag
Header set Cache-Control "max-age=0, no-cache, no-store, ... |
85,508 | <p>I'm trying to add the <code>rel=canonical</code> tag to only one page. In order to add the tag, I need to add it to the part, in the <code>mod_header.php</code> file. This will add the same rel canonical tag to all the pages of my website.</p>
<p>How can I add rel canonical to only one page. I don't want to do a 3... | [
{
"answer_id": 85509,
"author": "Evgeniy",
"author_id": 43910,
"author_profile": "https://webmasters.stackexchange.com/users/43910",
"pm_score": 3,
"selected": true,
"text": "<p>Add to htaccess:</p>\n\n<pre><code><Files \"file.html\">\nHeader add Link \"<http://www.example.com&g... | 2015/09/30 | [
"https://webmasters.stackexchange.com/questions/85508",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/56101/"
] | I'm trying to add the `rel=canonical` tag to only one page. In order to add the tag, I need to add it to the part, in the `mod_header.php` file. This will add the same rel canonical tag to all the pages of my website.
How can I add rel canonical to only one page. I don't want to do a 301 redirect, I want to add a `rel... | Add to htaccess:
```
<Files "file.html">
Header add Link "<http://www.example.com>;rel=\"canonical\""
</Files>
```
For further info read: <https://moz.com/blog/how-to-advanced-relcanonical-http-headers> |
85,519 | <p>I'm using a "synthetic record" at Google Domains to redirect traffic from the bare domain <code>example.com</code> to <code>www.example.com</code>:</p>
<p><a href="https://i.stack.imgur.com/UKdHo.png" rel="noreferrer"><img src="https://i.stack.imgur.com/UKdHo.png" alt="enter image description here"></a></p>
<p>Thi... | [
{
"answer_id": 93595,
"author": "Charlie Schliesser",
"author_id": 19688,
"author_profile": "https://webmasters.stackexchange.com/users/19688",
"pm_score": 2,
"selected": false,
"text": "<p><strong>This answer is no longer valid, see the accepted answer.</strong></p>\n<hr />\n<p>However ... | 2015/09/30 | [
"https://webmasters.stackexchange.com/questions/85519",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/19688/"
] | I'm using a "synthetic record" at Google Domains to redirect traffic from the bare domain `example.com` to `www.example.com`:
[](https://i.stack.imgur.com/UKdHo.png)
This works for requests to **`http://example.com`**, of which there are 4 A records ... | Google has very recently added an option to support redirect over SSL. Not sure how this is being done but it appears that Google is setting up their own SSL cert to make this possible. Enabling this feature shows a message "This synthetic record has an error and will not function correctly: The SSL Certificate for thi... |
85,545 | <p>I have create an online shop for bikes. In the footer are the payment methods like VISA, MASTERCARD and PAYPAL, including delivery and collection methods.</p>
<p>Which schemas from Schema.org should use I to markup payment and delivery methods in the footer? But bare in mind that this content is repeated on every p... | [
{
"answer_id": 85551,
"author": "Simon Hayter",
"author_id": 20604,
"author_profile": "https://webmasters.stackexchange.com/users/20604",
"pm_score": 1,
"selected": false,
"text": "<p>You can use something like this:</p>\n\n<pre><code><footer>\n <ul itemscope itemtype=\"http:... | 2015/10/01 | [
"https://webmasters.stackexchange.com/questions/85545",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/56437/"
] | I have create an online shop for bikes. In the footer are the payment methods like VISA, MASTERCARD and PAYPAL, including delivery and collection methods.
Which schemas from Schema.org should use I to markup payment and delivery methods in the footer? But bare in mind that this content is repeated on every page. | For an `Offer` (i.e., a bike) you can provide the [`acceptedPaymentMethod` property](http://schema.org/acceptedPaymentMethod) and the [`availableDeliveryMethod` property](http://schema.org/availableDeliveryMethod):
* `acceptedPaymentMethod` takes enumeration URIs from [`PaymentMethod`](http://schema.org/PaymentMethod)... |
85,546 | <p>I am using nginx / ispconfig and want to block access to any php file under a directory using server directives.</p>
<p>My directive looks like this:</p>
<pre><code>location / {
location ~ /notallowed/(.+)\.php$ {
deny all;
}
}
</code></pre>
<p>The idea is that I match for / first, to make sure this is ... | [
{
"answer_id": 85551,
"author": "Simon Hayter",
"author_id": 20604,
"author_profile": "https://webmasters.stackexchange.com/users/20604",
"pm_score": 1,
"selected": false,
"text": "<p>You can use something like this:</p>\n\n<pre><code><footer>\n <ul itemscope itemtype=\"http:... | 2015/10/01 | [
"https://webmasters.stackexchange.com/questions/85546",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/11281/"
] | I am using nginx / ispconfig and want to block access to any php file under a directory using server directives.
My directive looks like this:
```
location / {
location ~ /notallowed/(.+)\.php$ {
deny all;
}
}
```
The idea is that I match for / first, to make sure this is prioritised over any regex locati... | For an `Offer` (i.e., a bike) you can provide the [`acceptedPaymentMethod` property](http://schema.org/acceptedPaymentMethod) and the [`availableDeliveryMethod` property](http://schema.org/availableDeliveryMethod):
* `acceptedPaymentMethod` takes enumeration URIs from [`PaymentMethod`](http://schema.org/PaymentMethod)... |
85,548 | <p>Is there any way to forward or shorten (example): </p>
<pre><code>example.this.com/123/ABC
</code></pre>
<p>to </p>
<pre><code>example.this.com/ABC
</code></pre>
<p>CName doesn't cut it, and I am not sure how to do a forward or url-shorten? I am not looking for <code>bit.ly</code> or those kinds of things. I w... | [
{
"answer_id": 85551,
"author": "Simon Hayter",
"author_id": 20604,
"author_profile": "https://webmasters.stackexchange.com/users/20604",
"pm_score": 1,
"selected": false,
"text": "<p>You can use something like this:</p>\n\n<pre><code><footer>\n <ul itemscope itemtype=\"http:... | 2015/09/30 | [
"https://webmasters.stackexchange.com/questions/85548",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/56423/"
] | Is there any way to forward or shorten (example):
```
example.this.com/123/ABC
```
to
```
example.this.com/ABC
```
CName doesn't cut it, and I am not sure how to do a forward or url-shorten? I am not looking for `bit.ly` or those kinds of things. I would prefer to keep this done in house. Rewrite Rule in ISS ... | For an `Offer` (i.e., a bike) you can provide the [`acceptedPaymentMethod` property](http://schema.org/acceptedPaymentMethod) and the [`availableDeliveryMethod` property](http://schema.org/availableDeliveryMethod):
* `acceptedPaymentMethod` takes enumeration URIs from [`PaymentMethod`](http://schema.org/PaymentMethod)... |
85,575 | <p>I'm trying to redirect my main domain non-www to www but I have this error; my add on domain redirects like this:</p>
<pre><code>http://www.example.org/example.org/
</code></pre>
<p>How can I redirect my main domain without affecting my addon domains.</p>
<p>My redirect code is:</p>
<pre><code>RewriteCond %{HTTP... | [
{
"answer_id": 85576,
"author": "MrWhite",
"author_id": 1243,
"author_profile": "https://webmasters.stackexchange.com/users/1243",
"pm_score": 1,
"selected": false,
"text": "<p>Assuming your addon domain points to a subdirectory off the main domain's document root, then a simple workarou... | 2015/10/01 | [
"https://webmasters.stackexchange.com/questions/85575",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/56459/"
] | I'm trying to redirect my main domain non-www to www but I have this error; my add on domain redirects like this:
```
http://www.example.org/example.org/
```
How can I redirect my main domain without affecting my addon domains.
My redirect code is:
```
RewriteCond %{HTTP_HOST} ^mydomain.com [NC]
RewriteRule ^(.*)... | This works much better since it does a redirect on any URL without www to the www version.
```
RewriteEngine On
RewriteCond %{HTTP_HOST} ^example.com$ [NC]
RewriteRule ^(.*)$ http://www.example.com/$1 [R=301,L]
``` |
85,605 | <p>From what I learned, there's one way I could cause all URLs on a domain strictly serving images not to be indexed and that is with the x-robots-tag HTTP header. Now I check my logs and find out that google and even baidu are downloading the entire contents of the image URLs. I was hoping they'd stop downloading when... | [
{
"answer_id": 105512,
"author": "Chris Rutherfurd",
"author_id": 60702,
"author_profile": "https://webmasters.stackexchange.com/users/60702",
"pm_score": 1,
"selected": false,
"text": "<p>The most effective way to do this is to use a robots.txt file with <code>Disallow: /</code> as the ... | 2015/10/02 | [
"https://webmasters.stackexchange.com/questions/85605",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/46807/"
] | From what I learned, there's one way I could cause all URLs on a domain strictly serving images not to be indexed and that is with the x-robots-tag HTTP header. Now I check my logs and find out that google and even baidu are downloading the entire contents of the image URLs. I was hoping they'd stop downloading when th... | The most effective way to do this is to use a robots.txt file with `Disallow: /` as the only directive and place it in the web root for the images domain. When this is done search engines won't crawl the images. The reason why you got the error from Google was only because it was a computer based evaluation that deemed... |
85,682 | <p>I found out that someone who used to have my current IP address, still has an old A record and google is using that for returning search results. As a result, when someone searches the name of my website in google, it shows their url and my sites metadata and name. And when anyone clicks on the link it goes to our w... | [
{
"answer_id": 85683,
"author": "Andrew Lott",
"author_id": 23812,
"author_profile": "https://webmasters.stackexchange.com/users/23812",
"pm_score": 4,
"selected": true,
"text": "<p>The simplest solution is to just return a 403 or 410 response for any traffic on the unwanted domain.</p>\... | 2015/10/05 | [
"https://webmasters.stackexchange.com/questions/85682",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/56578/"
] | I found out that someone who used to have my current IP address, still has an old A record and google is using that for returning search results. As a result, when someone searches the name of my website in google, it shows their url and my sites metadata and name. And when anyone clicks on the link it goes to our webs... | The simplest solution is to just return a 403 or 410 response for any traffic on the unwanted domain.
In .htaccess on Apache you could do something like:
```
RewriteEngine On
RewriteCond %{HTTP_HOST} ^(www\.)?domain\.com$ [NC]
RewriteRule ^ - [L,R=410]
```
In Nginx you could do something like:
```
server {
list... |
85,721 | <p>I want to store the search history which a user has followed to find a product. It can arrive to the landing page of the product through numerous paths, so I want them stored somewhere. I have discarded a cookie approach, as I would like to allow the user to send the URL to another user and still keep the data. So I... | [
{
"answer_id": 85727,
"author": "macln",
"author_id": 55699,
"author_profile": "https://webmasters.stackexchange.com/users/55699",
"pm_score": 2,
"selected": true,
"text": "<p>The ticket string in the URL is basically irrelevant to a search engine. From what I understand, both cases woul... | 2015/10/06 | [
"https://webmasters.stackexchange.com/questions/85721",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/56599/"
] | I want to store the search history which a user has followed to find a product. It can arrive to the landing page of the product through numerous paths, so I want them stored somewhere. I have discarded a cookie approach, as I would like to allow the user to send the URL to another user and still keep the data. So I th... | The ticket string in the URL is basically irrelevant to a search engine. From what I understand, both cases would serve the same page content (about the `/sport-shoes/` product and *may include* minor customisations like related products, etc based on the ticket string).
Thus, in both cases, you would be better off in... |
85,747 | <p>Given a URL with a CDN domain (e.g. <em>a1856.g2.akamai.net</em>), is there a way to find out the original webpage/service that was requested when it was delivered via that CDN?</p>
<p>I am monitoring my internet usage and the monitoring software spits out URLs visited. Some of these are obvious while others delive... | [
{
"answer_id": 85760,
"author": "Evgeniy",
"author_id": 43910,
"author_profile": "https://webmasters.stackexchange.com/users/43910",
"pm_score": 0,
"selected": false,
"text": "<p>What is the problem with the second URL? It is the <a href=\"https://www.akamai.com/\" rel=\"nofollow\">https... | 2015/10/07 | [
"https://webmasters.stackexchange.com/questions/85747",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/56623/"
] | Given a URL with a CDN domain (e.g. *a1856.g2.akamai.net*), is there a way to find out the original webpage/service that was requested when it was delivered via that CDN?
I am monitoring my internet usage and the monitoring software spits out URLs visited. Some of these are obvious while others delivered via CDNs are ... | Short answer
------------
You can't in general. Many "original domains" could be mapped to the same CDN host. In a sense if all you've got is the information you mentioned in your question, it's not enough and "too late" to do anything.
Longer answer
-------------
There's some hope if the traffic is in clear. The po... |
85,820 | <p>From what I learned in my server logs, IP addresses starting with 64.249 belong to google. When I do a host lookup on my computer for google I receive 11 different IP addresses all starting with 74.125.226.</p>
<p>I then go here <a href="http://www.iplists.com/" rel="noreferrer">http://www.iplists.com/</a> and find... | [
{
"answer_id": 85822,
"author": "closetnoc",
"author_id": 36029,
"author_profile": "https://webmasters.stackexchange.com/users/36029",
"pm_score": 3,
"selected": false,
"text": "<p>First things first.</p>\n\n<p>There are two domain names that we are talking about; Google.com and Googlebo... | 2015/10/08 | [
"https://webmasters.stackexchange.com/questions/85820",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/46807/"
] | From what I learned in my server logs, IP addresses starting with 64.249 belong to google. When I do a host lookup on my computer for google I receive 11 different IP addresses all starting with 74.125.226.
I then go here <http://www.iplists.com/> and find out there's a bunch more IP addresses for google.
I even did ... | First things first.
There are two domain names that we are talking about; Google.com and Googlebot.com. Doing a reverse look-up for Google.com would be misleading.
Here is an answer I gave quite a while ago where I did an audit of the Google IP addresses used to crawl my site over 8 years. This is not the be-all end-... |
85,826 | <p>I am in a shared host that I have basic cli access.</p>
<p>Inside public_html/ I host several addon domains, each in its own dir. Is it possible to make my main domain's document root inside another folder to achieve the following structure?</p>
<pre><code>public_html/
--maindomain_root/
--othersite1_root/
... | [
{
"answer_id": 85829,
"author": "Mike -- No longer here",
"author_id": 46807,
"author_profile": "https://webmasters.stackexchange.com/users/46807",
"pm_score": 1,
"selected": false,
"text": "<p>In httpd.conf (which is usually located in /usr/local/apache/conf in a linux box with cpanel),... | 2015/10/08 | [
"https://webmasters.stackexchange.com/questions/85826",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/27112/"
] | I am in a shared host that I have basic cli access.
Inside public\_html/ I host several addon domains, each in its own dir. Is it possible to make my main domain's document root inside another folder to achieve the following structure?
```
public_html/
--maindomain_root/
--othersite1_root/
--othersite1_root/... | Sorry my question is actually wrong because I had the misconception that all document roots must live inside public\_html/. I just moved them outside, and now public\_html/ is just the doc root for my main domain. So I avoided to have scattered files and every site is in its own dir. |
85,844 | <p>I'm trying to create a goal in Google Analytics that tracks the type of account being created in our system. Unfortunately, the URLs aren't definitive to the type of account creation, and the only elements I have are a button and a radio selection. </p>
<p>I need to track when a radio button is selected (and stays ... | [
{
"answer_id": 85937,
"author": "Holland Wilson",
"author_id": 55896,
"author_profile": "https://webmasters.stackexchange.com/users/55896",
"pm_score": 0,
"selected": false,
"text": "<p>You'll want to put a bit of JS in your after-form-page header that checks the POST content for that ra... | 2015/10/09 | [
"https://webmasters.stackexchange.com/questions/85844",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/44955/"
] | I'm trying to create a goal in Google Analytics that tracks the type of account being created in our system. Unfortunately, the URLs aren't definitive to the type of account creation, and the only elements I have are a button and a radio selection.
I need to track when a radio button is selected (and stays selected) ... | What you need to do is create multiple goals that are based on the final URL and the paths taken. The trick then is to trigger a pseudo pageview via an event when the user clicks on one of the radio buttons and then set that page as a required step in the conversion funnel path.
Google Tag Manager is much better equip... |
85,877 | <p>I would like to add Schema.org <code>Product</code> information on my website (using Mirodata), but I would like to offer different sizes of the same product and provide different prices for each of them. I have one page per product at the moment, but I am very interested in setting up some sort of summary page so I... | [
{
"answer_id": 85878,
"author": "unor",
"author_id": 17633,
"author_profile": "https://webmasters.stackexchange.com/users/17633",
"pm_score": 1,
"selected": false,
"text": "<p>If you want to provide the different sizes as structured data, you have to use a separate <a href=\"http://schem... | 2015/10/11 | [
"https://webmasters.stackexchange.com/questions/85877",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/56559/"
] | I would like to add Schema.org `Product` information on my website (using Mirodata), but I would like to offer different sizes of the same product and provide different prices for each of them. I have one page per product at the moment, but I am very interested in setting up some sort of summary page so I am trying to ... | The single way to accomplish it on the one URL (and all other described circumstances) is to use [AggregateOffer](https://schema.org/AggregateOffer). The Shema is:
```
` → AggregateOffer (highPrice == price 1; lowPrice == price 2, offerCount == 2)
→ offers
→ Offer 1 (price 1)
→ Product 1 (color... |
85,904 | <p>I recently had to update the hosting plan of a WordPress site I run due to bandwidth excess, which was already quite high.
I've installed a security plugin that keeps log of 404 errors. From here I see a large amount of accesses to spam pages from an IP that results being from a Googlebot.
I've disallowed all bots ... | [
{
"answer_id": 85922,
"author": "closetnoc",
"author_id": 36029,
"author_profile": "https://webmasters.stackexchange.com/users/36029",
"pm_score": 0,
"selected": false,
"text": "<p>404 errors are a part of business. They can come from poorly made links on other sites, current link on you... | 2015/10/12 | [
"https://webmasters.stackexchange.com/questions/85904",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/56763/"
] | I recently had to update the hosting plan of a WordPress site I run due to bandwidth excess, which was already quite high.
I've installed a security plugin that keeps log of 404 errors. From here I see a large amount of accesses to spam pages from an IP that results being from a Googlebot.
I've disallowed all bots to ... | If the URLs they are requesting follow some patterns, I think it *is* a good idea to block those pages. Based on your comment above, in your robots.txt you could add:
```
User-agent: *
Disallow: /data/
```
That will work as long as you don't have any real URLs beginning with `data`.
The second thing you may want to... |
85,925 | <p>If you are building a website that will display photos to users of the site, is it important to always give each photo a unique name?<br>
For example, instead of naming a photo file using an index number such as "00001" like this:</p>
<pre><code> <username>_00001.jpg
</code></pre>
<p>would it be better to na... | [
{
"answer_id": 85912,
"author": "Guillermo Carone",
"author_id": 55667,
"author_profile": "https://webmasters.stackexchange.com/users/55667",
"pm_score": 3,
"selected": true,
"text": "<p>Here is Google’s own definition for RPM <a href=\"https://support.google.com/adsense/answer/112030?hl... | 2015/10/12 | [
"https://webmasters.stackexchange.com/questions/85925",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/56720/"
] | If you are building a website that will display photos to users of the site, is it important to always give each photo a unique name?
For example, instead of naming a photo file using an index number such as "00001" like this:
```
<username>_00001.jpg
```
would it be better to name it using a unique random chara... | Here is Google’s own definition for RPM <https://support.google.com/adsense/answer/112030?hl=en>
As you can see it’s perfectly normal that your RPM is still zero since you haven’t gotten any earnings and therefore zero divided by whatever number of page views will always be zero.
I know it’s hard, especially at the b... |
85,927 | <p>I have a problem here where Google shows my <code><nav></code> instead of my main section in the SERPs. On top of that, <a href="https://webmasters.stackexchange.com/questions/82240/will-google-punish-me-for-not-using-ulli">because my nav is made up of inline elements</a>, the result gets really messy:</p>
<p... | [
{
"answer_id": 85930,
"author": "JCL1178",
"author_id": 5757,
"author_profile": "https://webmasters.stackexchange.com/users/5757",
"pm_score": 3,
"selected": true,
"text": "<blockquote>\n <p>I have a problem here where Google shows my <code><nav></code> instead of my main section ... | 2015/10/12 | [
"https://webmasters.stackexchange.com/questions/85927",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/38028/"
] | I have a problem here where Google shows my `<nav>` instead of my main section in the SERPs. On top of that, [because my nav is made up of inline elements](https://webmasters.stackexchange.com/questions/82240/will-google-punish-me-for-not-using-ulli), the result gets really messy:
```
example.com - My page title
www.e... | >
> I have a problem here where Google shows my `<nav>` instead of my main section in the SERPs.
>
>
>
Do you have an unique meta description defined for each of your pages? If so, Google will use that in the SERPS instead of whatever it can find. As Simon says (heh...Simon Says) Google usually does a good job of... |
85,963 | <p>I recently had a re-think about my website and decided that if I was going to build something new I might as well go all the way and make it responsive with CSS. So I've built it and tested it out by resizing the browser window down from full size (1366px) down to it's smallest size of 440px (Which I know is larger... | [
{
"answer_id": 85944,
"author": "Evgeniy",
"author_id": 43910,
"author_profile": "https://webmasters.stackexchange.com/users/43910",
"pm_score": 1,
"selected": false,
"text": "<p>if you reuse them, don't delete them - you don't want to lose the whole link equity of backlinks, which link ... | 2015/10/13 | [
"https://webmasters.stackexchange.com/questions/85963",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/56812/"
] | I recently had a re-think about my website and decided that if I was going to build something new I might as well go all the way and make it responsive with CSS. So I've built it and tested it out by resizing the browser window down from full size (1366px) down to it's smallest size of 440px (Which I know is larger tha... | if you reuse them, don't delete them - you don't want to lose the whole link equity of backlinks, which link to your summer offers!
Redirect them with 301 to the category page, where should stay a message like `dude, its winter now! summer offers are out of stock for a while! Let me your email and go in your winter sl... |
85,998 | <p>I'm running a WordPress plan on bluehost servers! It's 1 Core with 2GB of RAM.</p>
<p>PHP Memory Limit is set to 512MB and WordPress has:</p>
<pre><code>define('WP_MEMORY_LIMIT', '256M')
</code></pre>
<p>Is this proportion OK?</p>
<p>I'm only running this WordPress website. Should I increase WordPress memory? An... | [
{
"answer_id": 86033,
"author": "Lucky Chingi",
"author_id": 56868,
"author_profile": "https://webmasters.stackexchange.com/users/56868",
"pm_score": 0,
"selected": false,
"text": "<p>Go to Woocommerce > system status and it will tell you if the memory limit is optimal.</p>\n"
},
{
... | 2015/10/14 | [
"https://webmasters.stackexchange.com/questions/85998",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/54305/"
] | I'm running a WordPress plan on bluehost servers! It's 1 Core with 2GB of RAM.
PHP Memory Limit is set to 512MB and WordPress has:
```
define('WP_MEMORY_LIMIT', '256M')
```
Is this proportion OK?
I'm only running this WordPress website. Should I increase WordPress memory? Any thoughts on this? | Rather than defining it in wp-config.php, a php.ini file can allow you to set not only the memory, but also max\_execution\_time, file upload size, and other settings that frequently cause issues with WordPress themes. Make sure you kill the PHP processes (some cPanel dashboards offer it) for it to go into effect. Or y... |
86,073 | <p>I want to easily view Events for a particular page in Google Analytics.</p>
<p>Is there a way to pass in the page filename to the event call?</p>
<p>e.g.,</p>
<pre><code>_gaq.push(['_trackEvent', 'ACTION-DESCRIPTION', 'ACTION','LABEL-usually-PAGE']);
</code></pre>
| [
{
"answer_id": 86075,
"author": "czmudzin",
"author_id": 44955,
"author_profile": "https://webmasters.stackexchange.com/users/44955",
"pm_score": 1,
"selected": false,
"text": "<p>I would suggest using Google Tag Manager, as it allows you to define variables for event tracking.</p>\n"
... | 2015/10/16 | [
"https://webmasters.stackexchange.com/questions/86073",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/7031/"
] | I want to easily view Events for a particular page in Google Analytics.
Is there a way to pass in the page filename to the event call?
e.g.,
```
_gaq.push(['_trackEvent', 'ACTION-DESCRIPTION', 'ACTION','LABEL-usually-PAGE']);
``` | You can define a variable to store the pathname and then use that variable in the event
```
var path = document.location.pathname
_gaq.push(['_trackEvent', 'category', 'action', 'path = '+path]);
``` |
86,082 | <p>Google have indexed 300k <strong>tag pages</strong> of my site, these are automatically generated based on the words on the title of each entry so it's likely to see pages which doesn't make much sense like:</p>
<pre><code>www.example.com/tags/thanks.html
www.example.com/tags/hello.html
www.example.com/tags/good.... | [
{
"answer_id": 86125,
"author": "Arjunsinh Chauhan",
"author_id": 50535,
"author_profile": "https://webmasters.stackexchange.com/users/50535",
"pm_score": 2,
"selected": false,
"text": "<p>Most of big sites hit by Google panda, because of low quality of website(not low quality of post, b... | 2015/10/17 | [
"https://webmasters.stackexchange.com/questions/86082",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/53722/"
] | Google have indexed 300k **tag pages** of my site, these are automatically generated based on the words on the title of each entry so it's likely to see pages which doesn't make much sense like:
```
www.example.com/tags/thanks.html
www.example.com/tags/hello.html
www.example.com/tags/good.html
```
After reading [... | Most of big sites hit by Google panda, because of low quality of website(not low quality of post, but it is because of indexing tag that is auto generated).
In general, tags is also consider a single webpage, but problem is that, one post have many of tags, so your post title and post description is displayed on mult... |
86,107 | <p>I have two domains pointing to the same hosting account. My code in the index.php page recognizes which domain and shows different content for each domain. However, both domains have the same <code>sitemap.xml</code> because there is only one sitemap in the <code>public_html</code> directory.</p>
<p>Is it possible ... | [
{
"answer_id": 86110,
"author": "Rody",
"author_id": 56921,
"author_profile": "https://webmasters.stackexchange.com/users/56921",
"pm_score": 0,
"selected": false,
"text": "<p>You can use 2 different sitemap files and add these seperate files to Google Webmaster Tools:</p>\n\n<ul>\n<li><... | 2015/10/19 | [
"https://webmasters.stackexchange.com/questions/86107",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/46346/"
] | I have two domains pointing to the same hosting account. My code in the index.php page recognizes which domain and shows different content for each domain. However, both domains have the same `sitemap.xml` because there is only one sitemap in the `public_html` directory.
Is it possible to have two distinct sitemaps fo... | This way comes straight out of our .htaccess and works like a charm:
```
RewriteCond %{HTTP_HOST} ^.*myhost\.com$
RewriteRule ^sitemap.xml$ sitemap-com.xml [NC]
RewriteCond %{HTTP_HOST} ^.*myhost\.ca$
RewriteRule ^sitemap.xml$ sitemap-ca.xml [NC]
``` |
86,143 | <p>Suppose I want to buy SSL certs for a domain, say <code>xyzzy.com</code> and three sub-domains (www.xyzzy.com, smtp. and mail. for example). There seem to be several options: multiple single-server certs, a "multi-domain" cert or a "wildcard" cert. This question has to do with <em>technical</em> reasons for choosi... | [
{
"answer_id": 86156,
"author": "LordNeo",
"author_id": 53003,
"author_profile": "https://webmasters.stackexchange.com/users/53003",
"pm_score": 2,
"selected": false,
"text": "<p>From my personal experience, depends if your site/proyect would need or not some extra domains in the short r... | 2015/10/19 | [
"https://webmasters.stackexchange.com/questions/86143",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/53975/"
] | Suppose I want to buy SSL certs for a domain, say `xyzzy.com` and three sub-domains (www.xyzzy.com, smtp. and mail. for example). There seem to be several options: multiple single-server certs, a "multi-domain" cert or a "wildcard" cert. This question has to do with *technical* reasons for choosing one type of cert ove... | From my personal experience, depends if your site/proyect would need or not some extra domains in the short range.
Wildcard Cert will cover all the subdomains, so if your site grows bigger it should end being the most cost effective solution. |
86,163 | <pre><code>RewriteEngine on
RewriteCond %{SERVER_PORT} ^443$
RewriteRule ^(.*)$ http://%{HTTP_HOST}/$1 [R=301]
# WordPress Defaults
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</code></pre>
<p>This is what .htacces... | [
{
"answer_id": 86167,
"author": "Tom Brossman",
"author_id": 11962,
"author_profile": "https://webmasters.stackexchange.com/users/11962",
"pm_score": 2,
"selected": false,
"text": "<p>To redirect from HTTPS to HTTP, you need a HTTPS certificate for the domain. This is because the SSL/TLS... | 2015/10/20 | [
"https://webmasters.stackexchange.com/questions/86163",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/56651/"
] | ```
RewriteEngine on
RewriteCond %{SERVER_PORT} ^443$
RewriteRule ^(.*)$ http://%{HTTP_HOST}/$1 [R=301]
# WordPress Defaults
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
```
This is what .htaccess look like for my ... | A valid https connection is *required* for HTTPS to HTTP to work for a particular domain.
Currently, since `http://yourtechchick.com` is not available via https:// with its own SSL certificate,
make sure that any .htaccess redirect you are applying is for <https://your-techchick.rhcloud.com>.
[![your_tech_chick_scree... |
86,219 | <p>I saw that using <code><hr /></code> before and after some content sort of lifts the content. Could anybody share what does the tag do and does it come/have antecedent from HTML 4.0 or is a tag done/manufactured by WordPress itself. </p>
<p>Example below - </p>
<pre><code>some text
<hr />
<h3>t... | [
{
"answer_id": 86221,
"author": "czmudzin",
"author_id": 44955,
"author_profile": "https://webmasters.stackexchange.com/users/44955",
"pm_score": 2,
"selected": true,
"text": "<p>the hr tag is used to insert a horizontal line (aka \"horizontal rule\"). Depending on the styling of the hr ... | 2015/10/21 | [
"https://webmasters.stackexchange.com/questions/86219",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/46746/"
] | I saw that using `<hr />` before and after some content sort of lifts the content. Could anybody share what does the tag do and does it come/have antecedent from HTML 4.0 or is a tag done/manufactured by WordPress itself.
Example below -
```
some text
<hr />
<h3>tax which I need to highlight/breakaway <h3>
<hr /... | the hr tag is used to insert a horizontal line (aka "horizontal rule"). Depending on the styling of the hr tag via CSS, it can look many different ways.
Reference: <http://www.w3schools.com/tags/tag_hr.asp> |
86,238 | <p>I have a multilanguage and multidomain site. It runs through a unique CMS installation (Drupal), so I have a single root directory. So if I have a static robots.txt, there I only can show the files for a single domain, as far as I know.</p>
<p>Could I put a line in .htaccess</p>
<pre><code>Redirect 301 /robots.txt... | [
{
"answer_id": 86239,
"author": "MrWhite",
"author_id": 1243,
"author_profile": "https://webmasters.stackexchange.com/users/1243",
"pm_score": 3,
"selected": false,
"text": "<p>Yes, the same way <em>any</em> request can be \"dynamic\".</p>\n\n<p>However, you would not <em>redirect</em> (... | 2015/10/22 | [
"https://webmasters.stackexchange.com/questions/86238",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/56599/"
] | I have a multilanguage and multidomain site. It runs through a unique CMS installation (Drupal), so I have a single root directory. So if I have a static robots.txt, there I only can show the files for a single domain, as far as I know.
Could I put a line in .htaccess
```
Redirect 301 /robots.txt /robots.php
```
(o... | You can make any file dynamic. The best way to do so is not through redirects, but through rewrite rules.
```
RewriteRule ^robots\.txt$ /robots.php [L]
```
That way, you power it with a dynamic script, but the URL doesn't change. Most crawlers (including Googlebot) will follow redirects for *robots.txt*, but some c... |
86,245 | <p>This might be a very stupid question but It bugs me so I have to get it out here:</p>
<p>Lets say on my websites blog page I have a link, I can either go:</p>
<pre><code><a href="index.php">homepage</a>
</code></pre>
<p><strong>My Question</strong></p>
<p>What if I go </p>
<pre><code><a href="htt... | [
{
"answer_id": 86247,
"author": "Evgeniy",
"author_id": 43910,
"author_profile": "https://webmasters.stackexchange.com/users/43910",
"pm_score": 1,
"selected": false,
"text": "<p>For SEO purposes use always absolute linking, like \n<code><a href=\"http://www.example.org>homepage<... | 2015/10/22 | [
"https://webmasters.stackexchange.com/questions/86245",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/54171/"
] | This might be a very stupid question but It bugs me so I have to get it out here:
Lets say on my websites blog page I have a link, I can either go:
```
<a href="index.php">homepage</a>
```
**My Question**
What if I go
```
<a href="http://www.example.org>homepage</a>
```
Here `example.org` is somesite.
What i... | For SEO purposes use always absolute linking, like
`<a href="http://www.example.org>homepage</a>`. And use always title attribute, which should correlate with the link anchor and, in best case, with the title+h1 of linked page.
On this way you ensure, that your site is correctly crawled and the crawler understands th... |
86,380 | <p>I have a domain with different markets/languages on different URL paths, like <code>example.com/fr</code> for France and <code>example.com/se</code> for Sweden. This way we gets all our pages indexed for each language - great! But we also have domain.com without suffix which will lead to the site for England, and we... | [
{
"answer_id": 86409,
"author": "tinkerr",
"author_id": 64499,
"author_profile": "https://webmasters.stackexchange.com/users/64499",
"pm_score": 2,
"selected": false,
"text": "<p>Google recommends using <code><link rel=\"alternate\" hreflang=\"x-default\" href=\"example.com/choosecoun... | 2015/10/27 | [
"https://webmasters.stackexchange.com/questions/86380",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/57188/"
] | I have a domain with different markets/languages on different URL paths, like `example.com/fr` for France and `example.com/se` for Sweden. This way we gets all our pages indexed for each language - great! But we also have domain.com without suffix which will lead to the site for England, and we cannot change this easil... | Google recommends using `<link rel="alternate" hreflang="x-default" href="example.com/choosecountry">` for country-chooser/redirector pages.
So your markup will be:
```
<link rel="alternate" hreflang="en" href="http://example.com">
<link rel="alternate" hreflang="fr" href="http://example.com/fr">
<link rel="alternate... |
86,395 | <p>I've got a problem with Googlebot literally crawling millions of URLs that are the same, because ";jsessionid" keeps getting inserted into the URL (something I cannot change due to the work environment).</p>
<p>An example URL is:</p>
<pre><code>catalog/product-category/product/;jsessionid=Mf87s+Xw2P8ByQYz2CyQjEJh.... | [
{
"answer_id": 86416,
"author": "Evgeniy",
"author_id": 43910,
"author_profile": "https://webmasters.stackexchange.com/users/43910",
"pm_score": 3,
"selected": true,
"text": "<p>you should exclude such urls from crawling, because you spend your whole crawling budget for those useless url... | 2015/10/27 | [
"https://webmasters.stackexchange.com/questions/86395",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/44955/"
] | I've got a problem with Googlebot literally crawling millions of URLs that are the same, because ";jsessionid" keeps getting inserted into the URL (something I cannot change due to the work environment).
An example URL is:
```
catalog/product-category/product/;jsessionid=Mf87s+Xw2P8ByQYz2CyQjEJh.prod-14?f=p%3A100-200... | you should exclude such urls from crawling, because you spend your whole crawling budget for those useless urls. Read [this](https://goo.gl/UnSi8e) topic at Google Product Forum.
set the robots rule like:
```
disallow: /*jsessionid*
``` |
86,397 | <p>If for example I purchased a domain that contains <strong>NHS</strong> (national health system in the UK). For example nhsnews.com that contains news about nhs. Would I be in trouble and do I have to stop the site?</p>
| [
{
"answer_id": 86416,
"author": "Evgeniy",
"author_id": 43910,
"author_profile": "https://webmasters.stackexchange.com/users/43910",
"pm_score": 3,
"selected": true,
"text": "<p>you should exclude such urls from crawling, because you spend your whole crawling budget for those useless url... | 2015/10/27 | [
"https://webmasters.stackexchange.com/questions/86397",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/57234/"
] | If for example I purchased a domain that contains **NHS** (national health system in the UK). For example nhsnews.com that contains news about nhs. Would I be in trouble and do I have to stop the site? | you should exclude such urls from crawling, because you spend your whole crawling budget for those useless urls. Read [this](https://goo.gl/UnSi8e) topic at Google Product Forum.
set the robots rule like:
```
disallow: /*jsessionid*
``` |
86,407 | <p>When I receive a request from a web spammer, such as a <code>GET /wp-login.php</code>, I am thinking of replying with an error (404) and closing the HTTP connection immediately with this header:</p>
<pre><code>Connection: close
</code></pre>
<p>Is that sensible? It seems to me that this way I am not unlikely to sa... | [
{
"answer_id": 86411,
"author": "Mike -- No longer here",
"author_id": 46807,
"author_profile": "https://webmasters.stackexchange.com/users/46807",
"pm_score": 3,
"selected": true,
"text": "<p>I'd recommend:</p>\n\n<pre><code>connection: close\n</code></pre>\n\n<p>on pages that don't lis... | 2015/10/27 | [
"https://webmasters.stackexchange.com/questions/86407",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/9808/"
] | When I receive a request from a web spammer, such as a `GET /wp-login.php`, I am thinking of replying with an error (404) and closing the HTTP connection immediately with this header:
```
Connection: close
```
Is that sensible? It seems to me that this way I am not unlikely to save a connection for a real user... | I'd recommend:
```
connection: close
```
on pages that don't list any other resources that are stored on your server for best performance.
If you can setup a 404 error page without loading any images or special assets, then `connection: close` is good.
If you need resources to completely load the error page, then... |
86,484 | <p>I'm thinking of names and stuff containing accented characters.</p>
<p>E.g.is there a difference between:</p>
<pre><code><a href="http://example.com/thing?name=forêt">link</a>
</code></pre>
<p>and</p>
<pre><code><a href="http://example.com/thing?name=for%C3%AAt">link</a>
</code></pre>
<p... | [
{
"answer_id": 86485,
"author": "genepool99",
"author_id": 43945,
"author_profile": "https://webmasters.stackexchange.com/users/43945",
"pm_score": 1,
"selected": false,
"text": "<p>W3C says URLs can only be sent over the Internet using the ASCII character-set. You will need to convert t... | 2015/10/29 | [
"https://webmasters.stackexchange.com/questions/86484",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/11093/"
] | I'm thinking of names and stuff containing accented characters.
E.g.is there a difference between:
```
<a href="http://example.com/thing?name=forêt">link</a>
```
and
```
<a href="http://example.com/thing?name=for%C3%AAt">link</a>
```
?
Do browsers handle these the same? Or is there some compelling reason to enc... | >
> Do browsers handle these the same?
>
>
>
Yes, all (modern) *browsers* handle these the same. In that all (modern) browsers implicitly URL encode (ie. percent-encode) the URL if you don't explicitly encode this yourself in the HTML source.
In both cases, the browser will implicitly request the percent-encoded ... |
86,493 | <p>I've done a few quick SEO tests of a page and they all suggest "consider adding text to links". The links they were referring to are all social icons, and are displayed using icon fonts. I've read a few different questions similar to this and most of the answers were unclear or didn't help.</p>
<p>Here are some sim... | [
{
"answer_id": 86502,
"author": "Mike -- No longer here",
"author_id": 46807,
"author_profile": "https://webmasters.stackexchange.com/users/46807",
"pm_score": 2,
"selected": false,
"text": "<p>It depends what you want to satisfy.</p>\n\n<p>To satisfy Google, make all text in links visib... | 2015/10/29 | [
"https://webmasters.stackexchange.com/questions/86493",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/53688/"
] | I've done a few quick SEO tests of a page and they all suggest "consider adding text to links". The links they were referring to are all social icons, and are displayed using icon fonts. I've read a few different questions similar to this and most of the answers were unclear or didn't help.
Here are some similar answe... | It depends what you want to satisfy.
To satisfy Google, make all text in links visible, not the same color as background color or they might qualify as hidden links to Google.
To satisfy accessibility, you need at least some kind of text in links. This means in order for users who cannot interpret images (for exampl... |
86,512 | <p>I thought I had a good handle on international DNS, which is only even slightly tricky with a handful of differently-regulated countries' TLD's, but <strong>.中国</strong> is throwing me for a loop.</p>
<p>A Chinese friend asked me to register a Chinese domain name for him and setup a website. Unfortunately the .cn ... | [
{
"answer_id": 100167,
"author": "Chris Rutherfurd",
"author_id": 60702,
"author_profile": "https://webmasters.stackexchange.com/users/60702",
"pm_score": 0,
"selected": false,
"text": "<p>When you buy a domain, configure the DNS settings, and check your browser and see the Invalid Hostn... | 2015/10/30 | [
"https://webmasters.stackexchange.com/questions/86512",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/39306/"
] | I thought I had a good handle on international DNS, which is only even slightly tricky with a handful of differently-regulated countries' TLD's, but **.中国** is throwing me for a loop.
A Chinese friend asked me to register a Chinese domain name for him and setup a website. Unfortunately the .cn version was already take... | While modern browsers do support international characters in domain names, there may be many other tools that don't support them.
International characters in domain names are handled by having an ASCII representation of the domain name available for legacy programs. The ASCII version is in PunyCode. Your Chinese domai... |
86,518 | <p>I am trying to enable dates for selective blog posts i.e. for which information date information is relevant, but want to disable them for evergreen posts.</p>
<p>Blogger doesn't provide an out-of-box option to enable or disable date for a particular post (maybe I am not aware). </p>
<p>How can we do that using Bl... | [
{
"answer_id": 86621,
"author": "MaryC.fromNZ",
"author_id": 18435,
"author_profile": "https://webmasters.stackexchange.com/users/18435",
"pm_score": 0,
"selected": false,
"text": "<p>You could turn them off for all posts, and then manually add a date to the post content (eg on the first... | 2015/10/30 | [
"https://webmasters.stackexchange.com/questions/86518",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/56449/"
] | I am trying to enable dates for selective blog posts i.e. for which information date information is relevant, but want to disable them for evergreen posts.
Blogger doesn't provide an out-of-box option to enable or disable date for a particular post (maybe I am not aware).
How can we do that using Blogger platform? | All you have to do is hide the date using CSS. In the posts that you don't want to show the date on, add the following code in the HTML tab of the post editor:
```
<style>
h2.date-header {
display: none !important;
}
</style>
```
If you don't want to show the date on any posts, then you can add the above to the ... |
86,533 | <p>Quick note: I couldn't make up my mind which section to post this question on - <strong>Webmasters</strong> or <strong>SO</strong> but considering this is more to do with SEO, I decided to post it here so forgive me if I have indeed made this mistake.</p>
<p>Right, so I've been using the Masonry plugin to give some... | [
{
"answer_id": 86545,
"author": "Evgeniy",
"author_id": 43910,
"author_profile": "https://webmasters.stackexchange.com/users/43910",
"pm_score": 1,
"selected": false,
"text": "<p>Google can't crawl if</p>\n\n<ul>\n<li>content loading is triggered by users action like mouse event, or i.e.... | 2015/10/31 | [
"https://webmasters.stackexchange.com/questions/86533",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/45528/"
] | Quick note: I couldn't make up my mind which section to post this question on - **Webmasters** or **SO** but considering this is more to do with SEO, I decided to post it here so forgive me if I have indeed made this mistake.
Right, so I've been using the Masonry plugin to give some of my element layouts some flexibil... | Google can't crawl if
* content loading is triggered by users action like mouse event, or i.e. `onerror` of an absent image,
* javascripts are closed for crawling with `robots.txt`,
* javascript loads content after very long timeout
In other cases, like in your, if Google has a read access to javascripts, and javascr... |
86,559 | <p>I use WordPress and I'm using CloudFront as my content delivery network. When activating CloudFront some elements, practically icons are not loading, what could be the problem?</p>
| [
{
"answer_id": 86568,
"author": "Utku Dalmaz",
"author_id": 57392,
"author_profile": "https://webmasters.stackexchange.com/users/57392",
"pm_score": 1,
"selected": false,
"text": "<p>This code (in .htaccess) resolved the problem</p>\n\n<pre><code><IfModule mod_headers.c>\n Heade... | 2015/11/01 | [
"https://webmasters.stackexchange.com/questions/86559",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/57392/"
] | I use WordPress and I'm using CloudFront as my content delivery network. When activating CloudFront some elements, practically icons are not loading, what could be the problem? | This code (in .htaccess) resolved the problem
```
<IfModule mod_headers.c>
Header set Access-Control-Allow-Origin "*"
</IfModule>
``` |
86,573 | <p>In the UK a company is required by <a href="https://www.gov.uk/running-a-limited-company/signs-stationery-and-promotional-material" rel="nofollow">law to state their registered address on their website</a>. It is common here for a company to use their accountant's address as their registered address. This can be man... | [
{
"answer_id": 86568,
"author": "Utku Dalmaz",
"author_id": 57392,
"author_profile": "https://webmasters.stackexchange.com/users/57392",
"pm_score": 1,
"selected": false,
"text": "<p>This code (in .htaccess) resolved the problem</p>\n\n<pre><code><IfModule mod_headers.c>\n Heade... | 2015/11/01 | [
"https://webmasters.stackexchange.com/questions/86573",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/51928/"
] | In the UK a company is required by [law to state their registered address on their website](https://www.gov.uk/running-a-limited-company/signs-stationery-and-promotional-material). It is common here for a company to use their accountant's address as their registered address. This can be many miles from where the actual... | This code (in .htaccess) resolved the problem
```
<IfModule mod_headers.c>
Header set Access-Control-Allow-Origin "*"
</IfModule>
``` |
86,590 | <p>So I work for a Media company and we use Google Analytics for tracking our journalists and contributors performance (between many other things we track). </p>
<h1>The tracking code</h1>
<p>To do so we use Google Analytics custom dimensions as follows:</p>
<pre><code>ga('set', 'dimension2', 'john.doe');
</code></p... | [
{
"answer_id": 86568,
"author": "Utku Dalmaz",
"author_id": 57392,
"author_profile": "https://webmasters.stackexchange.com/users/57392",
"pm_score": 1,
"selected": false,
"text": "<p>This code (in .htaccess) resolved the problem</p>\n\n<pre><code><IfModule mod_headers.c>\n Heade... | 2015/11/02 | [
"https://webmasters.stackexchange.com/questions/86590",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/57421/"
] | So I work for a Media company and we use Google Analytics for tracking our journalists and contributors performance (between many other things we track).
The tracking code
=================
To do so we use Google Analytics custom dimensions as follows:
```
ga('set', 'dimension2', 'john.doe');
```
* `dimension2` b... | This code (in .htaccess) resolved the problem
```
<IfModule mod_headers.c>
Header set Access-Control-Allow-Origin "*"
</IfModule>
``` |
86,606 | <p>So I have a theme that has my Logo as an H1. The logo itself is an SVG file. I am curious if this is bad practice for SEO purposes. My audit shows 2 H1 tags on my pages due to this and I am curious if I should take out the H1 tag from my logo in my header now. I feel like it wouldn't make too much sense to leave it ... | [
{
"answer_id": 86605,
"author": "Chris Searles",
"author_id": 57053,
"author_profile": "https://webmasters.stackexchange.com/users/57053",
"pm_score": 1,
"selected": false,
"text": "<p>To answer your question, it's absolutely <em>safe</em> to use any valid domain extension you wish. Any ... | 2015/11/02 | [
"https://webmasters.stackexchange.com/questions/86606",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/57434/"
] | So I have a theme that has my Logo as an H1. The logo itself is an SVG file. I am curious if this is bad practice for SEO purposes. My audit shows 2 H1 tags on my pages due to this and I am curious if I should take out the H1 tag from my logo in my header now. I feel like it wouldn't make too much sense to leave it the... | I don't know if my answer comes too late but stick with `.email`. Before Google registered `abc.xyz`, most `.xyz` registrations were either imposed to clients of some big registrars - given for free - or sold for USD 1 to Chinese customers. The agenda was clear. Make `.xyz` seem like the no. 1 new TLD by inflating the ... |
86,614 | <p>So I finally ran screaming frog SEO spider on a number of my pages, and what I'm left with now are some duplicate titles on some of my mobile pages containing this HTML:</p>
<pre><code><link rel="canonical" href="http://example.com/path/to/equivalentpage.htm">
</code></pre>
<p>On the respective pages for de... | [
{
"answer_id": 86624,
"author": "Evgeniy",
"author_id": 43910,
"author_profile": "https://webmasters.stackexchange.com/users/43910",
"pm_score": 1,
"selected": false,
"text": "<p>H1 on mobile pages should better exactly same as titles and h1 on their desktop counterparts.</p>\n\n<p>In fa... | 2015/11/03 | [
"https://webmasters.stackexchange.com/questions/86614",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/46807/"
] | So I finally ran screaming frog SEO spider on a number of my pages, and what I'm left with now are some duplicate titles on some of my mobile pages containing this HTML:
```
<link rel="canonical" href="http://example.com/path/to/equivalentpage.htm">
```
On the respective pages for desktop users, I added a link tag ... | H1 on mobile pages should better exactly same as titles and h1 on their desktop counterparts.
In fact mobile pages are marked up as canonical to send signal to Google, they have pretty same content as desktop pages, but for another devices.
Indeed, the content on mobile pages COULD be slightly different, as on deskto... |
86,639 | <p>I have a website where I currently force <code>example.com</code> visits to <code>www.example.com</code>, and it has an SSL certificate, so I also force HTTP to HTTPS. My SSL certificate covers <code>example.com</code> and <code>www.example.com</code>.</p>
<p>I want to set up a static domain to serve images for my ... | [
{
"answer_id": 86642,
"author": "Froggiz",
"author_id": 56476,
"author_profile": "https://webmasters.stackexchange.com/users/56476",
"pm_score": 1,
"selected": false,
"text": "<p><em>First of all, you should start by redirecting all website traffic by using a redirect statement which is ... | 2015/11/03 | [
"https://webmasters.stackexchange.com/questions/86639",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/45750/"
] | I have a website where I currently force `example.com` visits to `www.example.com`, and it has an SSL certificate, so I also force HTTP to HTTPS. My SSL certificate covers `example.com` and `www.example.com`.
I want to set up a static domain to serve images for my website, and I don't want to go through the trouble of... | **Method 1**
*With `RewriteCond` you can add this (after your existing rules):*
```
RewriteCond %{HTTP_HOST} ^www\.example [NC]
RewriteCond %{HTTP_HOST} \.(jpg|jpeg|png|gif|ico|icon)$ [NC]
RewriteRule .* https://example.com%{REQUEST_URI} [L,R=301]
```
If the request is done on `www.example.com`, and the file reques... |
86,664 | <p>It is my understanding that the basic HTML5 layout is:</p>
<pre><code><body>
<header>
</header>
<nav>
</nav>
<section id="possible-image-slider">
</section>
<section>
<article>
</article>
<aside>
</aside>
&... | [
{
"answer_id": 86753,
"author": "Chaoley",
"author_id": 30808,
"author_profile": "https://webmasters.stackexchange.com/users/30808",
"pm_score": 1,
"selected": false,
"text": "<p>I don't see how they would conflict, and as you say there are different recommended image sizes so use them b... | 2015/11/04 | [
"https://webmasters.stackexchange.com/questions/86664",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/57470/"
] | It is my understanding that the basic HTML5 layout is:
```
<body>
<header>
</header>
<nav>
</nav>
<section id="possible-image-slider">
</section>
<section>
<article>
</article>
<aside>
</aside>
</section>
<footer>
</footer>
</body>
```
I also know from [this](http://html5docto... | Short answer: No they do not. Yes you should have both.
Order does not matter.
Twitter only detects the twitter card tags, and facebook only detects OG data.
Defining slightly different images, for twitter and facebook image guidelines is a good practice, though we just provide the same image to facebook and twitter... |
86,675 | <p>I have been reading <code>Webmasters SE</code> and many other blogs on this topic but I could not understand how do we truly evaluate a bad link that we must disavow in GWT. Everybody seem to have a different opinion on this.</p>
<h2>A little background</h2>
<p>I am a WordPress developer and 3 years ago I gave awa... | [
{
"answer_id": 86680,
"author": "Matthew Edgar",
"author_id": 53408,
"author_profile": "https://webmasters.stackexchange.com/users/53408",
"pm_score": 2,
"selected": false,
"text": "<p>I'd tend to agree with your diagnosis that the decrease in traffic could be related to the Penguin-upda... | 2015/11/04 | [
"https://webmasters.stackexchange.com/questions/86675",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/57148/"
] | I have been reading `Webmasters SE` and many other blogs on this topic but I could not understand how do we truly evaluate a bad link that we must disavow in GWT. Everybody seem to have a different opinion on this.
A little background
-------------------
I am a WordPress developer and 3 years ago I gave away a WordPr... | Years ago, a template developer called me on a Sunday evening a bit in a panic. He had links in his templates and it had become a significant problem. I was using one of his templates and that is the reason why he was calling.
He explained that he worked full time and only did the template business on the side to hel... |
86,693 | <p>I have a Drupal 7 site served exclusively using SSL with the "bare" domain (no www).</p>
<p>But, I see that in Google Webmaster Tools, I can add the following:</p>
<ul>
<li><code>http://example.com</code></li>
<li><code>http://www.example.com</code></li>
<li><code>https://example.com</code></li>
<li><code>https://... | [
{
"answer_id": 86701,
"author": "Barry Pollard",
"author_id": 48846,
"author_profile": "https://webmasters.stackexchange.com/users/48846",
"pm_score": 2,
"selected": false,
"text": "<p>Google Search Console (formerly known as Google Webmaster Tools) does not have a preferred protocol set... | 2015/11/05 | [
"https://webmasters.stackexchange.com/questions/86693",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/15009/"
] | I have a Drupal 7 site served exclusively using SSL with the "bare" domain (no www).
But, I see that in Google Webmaster Tools, I can add the following:
* `http://example.com`
* `http://www.example.com`
* `https://example.com`
* `https://www.example.com`
I have added all of these for my site, accessed **Site setting... | >
> [SOURCE](https://webmasters.stackexchange.com/questions/68435/moving-from-http-to-https-in-google-search-console/68436#68436)
>
>
> *Add all variations of your site to WMT*
>
>
> While the site address move tool may not treat protocols, url changes
> and sub domains as new sites, the rest of Webmaster Tools do... |
86,721 | <p>I have a website that displays texts with unique, copyrighted fonts. I use a CSS file with "font-face" elements (see the example below) and I store the font files in a folder called "type". I would like to deny direct access to these files, so visitors could not copy them. I tried to add an <em>.htaccess</em> file, ... | [
{
"answer_id": 86723,
"author": "Barry Pollard",
"author_id": 48846,
"author_profile": "https://webmasters.stackexchange.com/users/48846",
"pm_score": 3,
"selected": true,
"text": "<p>Well this is already done as best it can by default.</p>\n\n<p>When you try to access fonts from another... | 2015/11/05 | [
"https://webmasters.stackexchange.com/questions/86721",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/-1/"
] | I have a website that displays texts with unique, copyrighted fonts. I use a CSS file with "font-face" elements (see the example below) and I store the font files in a folder called "type". I would like to deny direct access to these files, so visitors could not copy them. I tried to add an *.htaccess* file, but it bro... | Well this is already done as best it can by default.
When you try to access fonts from another domain your browser will block this s a cross origin request (unless you explicitly add a "Access-Control-Allow-Origin" header in your htaccess file). Try it from a development server and you'll see what I mean as you'll get... |
86,722 | <p>Which of these alternatives would be the less negative to Google search engine?</p>
<pre class="lang-html prettyprint-override"><code><h1>
<a href="#" title="Company Name">
<img src="img/logo.png" alt="Logo" title="Company name" />
</a>
</h1>
</code></pre>
<p>or </p>
... | [
{
"answer_id": 86724,
"author": "Simon Hayter",
"author_id": 20604,
"author_profile": "https://webmasters.stackexchange.com/users/20604",
"pm_score": 2,
"selected": false,
"text": "<p>This has been asked several times on varous stack's and in various forms, there is no right or wrong ans... | 2015/11/05 | [
"https://webmasters.stackexchange.com/questions/86722",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/57460/"
] | Which of these alternatives would be the less negative to Google search engine?
```html
<h1>
<a href="#" title="Company Name">
<img src="img/logo.png" alt="Logo" title="Company name" />
</a>
</h1>
```
or
```html
<h1>
<a href="#" title="Company Name">
Company Name
</a>
</h1>
```
ac... | The logo is content, not presentation. So it should be included in the HTML, not in the CSS. Therefore using the `img` element is the appropriate choice.
However, you should not use the `alt` value "Logo" for it; use the company name (i.e., what the logo stands for) instead. And then you could and should omit the `tit... |
86,728 | <p>I maintain a Rails app. Every page except login and "forgot password" requires user authentication. Yesterday I noticed entries like this one in the access logs:</p>
<pre><code>54.209.60.63 - - [03/Nov/2015:19:09:53 +0000] "GET /compendia HTTP/1.1" 302 120 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_1) AppleW... | [
{
"answer_id": 96117,
"author": "Chris Rutherfurd",
"author_id": 60702,
"author_profile": "https://webmasters.stackexchange.com/users/60702",
"pm_score": 0,
"selected": false,
"text": "<p>There is nothing to be concerned about with this as it commonly shows up with secured applications o... | 2015/11/05 | [
"https://webmasters.stackexchange.com/questions/86728",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/57533/"
] | I maintain a Rails app. Every page except login and "forgot password" requires user authentication. Yesterday I noticed entries like this one in the access logs:
```
54.209.60.63 - - [03/Nov/2015:19:09:53 +0000] "GET /compendia HTTP/1.1" 302 120 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_1) AppleWebKit/600.1.25... | Are you displaying ads on your site from Amobee (formerly known as Kontera)?
The PTR record for this IP is `nat.aws.kontera.com`, suggesting that it is a crawler looking for your page's content in order to determine what ads may be relevant to that URL.
If you've loaded the Kontera JavaScript on login-protected pages... |
86,759 | <p>I have a site with products, which can be searched using a convoluted search form, with quite a few input fields. I send the data by POST, to the same page, so I can list all products in the URL: <code>/products/</code> and the search stays in the same page <code>/products/</code>. For SEO purposes, indexing and Goo... | [
{
"answer_id": 86735,
"author": "John Conde",
"author_id": 1253,
"author_profile": "https://webmasters.stackexchange.com/users/1253",
"pm_score": 1,
"selected": false,
"text": "<p>No, because you do not have access to Google's cookies. You only have access to the cookies your website set... | 2015/11/06 | [
"https://webmasters.stackexchange.com/questions/86759",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/56599/"
] | I have a site with products, which can be searched using a convoluted search form, with quite a few input fields. I send the data by POST, to the same page, so I can list all products in the URL: `/products/` and the search stays in the same page `/products/`. For SEO purposes, indexing and Google Analytics review, sho... | To answer your question, you don't need to hack into Google's cookies to get that information, but can find it out yourself in your own code.
**IMPORTANT NOTE:** You are talking about automatically serving content to users based on their language settings, which can actually lead to a lot of SEO problems if done badly... |
86,814 | <p>I'm really a newbie in web-technologies, so this question may be silly.
I have a php script that accesses a database, therefore it stores a database password (tell me a better way to store this password).
Client-side JS sends Ajax request to this script.</p>
<p>What I want to archive: set permissions for the php sc... | [
{
"answer_id": 86817,
"author": "Anaksunaman",
"author_id": 57008,
"author_profile": "https://webmasters.stackexchange.com/users/57008",
"pm_score": 0,
"selected": false,
"text": "<p>Perhaps I am misunderstanding but this sounds like a server-side script?</p>\n\n<p>If this is the case th... | 2015/11/08 | [
"https://webmasters.stackexchange.com/questions/86814",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/57603/"
] | I'm really a newbie in web-technologies, so this question may be silly.
I have a php script that accesses a database, therefore it stores a database password (tell me a better way to store this password).
Client-side JS sends Ajax request to this script.
What I want to archive: set permissions for the php script (prob... | I'm partly confused by your question, so I'll answer it the best I can.
To set permissions on any file on a server (including php files) there's a couple of ways.
1. If you have a web file manager interface, you can access that and set php file permissions through that.
2. If you have direct FTP access to the server,... |
86,845 | <p>Recently one of our clients had their news listings taken off Google listings for many crawl errors, our attempts to get them back online by fixing most errors pointed in our dashboard were successful, however we have now received a strange looking error </p>
<blockquote>
<p>The article body that we extracted fro... | [
{
"answer_id": 86848,
"author": "Evgeniy",
"author_id": 43910,
"author_profile": "https://webmasters.stackexchange.com/users/43910",
"pm_score": 1,
"selected": false,
"text": "<p>If you have navigation and/or footer with many links, it could be the cause of error alert too. Try to markup... | 2015/11/09 | [
"https://webmasters.stackexchange.com/questions/86845",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/46124/"
] | Recently one of our clients had their news listings taken off Google listings for many crawl errors, our attempts to get them back online by fixing most errors pointed in our dashboard were successful, however we have now received a strange looking error
>
> The article body that we extracted from the HTML page appe... | I'm very confused as to the structure of your site, based on Inspect Element. It appears that different sections of your site, such as the sidebars, footers, comments, and other stories sections are strangely mixed together - this may be what is confusing Google as well.
(The following is based on the link you posted ... |
86,853 | <p>Within the GWT console under URL Parameters there are two settings that I'm not clear on. What is the difference between setting a URL parameter to:</p>
<ol>
<li><code>No: Doesn't affect page content</code></li>
</ol>
<p>and</p>
<ol start="2">
<li><code>Yes:Changes, reorders...</code> and then picking <code>No Ur... | [
{
"answer_id": 86859,
"author": "MrWhite",
"author_id": 1243,
"author_profile": "https://webmasters.stackexchange.com/users/1243",
"pm_score": 0,
"selected": false,
"text": "<blockquote>\n <ol>\n <li><code>No: Doesn't affect page content</code></li>\n </ol>\n</blockquote>\n\n<p>Google... | 2015/11/09 | [
"https://webmasters.stackexchange.com/questions/86853",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/57641/"
] | Within the GWT console under URL Parameters there are two settings that I'm not clear on. What is the difference between setting a URL parameter to:
1. `No: Doesn't affect page content`
and
2. `Yes:Changes, reorders...` and then picking `No Urls` under which URLs google bot should crawl?
I am trying to remove all U... | >
> to remove all URLs with certain parameters from the index and not sure which setting to choose.
>
>
>
Search console doesn't allow to remove parametrized URLs from index. It gives only some possibilities to degrade their importance on crawling.
Setting urls with certain parameters to `noindex` could be done b... |
86,856 | <p>Is there any possibility using the Google Analytics API to check if the session is logged in or not? I have a problem with destination page (it is not set), and I want to resend the event when the session is not logged in.</p>
| [
{
"answer_id": 86970,
"author": "mario ruiz",
"author_id": 53347,
"author_profile": "https://webmasters.stackexchange.com/users/53347",
"pm_score": 1,
"selected": false,
"text": "<p>You can force to start a new session in case You need it using the <strong>sessionControl</strong>. Send a... | 2015/11/09 | [
"https://webmasters.stackexchange.com/questions/86856",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/36296/"
] | Is there any possibility using the Google Analytics API to check if the session is logged in or not? I have a problem with destination page (it is not set), and I want to resend the event when the session is not logged in. | You can use something like this
1) Set up onBeforeAction hooks to login the user automatically (which asks for credentials if user is not logged in to external service)
```
var loginWithGoogle = function() {
if (bla.isClient) {
Session.set('loginError', undefined);
bla.loginWithGoogle({
loginStyle ... |
86,857 | <p>I have a setup tag for a Tracking service called Clicky that loads asynchronously on every page. I need to access "clicky" variable from another tag, which is only accessible after setup async script finishes loading.</p>
<p>For that reason, my tag script looks hacky. Is there any other way to check if an async scr... | [
{
"answer_id": 86858,
"author": "jfriend00",
"author_id": 11484,
"author_profile": "https://webmasters.stackexchange.com/users/11484",
"pm_score": 1,
"selected": false,
"text": "<p>You can use the <code>onload</code> property of the script tag to see when the script is loaded:</p>\n\n<pr... | 2015/11/09 | [
"https://webmasters.stackexchange.com/questions/86857",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/40386/"
] | I have a setup tag for a Tracking service called Clicky that loads asynchronously on every page. I need to access "clicky" variable from another tag, which is only accessible after setup async script finishes loading.
For that reason, my tag script looks hacky. Is there any other way to check if an async script is loa... | You can use the `onload` property of the script tag to see when the script is loaded:
```
<script type="text/javascript">
var clicky_site_ids = clicky_site_ids || [];
clicky_site_ids.push(<id-number>);
(function() {
var s = document.createElement('script');
s.type = 'text/javascript';
s.async = true;
s.onload ... |
86,948 | <p>I've been using a Google Adwords tracking template to get the original search string that brought the visitor to my website.</p>
<pre><code>https://example.com/landing?target={lpurl}&keyword={keyword}
</code></pre>
<p>The problem is, <code>{keyword}</code> only contains the keyword <strong>from my account</str... | [
{
"answer_id": 87000,
"author": "Stephen Ostermiller",
"author_id": 14543,
"author_profile": "https://webmasters.stackexchange.com/users/14543",
"pm_score": 3,
"selected": true,
"text": "<p>The functionality you are looking for is not available. Google documents all the available value... | 2015/11/12 | [
"https://webmasters.stackexchange.com/questions/86948",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/18342/"
] | I've been using a Google Adwords tracking template to get the original search string that brought the visitor to my website.
```
https://example.com/landing?target={lpurl}&keyword={keyword}
```
The problem is, `{keyword}` only contains the keyword **from my account** that triggered the ad. But because my keywords ar... | The functionality you are looking for is not available. Google documents all the available value track parameters [here](https://support.google.com/adwords/answer/2375447#params). From that document, `{keyword}` is as you describe:
>
> For the Search Network: the keyword from your account that is matched to the searc... |
86,956 | <p>I need to redirect my WordPress blog from <code>https://www.example.com/blog</code> to <code>http://example.com/blog</code> using the .htaccess file. This is what I have so far:</p>
<pre><code><IfModule mod_rewrite.c>
Options +FollowSymlinks -MultiViews
RewriteEngine On
RewriteBase /
RewriteE... | [
{
"answer_id": 87000,
"author": "Stephen Ostermiller",
"author_id": 14543,
"author_profile": "https://webmasters.stackexchange.com/users/14543",
"pm_score": 3,
"selected": true,
"text": "<p>The functionality you are looking for is not available. Google documents all the available value... | 2015/11/12 | [
"https://webmasters.stackexchange.com/questions/86956",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/33912/"
] | I need to redirect my WordPress blog from `https://www.example.com/blog` to `http://example.com/blog` using the .htaccess file. This is what I have so far:
```
<IfModule mod_rewrite.c>
Options +FollowSymlinks -MultiViews
RewriteEngine On
RewriteBase /
RewriteEngine On
RewriteCond %{HTTPS} on
R... | The functionality you are looking for is not available. Google documents all the available value track parameters [here](https://support.google.com/adwords/answer/2375447#params). From that document, `{keyword}` is as you describe:
>
> For the Search Network: the keyword from your account that is matched to the searc... |
86,974 | <p>The meta tag <code><link rel="alternate"></code> should be added for each language and subdomain with the same content right? But do I need to add 2 versions of each, namely <code>http://</code> and <code>https://</code> ?</p>
<p>Like this:</p>
<pre><code><link rel="alternate" href="http://www.example.com... | [
{
"answer_id": 86982,
"author": "Prem Nath Vishwakarma",
"author_id": 37362,
"author_profile": "https://webmasters.stackexchange.com/users/37362",
"pm_score": -1,
"selected": false,
"text": "<p>From the <a href=\"https://support.google.com/webmasters/answer/139066?hl=en\" rel=\"nofollow ... | 2015/11/13 | [
"https://webmasters.stackexchange.com/questions/86974",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/56597/"
] | The meta tag `<link rel="alternate">` should be added for each language and subdomain with the same content right? But do I need to add 2 versions of each, namely `http://` and `https://` ?
Like this:
```
<link rel="alternate" href="http://www.example.com/en/" hreflang="en" />
<link rel="alternate" href="http://www.e... | You can definitely use the alternate, nothing stopping you from using the first example, you won't be penalized directly unless you try to canonical alternate a http area that defaults to SSL normally, causing obvious errors. I have nothing to cite this besides this is what `rel="alternate"` is for; whether or not serv... |
87,018 | <p>My server has run out of memory a few times in the past two days, because of which the site crashed. I checked AWstats and found that hundreds of unresolved IP addresss have been logged, and the number of hits from them seems unreasonable:</p>
<p><a href="https://i.stack.imgur.com/2PSwf.png" rel="nofollow noreferre... | [
{
"answer_id": 87019,
"author": "Simon Hayter",
"author_id": 20604,
"author_profile": "https://webmasters.stackexchange.com/users/20604",
"pm_score": 3,
"selected": false,
"text": "<p>BOTS, CRAWLERS and SCRAPERS use IP addresses in blocks, its rare to see one that will use the same IP ad... | 2015/11/15 | [
"https://webmasters.stackexchange.com/questions/87018",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/10053/"
] | My server has run out of memory a few times in the past two days, because of which the site crashed. I checked AWstats and found that hundreds of unresolved IP addresss have been logged, and the number of hits from them seems unreasonable:
[](https://... | BOTS, CRAWLERS and SCRAPERS use IP addresses in blocks, its rare to see one that will use the same IP address over and over. IP blocks are often sold, brought and then sold again! some of these blocks will resolve, some will not depending on the setup they use, because of this banning IP from a resolve is useless, beca... |
87,021 | <p>Apache does not force HTTPS in a subfolder of a folder, but it works in the first level subfolders.</p>
<p>Here are all the HTAccess snippets I have tried:</p>
<pre><code>RewriteCond %{HTTP:CF-Visitor} '"scheme":"http"'
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [R=302,L]
RewriteCond %{HTTP_HOST} !^www\.
Rew... | [
{
"answer_id": 87022,
"author": "MrWhite",
"author_id": 1243,
"author_profile": "https://webmasters.stackexchange.com/users/1243",
"pm_score": 2,
"selected": false,
"text": "<blockquote>\n <p>in one of the subdirectories in one of the subfolders directly under the site root, in the HTAc... | 2015/11/15 | [
"https://webmasters.stackexchange.com/questions/87021",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/57210/"
] | Apache does not force HTTPS in a subfolder of a folder, but it works in the first level subfolders.
Here are all the HTAccess snippets I have tried:
```
RewriteCond %{HTTP:CF-Visitor} '"scheme":"http"'
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [R=302,L]
RewriteCond %{HTTP_HOST} !^www\.
RewriteRule ^(.*)$ https... | You may want to consider not using .htaccess. This will help with performance and avoid that other .htaccess files overwrite your conf. In your main apache .conf file you can add:
```
<Directory "YOUR WEB DIRECTORY">
AllowOverride None
.....
RewriteCond %{HTTPS} off
RewriteCond %{HTTP:X-Forwarded-Proto} !h... |
87,025 | <p>I currently have a shared plan on asmallorange because I wanted to give them a try. I am trying to establish some security when it comes to file transfers.</p>
<p>Through cPanel, I created an SSH key. The name of it is <code>id_rsa</code> and it is currently "not authorized".</p>
<p>I then went into WinSCP. I set ... | [
{
"answer_id": 87022,
"author": "MrWhite",
"author_id": 1243,
"author_profile": "https://webmasters.stackexchange.com/users/1243",
"pm_score": 2,
"selected": false,
"text": "<blockquote>\n <p>in one of the subdirectories in one of the subfolders directly under the site root, in the HTAc... | 2015/11/15 | [
"https://webmasters.stackexchange.com/questions/87025",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/57804/"
] | I currently have a shared plan on asmallorange because I wanted to give them a try. I am trying to establish some security when it comes to file transfers.
Through cPanel, I created an SSH key. The name of it is `id_rsa` and it is currently "not authorized".
I then went into WinSCP. I set up an SFTP connection using ... | You may want to consider not using .htaccess. This will help with performance and avoid that other .htaccess files overwrite your conf. In your main apache .conf file you can add:
```
<Directory "YOUR WEB DIRECTORY">
AllowOverride None
.....
RewriteCond %{HTTPS} off
RewriteCond %{HTTP:X-Forwarded-Proto} !h... |
87,068 | <p>I repeatedly get an warning/error message from Google as follows:</p>
<blockquote>
<p>Googlebot can't access your site</p>
</blockquote>
<p>I have checked, edited, removed, replaced the robots.txt file on the site all to no avail.</p>
<p>Here is the content of the file:</p>
<pre><code>User-agent: *
Allow: /
</... | [
{
"answer_id": 87069,
"author": "Simon Hayter",
"author_id": 20604,
"author_profile": "https://webmasters.stackexchange.com/users/20604",
"pm_score": 2,
"selected": false,
"text": "<p><em>Its hard to say what the possible reason is but heres a drill down what can cause this issue:</em></... | 2015/11/16 | [
"https://webmasters.stackexchange.com/questions/87068",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/5432/"
] | I repeatedly get an warning/error message from Google as follows:
>
> Googlebot can't access your site
>
>
>
I have checked, edited, removed, replaced the robots.txt file on the site all to no avail.
Here is the content of the file:
```
User-agent: *
Allow: /
```
Am I doing something wrong here? What is the s... | *Its hard to say what the possible reason is but heres a drill down what can cause this issue:*
* Robots.txt blocking access to GoogleBot.
* Use of [noindex and nofollow](http://www.robotstxt.org/meta.html) can cause issues.
* Server is caching an old version of `robots.txt` check your `.htaccess` for [TXT MIME](https... |
87,078 | <p>My team and I are implementing the <a href="https://github.com/coolwanglu/pdf2htmlEX" rel="nofollow">pdf2htmlEX conversion</a> to convert and display over 200k pdf documents (available in our database) on our website. </p>
<p>The HTML produced by pdf2htmlEX will be placed "in page", crawlable by Search Engines for ... | [
{
"answer_id": 87069,
"author": "Simon Hayter",
"author_id": 20604,
"author_profile": "https://webmasters.stackexchange.com/users/20604",
"pm_score": 2,
"selected": false,
"text": "<p><em>Its hard to say what the possible reason is but heres a drill down what can cause this issue:</em></... | 2015/11/17 | [
"https://webmasters.stackexchange.com/questions/87078",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/57858/"
] | My team and I are implementing the [pdf2htmlEX conversion](https://github.com/coolwanglu/pdf2htmlEX) to convert and display over 200k pdf documents (available in our database) on our website.
The HTML produced by pdf2htmlEX will be placed "in page", crawlable by Search Engines for up to 3 pages of each document. Toda... | *Its hard to say what the possible reason is but heres a drill down what can cause this issue:*
* Robots.txt blocking access to GoogleBot.
* Use of [noindex and nofollow](http://www.robotstxt.org/meta.html) can cause issues.
* Server is caching an old version of `robots.txt` check your `.htaccess` for [TXT MIME](https... |
87,103 | <p>Using <code>robots.txt</code> I am attempting to stop all crawling of search URLs</p>
<pre><code>Disallow: /rest_of_url/search&tour*
</code></pre>
<p>Above is what I am using. Our URL looks like the following for all search results. However, everything after <code>search&tour</code> can be different, for e... | [
{
"answer_id": 87105,
"author": "Josip Ivic",
"author_id": 56095,
"author_profile": "https://webmasters.stackexchange.com/users/56095",
"pm_score": 1,
"selected": false,
"text": "<p>Disallow sets the files or folders that are not allowed to be crawled.</p>\n\n<p>In addition, you can prev... | 2015/11/18 | [
"https://webmasters.stackexchange.com/questions/87103",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/57879/"
] | Using `robots.txt` I am attempting to stop all crawling of search URLs
```
Disallow: /rest_of_url/search&tour*
```
Above is what I am using. Our URL looks like the following for all search results. However, everything after `search&tour` can be different, for example:
```
https://www.example.com.au/rest_of_url/sear... | >
> Will the Disallow code above stop robots from crawling all of my search result pages?
>
>
>
Yes, it will stop the (good) bots that obey the robots.txt "standard".
However, you don't need the trailing `*`. `robots.txt` is *prefix matching*, so the "wildcard" `*` at the end can simply be omitted. (Wildcard type... |
87,119 | <p>I would like to add <code>SiteNavigationElement</code> to my <code>nav</code>. The question is, do I add <code>url</code> and <code>name</code> properties to primary menu items only or do I also add them to the child <code>nav</code> items as well?</p>
<pre class="lang-html prettyprint-override"><code> <n... | [
{
"answer_id": 87121,
"author": "Simon Hayter",
"author_id": 20604,
"author_profile": "https://webmasters.stackexchange.com/users/20604",
"pm_score": 1,
"selected": false,
"text": "<p>Parents should always have siblings, but you can use as few as you like, or as many as you like. Since ... | 2015/11/18 | [
"https://webmasters.stackexchange.com/questions/87119",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/38954/"
] | I would like to add `SiteNavigationElement` to my `nav`. The question is, do I add `url` and `name` properties to primary menu items only or do I also add them to the child `nav` items as well?
```html
<nav itemscope="itemscope" itemtype="http://schema.org/SiteNavigationElement">
<ul>
... | Parents should always have siblings, but you can use as few as you like, or as many as you like. Since your using [SiteNavigationElement](https://schema.org/SiteNavigationElement), you can use any of the childs from:
* Properties from CreativeWork
* Properties from Thing
Using with or without `itemprop="name"` are b... |
87,122 | <p>Apache2, Linux, php5</p>
<p>I have added this line to my .htaccess file</p>
<pre><code>AddType application/x-httpd-php5 .htm .html
</code></pre>
<p>running <code>apace2ctl -m</code>, shows this module loaded</p>
<blockquote>
<p>A php5_module (shared)</p>
</blockquote>
<p>I have a simple HTML page with one lin... | [
{
"answer_id": 87124,
"author": "MrWhite",
"author_id": 1243,
"author_profile": "https://webmasters.stackexchange.com/users/1243",
"pm_score": 2,
"selected": false,
"text": "<blockquote>\n <p><code><!--?php echo \"It works!\"; ?--></code></p>\n</blockquote>\n\n<p>This is what you ... | 2015/11/18 | [
"https://webmasters.stackexchange.com/questions/87122",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/57898/"
] | Apache2, Linux, php5
I have added this line to my .htaccess file
```
AddType application/x-httpd-php5 .htm .html
```
running `apace2ctl -m`, shows this module loaded
>
> A php5\_module (shared)
>
>
>
I have a simple HTML page with one line of PHP code inside an `<h2>` tag
```
<?php echo "It works!"; ?>
```... | >
> `<!--?php echo "It works!"; ?-->`
>
>
>
This is what you see when you analyse the element using the browsers *Object Inspector* ie. the *interpreted source*. This is not the HTML source as sent from the server (ie. "view source").
Basically, your HTML pages are not being processed by PHP. You probably need to... |
87,128 | <p>I read so many tutorials about canonical and alternate x-default, but I am still not a 100 per cent sure if this is correct:</p>
<p>I have a multi language page that is structured like this:</p>
<pre><code>https://www.example.com/lang
</code></pre>
<p>etc.</p>
<p>User visiting <code>https://www.example.com</code... | [
{
"answer_id": 87134,
"author": "Stephan",
"author_id": 30563,
"author_profile": "https://webmasters.stackexchange.com/users/30563",
"pm_score": 4,
"selected": true,
"text": "<p>It is a confusing state of affairs, but here are some pointers:</p>\n\n<p>Don't use the canonical tag in the w... | 2015/11/18 | [
"https://webmasters.stackexchange.com/questions/87128",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/57903/"
] | I read so many tutorials about canonical and alternate x-default, but I am still not a 100 per cent sure if this is correct:
I have a multi language page that is structured like this:
```
https://www.example.com/lang
```
etc.
User visiting `https://www.example.com` will be 301-redirected to the appropriate languag... | It is a confusing state of affairs, but here are some pointers:
Don't use the canonical tag in the way you were thinking. Content translated into several languages is not duplicate content. So you don't want to be pointing `/fr/ --canonical--> /en/` at all. Use `rel="alternate" hreflang="en"` instead. Use canonical *w... |
87,187 | <p>My company is going to do a press release next month. At that exact moment in time, we need a new domain to go to this site at the time of the press release at 3 PM.</p>
<p>Since the domain name already exists, my plan was to have an index.html and index.php in the root directory of the web server. index.html would... | [
{
"answer_id": 87191,
"author": "Marcus",
"author_id": 57953,
"author_profile": "https://webmasters.stackexchange.com/users/57953",
"pm_score": 1,
"selected": false,
"text": "<p>It's really risky solution. Some browser (or ISPs) can cache index.html. After refreshing page, some users can... | 2015/11/20 | [
"https://webmasters.stackexchange.com/questions/87187",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/45835/"
] | My company is going to do a press release next month. At that exact moment in time, we need a new domain to go to this site at the time of the press release at 3 PM.
Since the domain name already exists, my plan was to have an index.html and index.php in the root directory of the web server. index.html would redirect ... | You could just include a rule in your index.php to check the current time against the time you want to launch. So if you wanted to launch on 2015-12-01 at 15:00UTC, something like this should work:
```
<?php if(time() < '1448982000'){
header("Location: https://www.example.com/",TRUE,301);
exit;
}?>
```
Drop that... |
87,199 | <p>How do you handle a product url when a brand has the same product type in different shapes?</p>
<p>Let me provide you with an example. I have Brand A that has sling bags. There is a sling bag, and there is a long sling bag. The shape and design of these 2 bags are totally different from each other.</p>
<p>Normally... | [
{
"answer_id": 87211,
"author": "CamSpy",
"author_id": 33887,
"author_profile": "https://webmasters.stackexchange.com/users/33887",
"pm_score": 1,
"selected": false,
"text": "<p>It depends.</p>\n\n<p>If you're having different bags (e.g. photos), but you keep the same textual content, th... | 2015/11/20 | [
"https://webmasters.stackexchange.com/questions/87199",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/14539/"
] | How do you handle a product url when a brand has the same product type in different shapes?
Let me provide you with an example. I have Brand A that has sling bags. There is a sling bag, and there is a long sling bag. The shape and design of these 2 bags are totally different from each other.
Normally I would have a l... | It depends.
If you're having different bags (e.g. photos), but you keep the same textual content, then it may seem as the pages are duplicates (because of textual content, that is one of the strongest signals to Google).
So, if the pages have the same (or nearly the same) text (page titles, meta descriptions, and on-... |
87,207 | <p>I read that it is best practices that if you have a product that comes in 3 colours to have one URL for the product, and then to have a dropdown with all the colours that it comes in?</p>
<p>For example if I had a shirt that comes in 3 colours, grey, green and blue then you will have to have 1 URL like:</p>
<p><co... | [
{
"answer_id": 87208,
"author": "Andrew Lott",
"author_id": 23812,
"author_profile": "https://webmasters.stackexchange.com/users/23812",
"pm_score": 1,
"selected": false,
"text": "<p>Often you'll see a query string appended to the URL. So <code>/product/1001/brand-shirt</code> may be the... | 2015/11/20 | [
"https://webmasters.stackexchange.com/questions/87207",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/14539/"
] | I read that it is best practices that if you have a product that comes in 3 colours to have one URL for the product, and then to have a dropdown with all the colours that it comes in?
For example if I had a shirt that comes in 3 colours, grey, green and blue then you will have to have 1 URL like:
`www.example.com/pro... | Often you'll see a query string appended to the URL. So `/product/1001/brand-shirt` may be the canonical URL, but `/product/1001/brand-shirt?colour=green` may be used to link directly to that version. Then you can use the [URL Parameters](https://www.google.com/webmasters/tools/crawl-url-parameters) feature in Search C... |
87,275 | <p>I'm developing a new Blogger Blog, and I'm about to send its first sitemap to Google Webmaster Tools. The thing is, I've found 2 articles about Blogger sitemaps, in which one is suggesting to send the sitemap through the url:</p>
<pre><code>/sitemap.xml - http://datzo.blogspot.com/sitemap.xml
</code></pre>
<p>and ... | [
{
"answer_id": 87286,
"author": "MaryC.fromNZ",
"author_id": 18435,
"author_profile": "https://webmasters.stackexchange.com/users/18435",
"pm_score": 1,
"selected": false,
"text": "<p>The first option was added about a year ago - see more about it here: <a href=\"http://blogging.nitecru... | 2015/11/23 | [
"https://webmasters.stackexchange.com/questions/87275",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/46564/"
] | I'm developing a new Blogger Blog, and I'm about to send its first sitemap to Google Webmaster Tools. The thing is, I've found 2 articles about Blogger sitemaps, in which one is suggesting to send the sitemap through the url:
```
/sitemap.xml - http://datzo.blogspot.com/sitemap.xml
```
and the other one is suggestin... | The first option was added about a year ago - see more about it here: <http://blogging.nitecruzr.net/2014/11/blogs-to-have-automatically-generated.html>
The other option still works AFAIK, and there are many advice articles out there written when the first option didn't exist, which therefore recommend the 2nd. |
87,306 | <p>I have a page listing multiple events in a table, so I have each one set as its own Event in microdata markup, as below:</p>
<pre><code><div itemscope itemtype="https://schema.org/Event">
<tr>
<meta itemprop="name" content="Really Cool Event">
<td itemprop="location" itemscope itemtype=... | [
{
"answer_id": 87309,
"author": "unor",
"author_id": 17633,
"author_profile": "https://webmasters.stackexchange.com/users/17633",
"pm_score": 2,
"selected": true,
"text": "<p>Your table markup is not valid (a <code>div</code> can’t contain a <code>tr</code>, a <code>tr</code> can’t conta... | 2015/11/24 | [
"https://webmasters.stackexchange.com/questions/87306",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/32227/"
] | I have a page listing multiple events in a table, so I have each one set as its own Event in microdata markup, as below:
```
<div itemscope itemtype="https://schema.org/Event">
<tr>
<meta itemprop="name" content="Really Cool Event">
<td itemprop="location" itemscope itemtype="https://schema.org/Place">
<a ... | Your table markup is not valid (a `div` can’t contain a `tr`, a `tr` can’t contain a `meta`).
If you fix it, Google’s testing tool seems to recognize it fine.
A quick way for testing this (but you shouldn’t publish like that): replace the `tr` and `td` elements with `div`. |
87,327 | <p>The <code>checkout/onepage</code> is working with HTTPS. But, why <code>checkout/cart</code> is not?</p>
<p>Here is fragment of the .htaccess:</p>
<pre><code>############################################
## enable rewrites
Options +FollowSymLinks
RewriteEngine on
# RewriteCond %{REQUEST_URI} checkout\/onepage
Rewr... | [
{
"answer_id": 87309,
"author": "unor",
"author_id": 17633,
"author_profile": "https://webmasters.stackexchange.com/users/17633",
"pm_score": 2,
"selected": true,
"text": "<p>Your table markup is not valid (a <code>div</code> can’t contain a <code>tr</code>, a <code>tr</code> can’t conta... | 2015/11/24 | [
"https://webmasters.stackexchange.com/questions/87327",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/58078/"
] | The `checkout/onepage` is working with HTTPS. But, why `checkout/cart` is not?
Here is fragment of the .htaccess:
```
############################################
## enable rewrites
Options +FollowSymLinks
RewriteEngine on
# RewriteCond %{REQUEST_URI} checkout\/onepage
RewriteCond %{HTTPS} off
RewriteCond %{REQUEST_... | Your table markup is not valid (a `div` can’t contain a `tr`, a `tr` can’t contain a `meta`).
If you fix it, Google’s testing tool seems to recognize it fine.
A quick way for testing this (but you shouldn’t publish like that): replace the `tr` and `td` elements with `div`. |
87,346 | <p>I have the URL </p>
<pre><code>http://www.example.com/shopping/books/?b=9
</code></pre>
<p>and the following <code>robots.txt</code> file:</p>
<pre><code>User-agent: *
Disallow: /?b=9
</code></pre>
<p>But when I test this in Google Webmaster Tool's robots.txt tester it is showing allowed when it should be disall... | [
{
"answer_id": 87348,
"author": "MrWhite",
"author_id": 1243,
"author_profile": "https://webmasters.stackexchange.com/users/1243",
"pm_score": 3,
"selected": false,
"text": "<p><code>robots.txt</code> is <em>prefix matching</em>, so a rule like <code>Disallow: /?b=9</code> will block all... | 2015/11/25 | [
"https://webmasters.stackexchange.com/questions/87346",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/58094/"
] | I have the URL
```
http://www.example.com/shopping/books/?b=9
```
and the following `robots.txt` file:
```
User-agent: *
Disallow: /?b=9
```
But when I test this in Google Webmaster Tool's robots.txt tester it is showing allowed when it should be disallowed.
Whilst `/?b=9` is fixed, `/shopping/books` will chang... | `robots.txt` is *prefix matching*, so a rule like `Disallow: /?b=9` will block all URLs that *start* `/?b=9`. Your URLs start `/shopp...` so they are not blocked.
However, you can use a `*` (wildcard - 0 or more instances of any character) to represent the first part of the URL. This is an addition to the "standard", ... |
87,365 | <p>Some sections of my website involve displaying a list of photo thumbnails. The source code to that is similar to the following when condensed:</p>
<pre><code><div> <a href="1">1</a> <a href="2">2</a> <a href="2">3</a> </div>
</code></pre>
<p>I also use stylesheets to... | [
{
"answer_id": 87371,
"author": "TheGrandPackard",
"author_id": 58115,
"author_profile": "https://webmasters.stackexchange.com/users/58115",
"pm_score": 2,
"selected": false,
"text": "<p>I do not know a great deal about Search Engine Optimization, but I do know enough about HTML parsing ... | 2015/11/25 | [
"https://webmasters.stackexchange.com/questions/87365",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/46807/"
] | Some sections of my website involve displaying a list of photo thumbnails. The source code to that is similar to the following when condensed:
```
<div> <a href="1">1</a> <a href="2">2</a> <a href="2">3</a> </div>
```
I also use stylesheets to format the anchor text so they are boxes with actual pictures in them tha... | You will not have any problems with this at all and [Google **recommends** you remove such space when possible.](https://developers.google.com/speed/docs/insights/MinifyResources?hl=en)
>
> Minification refers to the process of removing unnecessary or
> redundant data without affecting how the resource is processed ... |
87,414 | <p>I have a blog on my website. I write articles on it and product reviews.</p>
<p>When using structured data, how should I markup the blog post and review? I am currently using:</p>
<pre><code>http://schema.org/BlogPosting
</code></pre>
<p>When I do a write up on a product review, should I still use BlogPosting or ... | [
{
"answer_id": 87415,
"author": "Marco Tolk",
"author_id": 16943,
"author_profile": "https://webmasters.stackexchange.com/users/16943",
"pm_score": 2,
"selected": true,
"text": "<p>Anwser edited:</p>\n\n<p>On second thought. You don't have to choose. You can use <code>BlogPosting</code> ... | 2015/11/27 | [
"https://webmasters.stackexchange.com/questions/87414",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/14539/"
] | I have a blog on my website. I write articles on it and product reviews.
When using structured data, how should I markup the blog post and review? I am currently using:
```
http://schema.org/BlogPosting
```
When I do a write up on a product review, should I still use BlogPosting or should I use something else for t... | Anwser edited:
On second thought. You don't have to choose. You can use `BlogPosting` and in the about field you use `Review` directly or choose `Product` and use its review field.
```
<article itemprop="blogPost" itemscope itemtype="http://schema.org/BlogPosting">
<h1 itemprop="name headline">some clothing review<... |
87,416 | <p>Where is the best place to place structured data about your organization? Is it best to place it on every page or on just the home of your website?</p>
<p>I am referring to:</p>
<pre><code>http://schema.org/Organization
</code></pre>
| [
{
"answer_id": 87415,
"author": "Marco Tolk",
"author_id": 16943,
"author_profile": "https://webmasters.stackexchange.com/users/16943",
"pm_score": 2,
"selected": true,
"text": "<p>Anwser edited:</p>\n\n<p>On second thought. You don't have to choose. You can use <code>BlogPosting</code> ... | 2015/11/27 | [
"https://webmasters.stackexchange.com/questions/87416",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/14539/"
] | Where is the best place to place structured data about your organization? Is it best to place it on every page or on just the home of your website?
I am referring to:
```
http://schema.org/Organization
``` | Anwser edited:
On second thought. You don't have to choose. You can use `BlogPosting` and in the about field you use `Review` directly or choose `Product` and use its review field.
```
<article itemprop="blogPost" itemscope itemtype="http://schema.org/BlogPosting">
<h1 itemprop="name headline">some clothing review<... |
87,418 | <p>I can't find certain text on my site in Google, even if I'm searching specifically on the page that this text in on:</p>
<pre><code>site:mysite.com/page.html hidden text
</code></pre>
<p>I tried searching just for "site:mysite.com/page.html" - this page is indexed by Google, but the bot doesn't see all the text.<b... | [
{
"answer_id": 87419,
"author": "Robert hue",
"author_id": 57148,
"author_profile": "https://webmasters.stackexchange.com/users/57148",
"pm_score": 2,
"selected": false,
"text": "<p>It appears Google is no longer indexing any content that is hidden under read more panels that are hidden ... | 2015/11/27 | [
"https://webmasters.stackexchange.com/questions/87418",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/29813/"
] | I can't find certain text on my site in Google, even if I'm searching specifically on the page that this text in on:
```
site:mysite.com/page.html hidden text
```
I tried searching just for "site:mysite.com/page.html" - this page is indexed by Google, but the bot doesn't see all the text.
I went to Google Webmast... | It appears Google is no longer indexing any content that is hidden under read more panels that are hidden during the `onLoad` event.
Last year, Google acknowledged render your full page as a normal user would and this is probably the case here. If Google is seeing what the user sees, then they will index that content.... |
87,475 | <p>I have a WordPress site where I'm gonna host files such as MP3s. The thing is I know if I don't do anything, MP3 Crawlers like mp3glu or mp3pleer will come and use my files and bandwidth, which I don't want (it's a free host, and since he's already kind enough to host me, I don't want to cost him too much, you know)... | [
{
"answer_id": 87493,
"author": "Josip Ivic",
"author_id": 56095,
"author_profile": "https://webmasters.stackexchange.com/users/56095",
"pm_score": 1,
"selected": false,
"text": "<p>Upload everything on new server, then during the weekend, change DNS and MX entries.\nThat's the best solu... | 2015/11/29 | [
"https://webmasters.stackexchange.com/questions/87475",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/58211/"
] | I have a WordPress site where I'm gonna host files such as MP3s. The thing is I know if I don't do anything, MP3 Crawlers like mp3glu or mp3pleer will come and use my files and bandwidth, which I don't want (it's a free host, and since he's already kind enough to host me, I don't want to cost him too much, you know).
... | My own answer - perhaps is useful for someone:
First be sure that you have the same accounts on the old and new server.
Second, look at */home/$username/Mail* on the old host and see if there are some files there.
If they are then you must find what format they are by looking at the directory structure (maildir or... |
87,480 | <p>I want to verify my URL with <code>Google Webmaster tools</code> but it wouldn't let me, I've tried various methods but none seem to work and the reason maybe, that the URL forwards to a different domain. I have a <code>.com</code> URL forwarded to my<code>.ca</code> domain, I can properly verify the <code>.ca</code... | [
{
"answer_id": 87481,
"author": "Mike -- No longer here",
"author_id": 46807,
"author_profile": "https://webmasters.stackexchange.com/users/46807",
"pm_score": 0,
"selected": false,
"text": "<blockquote>\n <p>Why would it switch to https even tho the URL is http://?</p>\n</blockquote>\n... | 2015/11/29 | [
"https://webmasters.stackexchange.com/questions/87480",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/24542/"
] | I want to verify my URL with `Google Webmaster tools` but it wouldn't let me, I've tried various methods but none seem to work and the reason maybe, that the URL forwards to a different domain. I have a `.com` URL forwarded to my`.ca` domain, I can properly verify the `.ca` domain but it wouldn't let me verify the `.co... | This is happening because your site is SSL ONLY, due to the fact that your website is redirecting all requests via a 302 from HTTP to HTTPS. Currently Google is requesting `http://example.com/file.html` but your server redirects that request to `https://www.example.com/file.html` and obviously fails as a result. So, in... |
87,579 | <p>I have company.com, us.company.com and ca.company.com, all using the same language, however, displaying different content e.g. pricing, imagery and text</p>
<p>I want the site to be displayed in Google as company.com but if the user is in the US and clicks company.com they are redirected to us.company.com.</p>
<p>... | [
{
"answer_id": 87611,
"author": "Evgeniy",
"author_id": 43910,
"author_profile": "https://webmasters.stackexchange.com/users/43910",
"pm_score": 0,
"selected": false,
"text": "<p>Maybe with fallback?</p>\n\n<pre><code><?php\n$country_code = $_SERVER[\"HTTP_CF_IPCOUNTRY\"];\n\nif($coun... | 2015/12/02 | [
"https://webmasters.stackexchange.com/questions/87579",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/58312/"
] | I have company.com, us.company.com and ca.company.com, all using the same language, however, displaying different content e.g. pricing, imagery and text
I want the site to be displayed in Google as company.com but if the user is in the US and clicks company.com they are redirected to us.company.com.
The sites are Wor... | Besides the conditional redirect, what steps have you taken to target these sites at their intended markets?
From what you've said, I suspect you don't have geotargeting set up in Search Console / Webmaster Tools. You'll need to verify both the `us.` and `ca.` subdomains, and set each to target their respective market... |
87,630 | <p>How is the hook set up to create new database tables when an extension is registered in MediaWiki 1.25+?</p>
<p><a href="https://www.mediawiki.org/wiki/Manual:Hooks/LoadExtensionSchemaUpdates" rel="nofollow">The manual</a> says </p>
<blockquote>
<p>Possibly the Hooks section of extensions.json should be used...<... | [
{
"answer_id": 87696,
"author": "Tgr",
"author_id": 697,
"author_profile": "https://webmasters.stackexchange.com/users/697",
"pm_score": 2,
"selected": true,
"text": "<p>The hook is called <a href=\"https://www.mediawiki.org/wiki/Manual:Hooks/LoadExtensionSchemaUpdates\" rel=\"nofollow\"... | 2015/12/03 | [
"https://webmasters.stackexchange.com/questions/87630",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/47100/"
] | How is the hook set up to create new database tables when an extension is registered in MediaWiki 1.25+?
[The manual](https://www.mediawiki.org/wiki/Manual:Hooks/LoadExtensionSchemaUpdates) says
>
> Possibly the Hooks section of extensions.json should be used...
>
>
>
**What I tried**
in MyExtension/extension.... | The hook is called [`LoadExtensionSchemaUpdate***s***`](https://www.mediawiki.org/wiki/Manual:Hooks/LoadExtensionSchemaUpdates). |
87,637 | <p>I'm implementing the new <code>dns-prefetch</code> tag for my web application and I wonder where I should place it in the <code><head></code> tag?</p>
<p>Should I place it as the first tag in <code><head></code> so that browser immediately starts prefetching DNS?</p>
<pre><code><html>
<head&g... | [
{
"answer_id": 87641,
"author": "Mike -- No longer here",
"author_id": 46807,
"author_profile": "https://webmasters.stackexchange.com/users/46807",
"pm_score": 0,
"selected": false,
"text": "<p>I'd suggest inserting a tag that defines the character set of the page before any other tag, e... | 2015/12/04 | [
"https://webmasters.stackexchange.com/questions/87637",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/54940/"
] | I'm implementing the new `dns-prefetch` tag for my web application and I wonder where I should place it in the `<head>` tag?
Should I place it as the first tag in `<head>` so that browser immediately starts prefetching DNS?
```
<html>
<head>
<link rel="dns-prefetch" href="//ajax.googleapis.com">
... other tags .... | Dns-prefetch is a hint telling your web browser that you are probably going to use that domain at some point so go ahead and set up the connection in advance to save some time.
The main point is that it's a hint for a future page. So your browser will only use it if it's not busy doing something else. When a page is f... |
87,639 | <p>I am building a website (small online retail store) for a company whose brand name has a special character in it. The name of the brand is actually a legitimate Polish word that has an Ł, which is an <a href="https://en.wikipedia.org/wiki/%C5%81" rel="nofollow">L with stroke</a>. </p>
<p>The problem is that this co... | [
{
"answer_id": 87644,
"author": "Josip Ivic",
"author_id": 56095,
"author_profile": "https://webmasters.stackexchange.com/users/56095",
"pm_score": 0,
"selected": false,
"text": "<p>Special characters such as exclamation mark (!), dollar ($) and pound (£) are ignored by search engines. I... | 2015/12/04 | [
"https://webmasters.stackexchange.com/questions/87639",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/58367/"
] | I am building a website (small online retail store) for a company whose brand name has a special character in it. The name of the brand is actually a legitimate Polish word that has an Ł, which is an [L with stroke](https://en.wikipedia.org/wiki/%C5%81).
The problem is that this company is geared towards a U.S. based... | At least in my work in Finland I have the normal problem of umlauts "ä ö" and in Finnish site urls it is normal to register the brand if it contains umlauts in two version 1) real brand name with umlauts and 2) umlaut free version where ä is replaced by a and ö replaced by o. Then you make a permanent redirect 301 to t... |