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 |
|---|---|---|---|---|---|---|
120,728 | <p>I am thinking about changing my images from PNG to JPG but I am worried as it will technically change the image URL.</p>
<ul>
<li>Old: <code>www.example.com/image.png</code></li>
<li>New: <code>www.example.com/image.jpg</code></li>
</ul>
<p>So, will it also hurt the current image indexing and ranking?</p>
| [
{
"answer_id": 120733,
"author": "Group Of Oceninfo",
"author_id": 97655,
"author_profile": "https://webmasters.stackexchange.com/users/97655",
"pm_score": 0,
"selected": false,
"text": "<p>Optimizing images for the search engines depends upon many factors such as right format, type, fil... | 2019/02/05 | [
"https://webmasters.stackexchange.com/questions/120728",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/98032/"
] | I am thinking about changing my images from PNG to JPG but I am worried as it will technically change the image URL.
* Old: `www.example.com/image.png`
* New: `www.example.com/image.jpg`
So, will it also hurt the current image indexing and ranking? | I would recommend to prevent the problem and use a 301 redirect from the old ones to the new ones.
For example, just use **mod\_rewrite** in you `.htaccess` of your webserver.
```
# does the .jpg exist?
RewriteCond %{DOCUMENT_ROOT}/$1\.jpg -f
# then rewrite the .png to .jpg
RewriteRule (.+)\.png$ $1.jpg [L,R=301,NC]... |
120,732 | <p>I have a new website and from day one, it was on HTTPS. For example:</p>
<pre class="lang-html prettyprint-override"><code>https://www.example.com/
</code></pre>
<p>Do I still need to redirect HTTP to HTTPS to avoid content duplication? For example, should I still set a redirect from <code>http://www.example.com/<... | [
{
"answer_id": 120736,
"author": "Group Of Oceninfo",
"author_id": 97655,
"author_profile": "https://webmasters.stackexchange.com/users/97655",
"pm_score": -1,
"selected": false,
"text": "<p>Yes, if <code>http://</code> and <code>https://</code> version both are running at the same time.... | 2019/02/05 | [
"https://webmasters.stackexchange.com/questions/120732",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/37362/"
] | I have a new website and from day one, it was on HTTPS. For example:
```html
https://www.example.com/
```
Do I still need to redirect HTTP to HTTPS to avoid content duplication? For example, should I still set a redirect from `http://www.example.com/` to `https://www.example.com/`? | If search engines never crawled HTTP URLs under this domain, and if there are no HTTP links anywhere, you don’t need to redirect from HTTP to HTTPS for **SEO** purposes.
But you should still redirect for **usability** reasons:
* If users manually enter URLs to your site, they often omit the `https://` (e.g., starting... |
120,752 | <p>I have a site with Drupal 8 and I activate English and French (Language from the URL path prefix). Here is what my url resembles :</p>
<pre><code>https://www.example.com/en/node/add
https://www.example.com/fr/node/add
</code></pre>
<p>And here is the current configuration of my <code>robots.txt</code> file :</p>
... | [
{
"answer_id": 120767,
"author": "idk",
"author_id": 98042,
"author_profile": "https://webmasters.stackexchange.com/users/98042",
"pm_score": 2,
"selected": false,
"text": "<p>Your question is not clear. Are you trying to block any version of your site?</p>\n\n<p>Robots.txt is used to di... | 2019/02/05 | [
"https://webmasters.stackexchange.com/questions/120752",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/97220/"
] | I have a site with Drupal 8 and I activate English and French (Language from the URL path prefix). Here is what my url resembles :
```
https://www.example.com/en/node/add
https://www.example.com/fr/node/add
```
And here is the current configuration of my `robots.txt` file :
```
# Paths (clean URLs)
Disallow: /admi... | `Disallow` values need to start with the beginning of the URL path.
So `Disallow: /node/add` blocks `https://www.example.com/node/add`, but neither `https://www.example.com/en/node/add` nor
`https://www.example.com/fr/node/add`.
If you want to block all variants of the node add page, you have to use:
```
Disallow: /... |
120,768 | <p>I have created an xml sitemap.
I have used Google SearchConsole to send it in, but the SearchConsole status says it can not be fetched.
I cannot see why. Anyone who can spot the error, or have some kind of method or work-around for letting Google find my sitemap? I have even added the sitemap path to my robots file.... | [
{
"answer_id": 120797,
"author": "idk",
"author_id": 98042,
"author_profile": "https://webmasters.stackexchange.com/users/98042",
"pm_score": 0,
"selected": false,
"text": "<p>Submit your sitemap in https:// version and it will be validated successfully. If you are using http:// then you... | 2019/02/06 | [
"https://webmasters.stackexchange.com/questions/120768",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/98069/"
] | I have created an xml sitemap.
I have used Google SearchConsole to send it in, but the SearchConsole status says it can not be fetched.
I cannot see why. Anyone who can spot the error, or have some kind of method or work-around for letting Google find my sitemap? I have even added the sitemap path to my robots file. An... | Your robots.txt lists the sitemap at:
<http://www.example.dk/sitemap.xml>
However, your site seems to be secure, and your sitemap actually redirects to:
<https://www.example.dk/sitemap.xml>
(I'm preemptively replacing your actual URL with a stand-in, to follow the rules.)
If you're submitting the http version, tha... |
120,777 | <p>I have a website <code>example.com/blog/a-random-post</code>. It's already indexed on Google Search and Bing Search.</p>
<p>I'm working to change the host provider to Google Cloud but am worried about the impact it could have on search engines to find it because the new URL would be <code>example.com/a-random-post<... | [
{
"answer_id": 120797,
"author": "idk",
"author_id": 98042,
"author_profile": "https://webmasters.stackexchange.com/users/98042",
"pm_score": 0,
"selected": false,
"text": "<p>Submit your sitemap in https:// version and it will be validated successfully. If you are using http:// then you... | 2019/02/06 | [
"https://webmasters.stackexchange.com/questions/120777",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/97747/"
] | I have a website `example.com/blog/a-random-post`. It's already indexed on Google Search and Bing Search.
I'm working to change the host provider to Google Cloud but am worried about the impact it could have on search engines to find it because the new URL would be `example.com/a-random-post`.
PS: I couldn't add the ... | Your robots.txt lists the sitemap at:
<http://www.example.dk/sitemap.xml>
However, your site seems to be secure, and your sitemap actually redirects to:
<https://www.example.dk/sitemap.xml>
(I'm preemptively replacing your actual URL with a stand-in, to follow the rules.)
If you're submitting the http version, tha... |
120,778 | <p>I want to add Google structure data in WordPress Blog posts, pages. Where i need to place Structure data (in body or head section)? What is the correct schema structure for Posts or pages?</p>
<p>Thanks</p>
| [
{
"answer_id": 120779,
"author": "Community",
"author_id": -1,
"author_profile": "https://webmasters.stackexchange.com/users/-1",
"pm_score": 0,
"selected": false,
"text": "<p><strong>All In One Schema Rich Snippets</strong></p>\n\n<p>This plugin will help you \n<a href=\"https://wordpre... | 2019/01/30 | [
"https://webmasters.stackexchange.com/questions/120778",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/-1/"
] | I want to add Google structure data in WordPress Blog posts, pages. Where i need to place Structure data (in body or head section)? What is the correct schema structure for Posts or pages?
Thanks | From the Google Codelabs:
>
> Structured data provides a way to standardize information about a page
> and classify the page content. JSON-LD is used for data in a simple
> JavaScript-oriented object notation and is Google's preferred format
> for structured data. JSON-LD should be inside a element in
> either th... |
120,805 | <p>Recently we started to have issues with GMail deliverability. They go straight to spam folder ("<em>Why is this message in spam? It is similar to messages that were identified as spam in the past</em>" or "<em>Why is this message in Spam? It’s similar to messages that were detected by our spam filters.</em>").</p>
... | [
{
"answer_id": 121216,
"author": "Fgth56",
"author_id": 98541,
"author_profile": "https://webmasters.stackexchange.com/users/98541",
"pm_score": 2,
"selected": false,
"text": "<p>You should post your message on the Amazon SES forum because the issue comes from Amazon SES IPs being blackl... | 2019/02/07 | [
"https://webmasters.stackexchange.com/questions/120805",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/45399/"
] | Recently we started to have issues with GMail deliverability. They go straight to spam folder ("*Why is this message in spam? It is similar to messages that were identified as spam in the past*" or "*Why is this message in Spam? It’s similar to messages that were detected by our spam filters.*").
At the very beginning... | After long time I have found the problem.
And the problem is... **Gmail**.
Gmail was incorrectly parsing the SPF record. The record itself was correct and it was validating correctly in ie. mxtoolbox.
It was also validating correctly in Gmail (yeah, look at the listings in first post about validation results).
Howev... |
120,812 | <p>Could anyone advise why this schema below gets the following error:</p>
<blockquote>
<p>Missing '}' or object member name.</p>
</blockquote>
<pre class="lang-html prettyprint-override"><code><script type="application/ld+json">
{
"@context": "http://schema.org",
"@type": "Accommodation",
"name" : "Le ... | [
{
"answer_id": 120813,
"author": "Henry Visotski",
"author_id": 78970,
"author_profile": "https://webmasters.stackexchange.com/users/78970",
"pm_score": 2,
"selected": false,
"text": "<p>In JSON, the last key:value pair before the closing bracket of either an object or an array should no... | 2019/02/07 | [
"https://webmasters.stackexchange.com/questions/120812",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/97252/"
] | Could anyone advise why this schema below gets the following error:
>
> Missing '}' or object member name.
>
>
>
```html
<script type="application/ld+json">
{
"@context": "http://schema.org",
"@type": "Accommodation",
"name" : "Le Hurel Cottage",
"description" : "This cottage is one of 6 in a very large, ... | In JSON, the last key:value pair before the closing bracket of either an object or an array should not be followed with a comma. Thus, you should delete the commas in the following two lines:
```
"postalCode" : "JE3 2GB"
"PetsAllowed" : "No"
```
There's more. Google won't recognize LocationFeatureSpecification for @... |
120,914 | <p>I inherited this web server with Nginx and I'm trying to get a new basic PHP site setup on here.</p>
<p>I've followed instructions here.
<a href="https://gist.github.com/GhazanfarMir/03bd1f1f770a3834d47274586d46ea62" rel="nofollow noreferrer">https://gist.github.com/GhazanfarMir/03bd1f1f770a3834d47274586d46ea62</a>... | [
{
"answer_id": 120940,
"author": "Richard Smith",
"author_id": 59068,
"author_profile": "https://webmasters.stackexchange.com/users/59068",
"pm_score": 2,
"selected": false,
"text": "<p>The error message \"No input file specified\" is almost always because the value of <code>SCRIPT_FILEN... | 2019/02/11 | [
"https://webmasters.stackexchange.com/questions/120914",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/98212/"
] | I inherited this web server with Nginx and I'm trying to get a new basic PHP site setup on here.
I've followed instructions here.
<https://gist.github.com/GhazanfarMir/03bd1f1f770a3834d47274586d46ea62>
I can read html files just file in my directory. But for PHP files, I see this error in the webpage:
>
> No input ... | The error message "No input file specified" is almost always because the value of `SCRIPT_FILENAME` does not point to a file. The `location ~ \.php$` needs to know the document root, and the variable `$request_filename` is constructed by concatenating the document root with the current URI.
You have defined a document... |
120,926 | <p>My project is in 7 languages. For each language, we bought a domain.
The project already has some success. Some domains have many visitors from search engines, some not so many.</p>
<p>When we launched, our competitor launched the same project on 7 languages, but he put languages on 1 domain.</p>
<p>Now he has 32... | [
{
"answer_id": 120933,
"author": "Reza ",
"author_id": 97640,
"author_profile": "https://webmasters.stackexchange.com/users/97640",
"pm_score": 3,
"selected": true,
"text": "<p>There are two types of method for multilingual websites. </p>\n\n<ol>\n<li><p><strong>First</strong> is using s... | 2019/02/12 | [
"https://webmasters.stackexchange.com/questions/120926",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/89783/"
] | My project is in 7 languages. For each language, we bought a domain.
The project already has some success. Some domains have many visitors from search engines, some not so many.
When we launched, our competitor launched the same project on 7 languages, but he put languages on 1 domain.
Now he has 32 times more visito... | There are two types of method for multilingual websites.
1. **First** is using sub-domain for each language (the same as using separate domains).
```
https://en.example.com/
https://fr.example.com/
```
As you may know, each sub-domains ranking separately and has no affect on your root domain. Google identify each... |
120,947 | <p>Im not sure on handle the canonical link and the alternate tag correctly.</p>
<p>Example: One product "tshirt" with multiple versions (blue, red)</p>
<p>Version blue:
DE URL: ..de/kleidung/tshirt-de-blue</p>
<p><code><link rel="canonical" href="...de/kleidung/tshirt-de">
<rel="alternate" hreflang="de" hr... | [
{
"answer_id": 120953,
"author": "Maximillian Laumeister",
"author_id": 54214,
"author_profile": "https://webmasters.stackexchange.com/users/54214",
"pm_score": 2,
"selected": false,
"text": "<p><strong><em>Edit:</strong> I am not entirely sure that this answer is correct, as pointed out... | 2019/02/12 | [
"https://webmasters.stackexchange.com/questions/120947",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/98240/"
] | Im not sure on handle the canonical link and the alternate tag correctly.
Example: One product "tshirt" with multiple versions (blue, red)
Version blue:
DE URL: ..de/kleidung/tshirt-de-blue
`<link rel="canonical" href="...de/kleidung/tshirt-de">
<rel="alternate" hreflang="de" href="...de/kleidung/tshirt-de-blue">
<r... | ***Edit:*** I am not entirely sure that this answer is correct, as pointed out by WarrenH in the comments. However I am leaving it up because it (and Warren's comments) have some potentially useful info.
The `rel=alternate` tag is used for specifying different representations of the same page, and the `hreflang` attri... |
120,956 | <p>I have a master sitemap, index.xml on <code>https://www.example.com/index.xml</code></p>
<p>This XML contain childmaps pointing to a subdomain URL of mine like below:</p>
<pre><code><?xml version="1.0" encoding="UTF-8"?>
<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<sitemap>... | [
{
"answer_id": 121279,
"author": "idk",
"author_id": 98042,
"author_profile": "https://webmasters.stackexchange.com/users/98042",
"pm_score": 0,
"selected": false,
"text": "<blockquote>\n <ol>\n <li>Is there any problem doing above?</li>\n </ol>\n</blockquote>\n\n<p>No, your sitemaps ... | 2019/02/13 | [
"https://webmasters.stackexchange.com/questions/120956",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/98244/"
] | I have a master sitemap, index.xml on `https://www.example.com/index.xml`
This XML contain childmaps pointing to a subdomain URL of mine like below:
```
<?xml version="1.0" encoding="UTF-8"?>
<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<sitemap>
<loc>https://sitemap.example.com/sitemap1.xml</... | >
> 1. Is there any problem doing above?
>
>
>
**Yes**.
"Google expects the [standard sitemap protocol](http://www.sitemaps.org/) in all formats." - [Google](https://support.google.com/webmasters/answer/183668?hl=en)
"**all URLs listed in the Sitemap must use the same protocol and *reside on the same host as the... |
121,076 | <p>I've added the following Google Tag and Google Analytics code in my website. When i checked with Google Tag Assistant (Chrome Addon), I can find a yellow indicator against Google Analytics Tag which says to optimize "<strong>Same web property ID is tracked twice.</strong>" As well as i can see "<strong>2 Pageview Re... | [
{
"answer_id": 121078,
"author": "Filozof666",
"author_id": 97664,
"author_profile": "https://webmasters.stackexchange.com/users/97664",
"pm_score": 2,
"selected": false,
"text": "<p>Yes, just delete Google Analytics code from site, you should implement all tags you need through Google T... | 2019/02/19 | [
"https://webmasters.stackexchange.com/questions/121076",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/45143/"
] | I've added the following Google Tag and Google Analytics code in my website. When i checked with Google Tag Assistant (Chrome Addon), I can find a yellow indicator against Google Analytics Tag which says to optimize "**Same web property ID is tracked twice.**" As well as i can see "**2 Pageview Requests**"
How could i... | Yes, just delete Google Analytics code from site, you should implement all tags you need through Google Tag Manager, That will solve your problem. Also i see you have Google Ads, if it is not, consider moving it to Google Tag Manager too, it will be easier for you to reconfigure it when ever you need it. |
121,180 | <p>My search results seem to not be correctly localized since adding a 'Europe' /eu/ page.</p>
<p>My header now looks like this (taken from EU page <a href="https://example.com/eu/features/" rel="nofollow noreferrer">https://example.com/eu/features/</a>).</p>
<pre><code><link rel="canonical" href="https://example.... | [
{
"answer_id": 124163,
"author": "Alec Sharratt",
"author_id": 101464,
"author_profile": "https://webmasters.stackexchange.com/users/101464",
"pm_score": 0,
"selected": false,
"text": "<p>Try using this code instead, where the default is as the bottom of the list, i can't see any obvous ... | 2019/02/23 | [
"https://webmasters.stackexchange.com/questions/121180",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/51446/"
] | My search results seem to not be correctly localized since adding a 'Europe' /eu/ page.
My header now looks like this (taken from EU page <https://example.com/eu/features/>).
```
<link rel="canonical" href="https://example.com/eu/features/">
<link rel="alternate" hreflang="x-default" href="https://example.com/eu/feat... | Most of your `hreflang` are unneeded, maybe because you are confusing languages and localizations.
See <https://tools.ietf.org/html/bcp47#section-2.2.4> :
>
> Region subtags are used to indicate linguistic variations associated
> with or appropriate to a specific country, territory, or region.
> Typically, a reg... |
121,263 | <p>I found many posts about that but I still can't find a clear answer. I read many texts saying that the H1 tag must have text description and we can't used it with img like logo. However, in many projects, I've got problem to use H1 on the top of homepage or single page because of structure concept.</p>
<p>Other pag... | [
{
"answer_id": 121265,
"author": "Rob",
"author_id": 8466,
"author_profile": "https://webmasters.stackexchange.com/users/8466",
"pm_score": 1,
"selected": false,
"text": "<p>Often people get into a quandry when they look at their HTML through the visual design of the web page. If you kee... | 2019/02/27 | [
"https://webmasters.stackexchange.com/questions/121263",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/98586/"
] | I found many posts about that but I still can't find a clear answer. I read many texts saying that the H1 tag must have text description and we can't used it with img like logo. However, in many projects, I've got problem to use H1 on the top of homepage or single page because of structure concept.
Other pages use man... | Often people get into a quandry when they look at their HTML through the visual design of the web page. If you keep in mind that HTML deals with document structure only, you'll have far less problems. Especially if you read the HTML specification when you are unsure. There you will find that it is find to use more than... |
121,308 | <p><a href="https://i.stack.imgur.com/qVYSr.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/qVYSr.png" alt="e "></a></p>
<p>My site was getting traffic and it was on the rise, then I added https and somewhere in that time I also created tons of extra link for google to crawl, thinking this will incr... | [
{
"answer_id": 121309,
"author": "Evgeniy",
"author_id": 43910,
"author_profile": "https://webmasters.stackexchange.com/users/43910",
"pm_score": 1,
"selected": false,
"text": "<p>I would fire the <code>410 Gone</code> as a header - so Google quickly learns these pages are away and remov... | 2019/03/01 | [
"https://webmasters.stackexchange.com/questions/121308",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/9252/"
] | [](https://i.stack.imgur.com/qVYSr.png)
My site was getting traffic and it was on the rise, then I added https and somewhere in that time I also created tons of extra link for google to crawl, thinking this will increase traffic in those area where there was no traffic.
It ba... | In my humble opinion and I have already tested it - the best way of removing pages from index comes in a few phases:
1. On the pages you want to remove from index implement no-index.
2. Create a temporary `sitemap.xml` with URLs of these pages.
3. Ping this `sitemap.xml` file to Google using GSC or <http://www.google.... |
121,331 | <p>I am looking to use the old "phone book" font for a project I'm working on currently,</p>
<p>I have the fonts and was able to set up a stylesheet for them:</p>
<p><a href="http://interlinked.cf/css/bellgothic.css" rel="nofollow noreferrer">http://interlinked.cf/css/bellgothic.css</a></p>
<pre><code>@font-face {
... | [
{
"answer_id": 121355,
"author": "norcal johnny",
"author_id": 69901,
"author_profile": "https://webmasters.stackexchange.com/users/69901",
"pm_score": 4,
"selected": true,
"text": "<p>Ok here is how it should work.</p>\n\n<p>The CSS</p>\n\n<pre><code>@font-face {\nfont-family: \"BellGot... | 2019/03/02 | [
"https://webmasters.stackexchange.com/questions/121331",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/63956/"
] | I am looking to use the old "phone book" font for a project I'm working on currently,
I have the fonts and was able to set up a stylesheet for them:
<http://interlinked.cf/css/bellgothic.css>
```
@font-face {
font-family: 'BellGothicStd';
src: url('/fonts/bell-gothic/BellGothicStd-Black.otf') format("opentype"),... | Ok here is how it should work.
The CSS
```
@font-face {
font-family: "BellGothicStd";
src: url("fonts/BellGothicStd-Black.otf") format("opentype");
}
h1 {
font-family: 'BellGothicStd', Arial, sans-serif;
font-weight:normal;
font-style:normal;
}
```
The HTML
```
<!DOCTYPE html>
<html lang="en">
<head>
<meta http... |
121,350 | <p>Today, I receive from Google a couple of errors in the products section of Google search console, In our store, the prices are missing because we are a wholesaler of bags, so we sell only to the company (B2B), and also we don't need review from the company, our website is <a href="https://www.ingrossoborseonline.com... | [
{
"answer_id": 121355,
"author": "norcal johnny",
"author_id": 69901,
"author_profile": "https://webmasters.stackexchange.com/users/69901",
"pm_score": 4,
"selected": true,
"text": "<p>Ok here is how it should work.</p>\n\n<p>The CSS</p>\n\n<pre><code>@font-face {\nfont-family: \"BellGot... | 2019/03/03 | [
"https://webmasters.stackexchange.com/questions/121350",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/84790/"
] | Today, I receive from Google a couple of errors in the products section of Google search console, In our store, the prices are missing because we are a wholesaler of bags, so we sell only to the company (B2B), and also we don't need review from the company, our website is <https://www.ingrossoborseonline.com>
Please, ... | Ok here is how it should work.
The CSS
```
@font-face {
font-family: "BellGothicStd";
src: url("fonts/BellGothicStd-Black.otf") format("opentype");
}
h1 {
font-family: 'BellGothicStd', Arial, sans-serif;
font-weight:normal;
font-style:normal;
}
```
The HTML
```
<!DOCTYPE html>
<html lang="en">
<head>
<meta http... |
121,358 | <p>Today, i have hosted new website, for google search console and go to webmaster tools and add new property <a href="http://subsite.example.com" rel="nofollow noreferrer">http://subsite.example.com</a> and verification for this site successfully and i have already enabled google search console in google analytics tha... | [
{
"answer_id": 121355,
"author": "norcal johnny",
"author_id": 69901,
"author_profile": "https://webmasters.stackexchange.com/users/69901",
"pm_score": 4,
"selected": true,
"text": "<p>Ok here is how it should work.</p>\n\n<p>The CSS</p>\n\n<pre><code>@font-face {\nfont-family: \"BellGot... | 2019/03/04 | [
"https://webmasters.stackexchange.com/questions/121358",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/98709/"
] | Today, i have hosted new website, for google search console and go to webmaster tools and add new property <http://subsite.example.com> and verification for this site successfully and i have already enabled google search console in google analytics that site. now problem here, but why data is not showing in performance... | Ok here is how it should work.
The CSS
```
@font-face {
font-family: "BellGothicStd";
src: url("fonts/BellGothicStd-Black.otf") format("opentype");
}
h1 {
font-family: 'BellGothicStd', Arial, sans-serif;
font-weight:normal;
font-style:normal;
}
```
The HTML
```
<!DOCTYPE html>
<html lang="en">
<head>
<meta http... |
121,391 | <p>Several websites are hotlinking my images, I want to block and prevent hotlinking to my website images.</p>
<p>And, I was going to use standard hotlink prevention code in <code>.htaccess</code>:</p>
<pre><code>RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http(s)?://(www\.)?yourdom... | [
{
"answer_id": 121393,
"author": "norcal johnny",
"author_id": 69901,
"author_profile": "https://webmasters.stackexchange.com/users/69901",
"pm_score": 0,
"selected": false,
"text": "<p>No. Hotlinking just prevents people loading your images compliments of your bandwidth. As long as you ... | 2019/03/05 | [
"https://webmasters.stackexchange.com/questions/121391",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/98652/"
] | Several websites are hotlinking my images, I want to block and prevent hotlinking to my website images.
And, I was going to use standard hotlink prevention code in `.htaccess`:
```
RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http(s)?://(www\.)?yourdomain.com [NC]
RewriteRule \.(jpg|... | >
> Do I need to explicitly add every search engine & social media...
>
>
>
Potentially, yes. However, it does depend on how the third party (search engine / social media platform) fetches/caches your images.
If Google *image search* is a concern then you will need to punch a hole in your hotlinking protection to... |
121,425 | <p>I want to write a program which will log in to squareup.com. So for this I need to know where the form is located and to where is it submitted.</p>
<p>So the form is located at <a href="https://squareup.com/login" rel="nofollow noreferrer">https://squareup.com/login</a>, and the source code contains the following:<... | [
{
"answer_id": 121427,
"author": "Brett Donald",
"author_id": 98728,
"author_profile": "https://webmasters.stackexchange.com/users/98728",
"pm_score": 2,
"selected": false,
"text": "<p>You're right that the form will be submitted to <a href=\"https://squareup.com/mp/login\" rel=\"nofollo... | 2019/03/06 | [
"https://webmasters.stackexchange.com/questions/121425",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/98781/"
] | I want to write a program which will log in to squareup.com. So for this I need to know where the form is located and to where is it submitted.
So the form is located at <https://squareup.com/login>, and the source code contains the following:
```
<form accept-charset="UTF-8" action="/mp/login"
class="signin... | You're right that the form will be submitted to <https://squareup.com/mp/login>, and that when you just put that URL into a browser, you get a 404. That's because when you type web addresses into a browser, the browser makes a GET request, but the page at <https://squareup.com/mp/login> is expecting a POST request.
GE... |
121,462 | <p>Does this look correct? All of the actual content is obviously placeholders for developers. </p>
<pre><code><meta property="og:type" content="article"/>
<meta property="og:title" content="Title of Page"/>
<meta property="og:description" content="Meta Description of Page"/>
<meta property="og:ur... | [
{
"answer_id": 121427,
"author": "Brett Donald",
"author_id": 98728,
"author_profile": "https://webmasters.stackexchange.com/users/98728",
"pm_score": 2,
"selected": false,
"text": "<p>You're right that the form will be submitted to <a href=\"https://squareup.com/mp/login\" rel=\"nofollo... | 2019/03/08 | [
"https://webmasters.stackexchange.com/questions/121462",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/98753/"
] | Does this look correct? All of the actual content is obviously placeholders for developers.
```
<meta property="og:type" content="article"/>
<meta property="og:title" content="Title of Page"/>
<meta property="og:description" content="Meta Description of Page"/>
<meta property="og:url" content="URL of Page"/>
<meta pr... | You're right that the form will be submitted to <https://squareup.com/mp/login>, and that when you just put that URL into a browser, you get a 404. That's because when you type web addresses into a browser, the browser makes a GET request, but the page at <https://squareup.com/mp/login> is expecting a POST request.
GE... |
121,490 | <p>I'm working on an e-Commerce project. I need to display the products on the category page with js (using vue.js). In my case, the browser sends the following html to the user:</p>
<pre><code><div class="product-list">
<products-list-component :products="{{$products}}">
</products-list-component&g... | [
{
"answer_id": 121513,
"author": "Chris Rutherfurd",
"author_id": 60702,
"author_profile": "https://webmasters.stackexchange.com/users/60702",
"pm_score": 1,
"selected": false,
"text": "<p>To start with unless needed generate your site on the server side and send it to your client. One o... | 2019/03/10 | [
"https://webmasters.stackexchange.com/questions/121490",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/98889/"
] | I'm working on an e-Commerce project. I need to display the products on the category page with js (using vue.js). In my case, the browser sends the following html to the user:
```
<div class="product-list">
<products-list-component :products="{{$products}}">
</products-list-component>
</div>
```
Where `products-... | To start with unless needed generate your site on the server side and send it to your client. One of the biggest mistakes made by webmasters is making their site too javascript dependent which can not only make it slower as it loads all of the needed javascript over slow mobile connections or non-broadband connections ... |
121,526 | <p>I'm creating a few new pages on my website and I'm wondering what is the best approach for the pages that are somehow related,either by topic, or the same category.</p>
<p>So, for example, Asana has one main page - <code>https://asana.com/terms</code>
and a few subpages, for Terms of Service, Privacy Policy, etc.</... | [
{
"answer_id": 121531,
"author": "Σπύρος Γούλας",
"author_id": 89138,
"author_profile": "https://webmasters.stackexchange.com/users/89138",
"pm_score": 2,
"selected": false,
"text": "<p><code>#</code> indicates a specific point in the page, an anchor point as they say. Meaning that when ... | 2019/03/12 | [
"https://webmasters.stackexchange.com/questions/121526",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/98939/"
] | I'm creating a few new pages on my website and I'm wondering what is the best approach for the pages that are somehow related,either by topic, or the same category.
So, for example, Asana has one main page - `https://asana.com/terms`
and a few subpages, for Terms of Service, Privacy Policy, etc.
They have them like t... | `#` indicates a specific point in the page, an anchor point as they say. Meaning that when you visit the page with the `#` prefix your screen will automatically scroll to that portion of the page.
`/` indicates a subcategory or page under a category and when you visit it you will start from the top.
`#` Is used only ... |
121,627 | <p>We launch several versions of our PWA on URL's like:</p>
<pre><code>https://editor.construct.net/ (always points to latest stable version)
https://editor.construct.net/r141-2/
https://editor.construct.net/r141/
</code></pre>
<p>Our users launch these version via our website:</p>
<pre><code>https://www.construct.n... | [
{
"answer_id": 121675,
"author": "idk",
"author_id": 98042,
"author_profile": "https://webmasters.stackexchange.com/users/98042",
"pm_score": 1,
"selected": false,
"text": "<blockquote>\n <p>Is pointing the canonical URL to our homepage like this a reasonable thing to do? Should we cons... | 2019/03/15 | [
"https://webmasters.stackexchange.com/questions/121627",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/5727/"
] | We launch several versions of our PWA on URL's like:
```
https://editor.construct.net/ (always points to latest stable version)
https://editor.construct.net/r141-2/
https://editor.construct.net/r141/
```
Our users launch these version via our website:
```
https://www.construct.net/en/make-games/releases/beta/r141
... | The content between your game editor and your home page is not the same. Therefore, a canonical tag is not appropriate. Google ignores canonical tags when it sees that the pages are not nearly identical.
I would suggest that you do want your editor to be indexed in search engines. If somebody searches for "construct.n... |
121,804 | <p>I hag a previous JSON-LD tag on my products page, which worked well (no errors, and 3 warnings in <a href="https://search.google.com/structured-data/testing-tool?hl=en" rel="nofollow noreferrer">Google's Structured Data Testing Tool</a>).</p>
<pre class="lang-html prettyprint-override"><code><script type="applic... | [
{
"answer_id": 121810,
"author": "Marc Brillault",
"author_id": 74270,
"author_profile": "https://webmasters.stackexchange.com/users/74270",
"pm_score": 0,
"selected": false,
"text": "<p>Thanks to <a href=\"https://stackoverflow.com/a/30506476/4834168\">this answer on stackOverflow</a>, ... | 2019/03/25 | [
"https://webmasters.stackexchange.com/questions/121804",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/74270/"
] | I hag a previous JSON-LD tag on my products page, which worked well (no errors, and 3 warnings in [Google's Structured Data Testing Tool](https://search.google.com/structured-data/testing-tool?hl=en)).
```html
<script type="application/ld+json">
{
"@context": "https://schema.org/",
"@ty... | Your markup is valid. But if you move `Product` from the top level to bottom the testing tool suppresses warnings.
Look into page with <http://linter.structured-data.org/> - everything is on the place.
If you really-really want to see warnings by testing tool, so use an opposite type to `mainEntity` → `mainEntityOfPa... |
121,836 | <p>I have important URLs on my site to which I’d like to append temporary parameters. For example:</p>
<pre><code>example.com/tool/input
</code></pre>
<p>will have the parameter</p>
<pre><code>example.com/tool/input?foo
</code></pre>
<p><code>input</code> in the URL is dynamic.</p>
<p>Although <code>example.com/to... | [
{
"answer_id": 121826,
"author": "Trebor",
"author_id": 96875,
"author_profile": "https://webmasters.stackexchange.com/users/96875",
"pm_score": 0,
"selected": false,
"text": "<p>There are several websites that will do this for you. You can start with <a href=\"https://serps.com/tools/ra... | 2019/03/26 | [
"https://webmasters.stackexchange.com/questions/121836",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/99270/"
] | I have important URLs on my site to which I’d like to append temporary parameters. For example:
```
example.com/tool/input
```
will have the parameter
```
example.com/tool/input?foo
```
`input` in the URL is dynamic.
Although `example.com/tool` and `example.com/tool/input` are important URLs on the site, I do no... | use VPN like "strong VPN" or "tunnel bear" and then open incognito mode, then type google.com for the USA, google.co.uk for the United Kingdom and so on.
Then search for your keyword |
121,887 | <p>I've submitted a sitemap to my website and Google Search Console status is "Couldn't fetch". I've had my xml verified by <a href="https://www.xmlvalidation.com/" rel="nofollow noreferrer">XML Validation</a>, and my xml is also publicly available to be viewed. </p>
<p><a href="https://support.google.com/webmasters/a... | [
{
"answer_id": 121860,
"author": "SushiGuy",
"author_id": 67633,
"author_profile": "https://webmasters.stackexchange.com/users/67633",
"pm_score": 3,
"selected": false,
"text": "<p>\"Concurrent connection\" means the maximum number of TCP connections your server can handle at any one tim... | 2019/03/27 | [
"https://webmasters.stackexchange.com/questions/121887",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/73955/"
] | I've submitted a sitemap to my website and Google Search Console status is "Couldn't fetch". I've had my xml verified by [XML Validation](https://www.xmlvalidation.com/), and my xml is also publicly available to be viewed.
[Google's support website](https://support.google.com/webmasters/answer/7451001?hl=en) suggeste... | "Concurrent connection" means the maximum number of TCP connections your server can handle at any one time. At any given time many TCP/IP requests are coming to your server. For instance a single, simple web page might require 10 connections.
* 1 for the HTML page
* 2 for included JS scripts
* 7 for JPEG and PNG image... |
121,989 | <p>I am using the domains <code>ergonomi.example</code> and <code>fysiarbejdsliv.example</code> </p>
<p>I want <code>fysiarbejdsliv.example</code> to redirect to <code>https://fysiarbejdsliv.example/dansk-selskab-for-fysioterapi-i-arbejdsliv</code>.</p>
<p>I have tried a lot of solutions in htaccess, but none of them... | [
{
"answer_id": 121992,
"author": "Parth Kinjal Shah",
"author_id": 99477,
"author_profile": "https://webmasters.stackexchange.com/users/99477",
"pm_score": 0,
"selected": false,
"text": "<p>you can do the following <br>\nfor external site<br></p>\n\n<pre><code>Redirect /path/to/old/file/... | 2019/04/02 | [
"https://webmasters.stackexchange.com/questions/121989",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/99474/"
] | I am using the domains `ergonomi.example` and `fysiarbejdsliv.example`
I want `fysiarbejdsliv.example` to redirect to `https://fysiarbejdsliv.example/dansk-selskab-for-fysioterapi-i-arbejdsliv`.
I have tried a lot of solutions in htaccess, but none of them are working for me.
Like:
```
RewriteRule ^fysiarbejdsliv.... | >
>
> ```
> RewriteRule ^fysiarbejdsliv.example/(.*)$ https://www.fysiarbejdsliv.example/dansk-selskab-for-fysioterapi-i-arbejdsliv/$1 [L,R=301,QSA]
>
> ```
>
>
The `RewriteRule` *pattern* (first argument) matches against the URL-path only - this does not include the *hostname*. So the above directive will simply... |
122,019 | <p>One of my client is e-commerce marketplace. For their offer listing pages, I have provided a JSON structured data <code>Product</code> markup using <code>aggregateRating</code> as follows:</p>
<pre class="lang-html prettyprint-override"><code><script type="application/ld+json">
{
"@context": "https://schema... | [
{
"answer_id": 122026,
"author": "unor",
"author_id": 17633,
"author_profile": "https://webmasters.stackexchange.com/users/17633",
"pm_score": 2,
"selected": false,
"text": "<blockquote>\n <p>I do not have SKU and unique identifier, so how can I fix these warnings?</p>\n</blockquote>\n\... | 2019/04/03 | [
"https://webmasters.stackexchange.com/questions/122019",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/81888/"
] | One of my client is e-commerce marketplace. For their offer listing pages, I have provided a JSON structured data `Product` markup using `aggregateRating` as follows:
```html
<script type="application/ld+json">
{
"@context": "https://schema.org/",
"@type": "Product",
"name": "example name",
"description": "ex... | >
> I do not have SKU and unique identifier, so how can I fix these warnings?
>
>
>
>
> Is there any way I can by-pass these errors or do tweak in code?
>
>
>
There is no way to fix this other than to provide the data.
>
> I have a doubt that Google may penalize in future because of these warnings.
>
>
> ... |
122,027 | <p>I have changed the maxfile size in the php.ini settings, but i do not know how to change it in the IIS 10 config.</p>
<p>My hphinfo:
<a href="https://i.stack.imgur.com/96XCe.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/96XCe.png" alt="enter image description here"></a></p>
<p>I am getting the... | [
{
"answer_id": 122039,
"author": "RaisinBranCrunch",
"author_id": 64247,
"author_profile": "https://webmasters.stackexchange.com/users/64247",
"pm_score": 2,
"selected": false,
"text": "<p>From: <a href=\"https://www.inflectra.com/support/knowledgebase/kb306.aspx\" rel=\"nofollow norefer... | 2019/04/03 | [
"https://webmasters.stackexchange.com/questions/122027",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/99482/"
] | I have changed the maxfile size in the php.ini settings, but i do not know how to change it in the IIS 10 config.
My hphinfo:
[](https://i.stack.imgur.com/96XCe.png)
I am getting the error `1` in the $\_FILE array (which as I understand means that th... | From: <https://www.inflectra.com/support/knowledgebase/kb306.aspx>
>
> By default, IIS web server allows for limited file size to be uploaded
> to the web server. For IIS 6 and IIS 7, the default maximum file
> upload size is 4 MB and 28.6 MB respectively. IIS 7 returns a 404
> error (HTTP Error 404.13 - CONTENT\_... |
122,104 | <p>After expiring my domain, GoDaddy is asking more money to renew. Why is GoDaddy holding my domain? If it expired it has to be open to buy right?</p>
<p><a href="https://i.stack.imgur.com/OSUrZ.png" rel="noreferrer"><img src="https://i.stack.imgur.com/OSUrZ.png" alt="enter image description here"></a></p>
| [
{
"answer_id": 122106,
"author": "Patrick Mevzek",
"author_id": 75842,
"author_profile": "https://webmasters.stackexchange.com/users/75842",
"pm_score": 5,
"selected": false,
"text": "<p>In gTLD world, such as .COM it goes around like that:</p>\n\n<ul>\n<li>when a domain hits its expirat... | 2019/04/08 | [
"https://webmasters.stackexchange.com/questions/122104",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/99629/"
] | After expiring my domain, GoDaddy is asking more money to renew. Why is GoDaddy holding my domain? If it expired it has to be open to buy right?
[](https://i.stack.imgur.com/OSUrZ.png) | In gTLD world, such as .COM it goes around like that:
* when a domain hits its expiration date, the registry auto-renews it
* this opens a 45 days period where the registrar can decide either to do nothing (then the domain gets really renewed past the 45 days delay, which means the registrar has been payed by its clie... |
122,391 | <p>Someone has set their domain to use my server. It's not a mirror, the database and everything works and updates with mine. He's basically stealing my content, and he's showing up on google instead of me.</p>
<p>He serves all my content with his own domains, Currently I denying stealer with cloudflare <code>Under At... | [
{
"answer_id": 122404,
"author": "Machavity",
"author_id": 49060,
"author_profile": "https://webmasters.stackexchange.com/users/49060",
"pm_score": 2,
"selected": false,
"text": "<p>Your Apache is improperly configured. Apache should only respond to properly configured domains. Somehow, ... | 2019/04/22 | [
"https://webmasters.stackexchange.com/questions/122391",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/100028/"
] | Someone has set their domain to use my server. It's not a mirror, the database and everything works and updates with mine. He's basically stealing my content, and he's showing up on google instead of me.
He serves all my content with his own domains, Currently I denying stealer with cloudflare `Under Attack Mode`
I ... | Hope this will be helpful for others. This is how I stop stealer with javascript
```
var x = location.hostname;
if ( x != 'www.example.com'){
window.location.replace("https://www.example.com");
}
```
Then use this [javascriptobfuscator](http://www.javascriptobfuscator.com/Javascript-Obfuscator.aspx) to encrypt the ... |
122,455 | <p>I have 2 websites that have the same brand. One of them should not appear when searching the brand on the search engines.</p>
<p>Do you have an Idea How to do this?</p>
| [
{
"answer_id": 122459,
"author": "Paul Kander",
"author_id": 99478,
"author_profile": "https://webmasters.stackexchange.com/users/99478",
"pm_score": 0,
"selected": false,
"text": "<p>This is not possible, don't use the keywords you don't want to rank your page on.</p>\n"
},
{
"a... | 2019/04/24 | [
"https://webmasters.stackexchange.com/questions/122455",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/100087/"
] | I have 2 websites that have the same brand. One of them should not appear when searching the brand on the search engines.
Do you have an Idea How to do this? | If your page url has your brand keyword in it then you can easily disallow the pages from robots.txt
Suppose your brand name and your brand url is **abc brand** and
**xyz.com/best-abc-brand-bags**
Then your robots.txt should contain this code
```
User-agent: *
Disallow: *abc-brand*
```
Google will not crawl that pa... |
122,513 | <p>I have a page that lists multiple items, and each item has its own set of sub-items that are linked from there to their own separate pages. It looks something like this:</p>
<pre class="lang-none prettyprint-override"><code>Title: Songs written by Person
Short Summary
Subheading: Pop Songs
- List of ... | [
{
"answer_id": 122515,
"author": "unor",
"author_id": 17633,
"author_profile": "https://webmasters.stackexchange.com/users/17633",
"pm_score": 4,
"selected": true,
"text": "<p>It’s perfectly fine to have multiple <code>ItemList</code> items on a page, and it’s perfectly fine not to provi... | 2019/04/27 | [
"https://webmasters.stackexchange.com/questions/122513",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/100154/"
] | I have a page that lists multiple items, and each item has its own set of sub-items that are linked from there to their own separate pages. It looks something like this:
```none
Title: Songs written by Person
Short Summary
Subheading: Pop Songs
- List of pop songs, with links to each
Subheading: Rock S... | It’s perfectly fine to have multiple `ItemList` items on a page, and it’s perfectly fine not to provide `position`.
With "not allowed", you are probably referring to Google’s guidelines for their [Carousels search result feature](https://developers.google.com/search/docs/guides/mark-up-listings). Google can’t decide w... |
122,514 | <p>I try to get the Yandex Bot under control and I'm close to block it.</p>
<p>After 2 months of robots.txt adjustments, it still keeps hammering my server from multiple IPs.</p>
<pre><code>User-Agent: *
Crawl-delay: 4
User-agent: Yandex
Crawl-delay: 6
</code></pre>
<p>Over one week the average delay is 7.6 seconds... | [
{
"answer_id": 122516,
"author": "Shahzeb Qureshi",
"author_id": 99951,
"author_profile": "https://webmasters.stackexchange.com/users/99951",
"pm_score": 2,
"selected": false,
"text": "<p>If you think that yandex is not obeying the <code>Crawl-delay</code> directive try signing up for Ya... | 2019/04/27 | [
"https://webmasters.stackexchange.com/questions/122514",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/68822/"
] | I try to get the Yandex Bot under control and I'm close to block it.
After 2 months of robots.txt adjustments, it still keeps hammering my server from multiple IPs.
```
User-Agent: *
Crawl-delay: 4
User-agent: Yandex
Crawl-delay: 6
```
Over one week the average delay is 7.6 seconds (seconds / ammount of access\_lo... | If you think that yandex is not obeying the `Crawl-delay` directive try signing up for Yandex Webmasters and validate your domain.
Once the validation is done you can manually set the crawl rate under **Indexing -> Crawl rate**
Consider reading this article on Yandex Webmasters [Guide to Yandex Webmaster Tools](https:... |
122,547 | <p>I'm having trouble with my <code>.htaccess</code> redirects.</p>
<p>I need to forward all URLs to the non www version of the URL using HTTPS and also forward any non secure URLs to HTTPS too. In both cases I need to keep the full URL</p>
<p>I currently have these rules which almost work as I want but they seem to ... | [
{
"answer_id": 122550,
"author": "Luis Alberto Barandiaran",
"author_id": 100148,
"author_profile": "https://webmasters.stackexchange.com/users/100148",
"pm_score": 3,
"selected": true,
"text": "<p>Try this:</p>\n\n<pre><code>RewriteCond %{HTTPS} off \nRewriteRule ^(.*) https://example.c... | 2019/04/29 | [
"https://webmasters.stackexchange.com/questions/122547",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/99475/"
] | I'm having trouble with my `.htaccess` redirects.
I need to forward all URLs to the non www version of the URL using HTTPS and also forward any non secure URLs to HTTPS too. In both cases I need to keep the full URL
I currently have these rules which almost work as I want but they seem to redirect any www traffic to ... | Try this:
```
RewriteCond %{HTTPS} off
RewriteRule ^(.*) https://example.com/$1 [R=301,L]
RewriteCond %{HTTP_HOST} ^www.example.com [NC]
RewriteRule ^(.*)$ https://example.com/$1 [L,R=301]
``` |
122,556 | <p>Regarding product availability, there's that little something I don't quite understand.</p>
<p>We have an online store with a few thousand products. Some of those products we don't have "in stock" for proper say, as we have a few local distributors where we can place an order, we receive the stock ~2-7 days later t... | [
{
"answer_id": 122583,
"author": "Tony McCreath",
"author_id": 4322,
"author_profile": "https://webmasters.stackexchange.com/users/4322",
"pm_score": 2,
"selected": false,
"text": "<p>That's an interesting one. The guidelines I found were here:</p>\n\n<p><a href=\"https://support.google.... | 2019/04/29 | [
"https://webmasters.stackexchange.com/questions/122556",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/18484/"
] | Regarding product availability, there's that little something I don't quite understand.
We have an online store with a few thousand products. Some of those products we don't have "in stock" for proper say, as we have a few local distributors where we can place an order, we receive the stock ~2-7 days later then we shi... | That's an interesting one. The guidelines I found were here:
<https://support.google.com/merchants/answer/6324448?hl=en>
*Set availability to out of stock when your product is temporarily unavailable in the target country. If we find that a product is "out of stock" on your landing page, but in stock in your product ... |
122,561 | <p>I have just copy and pasted a rewrite rule for a redirect from some website. It contains:</p>
<pre><code>^(.*)
</code></pre>
<p>I want to know what it means. Why is it so complicated? Can it be simplified?</p>
<p>The whole <code>.htaccess</code> file currently contains:</p>
<pre><code># turn on the rewrite engi... | [
{
"answer_id": 122569,
"author": "MrWhite",
"author_id": 1243,
"author_profile": "https://webmasters.stackexchange.com/users/1243",
"pm_score": 3,
"selected": true,
"text": "<p>As @dan mentioned in comments, this is a <a href=\"https://en.wikipedia.org/wiki/Regular_expression\" rel=\"nof... | 2019/04/30 | [
"https://webmasters.stackexchange.com/questions/122561",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/71087/"
] | I have just copy and pasted a rewrite rule for a redirect from some website. It contains:
```
^(.*)
```
I want to know what it means. Why is it so complicated? Can it be simplified?
The whole `.htaccess` file currently contains:
```
# turn on the rewrite engine
RewriteEngine On
# unconditional redirect to the new... | As @dan mentioned in comments, this is a [regular expression](https://en.wikipedia.org/wiki/Regular_expression) ("regex" for short and often referred to as a "pattern" in Apache docs). Specifically, Apache uses the PCRE (Perl Compatible Regular Expressions) flavour of regex.
The first argument to the `RewriteRule` dir... |
122,640 | <p>I am building a open blog website which users can create posts. Whenever a user creates post, it is being inserted to database and fetching its heading from database in the main page. Whenever a visitor clicks the heading of some post, it goes to a URL like </p>
<pre><code>example.com?subject=places_to_visit_in_new... | [
{
"answer_id": 122652,
"author": "Shahzeb Qureshi",
"author_id": 99951,
"author_profile": "https://webmasters.stackexchange.com/users/99951",
"pm_score": 2,
"selected": true,
"text": "<p>The url <code>example.com/places_to_visit_in_new_york</code>\n can be created dynamically depending o... | 2019/05/03 | [
"https://webmasters.stackexchange.com/questions/122640",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/100298/"
] | I am building a open blog website which users can create posts. Whenever a user creates post, it is being inserted to database and fetching its heading from database in the main page. Whenever a visitor clicks the heading of some post, it goes to a URL like
```
example.com?subject=places_to_visit_in_new_york
```
Al... | The url `example.com/places_to_visit_in_new_york`
can be created dynamically depending on the framework/language your website is based on. This means that you don't have to create separate files for seperate urls just like using the query string format.
Consider the example of Wordpress where you have the option of ... |
122,669 | <p>I've set up an email service, for a domain, <code>abc.com</code>
I have tested an confirmed.</p>
<p>Using dig it returns
<code>abc.com. 299 IN MX 1 cencor.</code></p>
<p>Now, I'm trying to run a second domain via the same service:
<code>def.com</code>.
Ive set the mx on def.com to point to <code>abc.com</code>. </... | [
{
"answer_id": 122670,
"author": "Maximillian Laumeister",
"author_id": 54214,
"author_profile": "https://webmasters.stackexchange.com/users/54214",
"pm_score": 1,
"selected": false,
"text": "<p>The MX record tells the email sender which domain to do an <code>A</code> record lookup on to... | 2019/05/04 | [
"https://webmasters.stackexchange.com/questions/122669",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/100332/"
] | I've set up an email service, for a domain, `abc.com`
I have tested an confirmed.
Using dig it returns
`abc.com. 299 IN MX 1 cencor.`
Now, I'm trying to run a second domain via the same service:
`def.com`.
Ive set the mx on def.com to point to `abc.com`.
Using dig, it returns:
`def.com. 299 IN MX 1 abc.com.`
Howev... | `MX` records provide the address of the `SMTP` servers that handle incoming email for a domain. You don't have an incoming SMTP server available at `abc.com:25` (it is at `cencor:25`), and `MX` records can not be daisy-chained in the way mentioned.
You should set-up both MX records to return the same response e.g
```... |
122,720 | <p>Some of my MediaWiki web pages has the <code><pre></code> HTML tag and I need to replace generally all <code><pre></code> tags in the <code><code></code> tags.</p>
<p>How to find all web pages with a certain HTML tag?</p>
| [
{
"answer_id": 122723,
"author": "gael",
"author_id": 100276,
"author_profile": "https://webmasters.stackexchange.com/users/100276",
"pm_score": 1,
"selected": false,
"text": "<p>You could easily export the table containing your pages content in phpmyadmin.</p>\n\n<p>For the export, sele... | 2019/05/07 | [
"https://webmasters.stackexchange.com/questions/122720",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/-1/"
] | Some of my MediaWiki web pages has the `<pre>` HTML tag and I need to replace generally all `<pre>` tags in the `<code>` tags.
How to find all web pages with a certain HTML tag? | **Take a backup first.**
Using phpMyAdmin (or similar) you can run an SQL query using [REPLACE](https://www.w3schools.com/sql/func_sqlserver_replace.asp) to update the tags in place. The ['text' table holds the pages for MediaWiki](https://www.mediawiki.org/wiki/Manual:Text_table) in the 'old\_text' field.
First run:... |
122,722 | <p>I am trying to monitor the number of clicks on a ebanner on a website and this ebanner links to an external website. </p>
<p>For example, if I'm on abc.com, clicking on the ebanner leaves abc and goes into xyz.com. Google analytics cannot track this event because I do not have the GA access for xyz.com. Hence, I've... | [
{
"answer_id": 122728,
"author": "Lakshmi Reddy",
"author_id": 100384,
"author_profile": "https://webmasters.stackexchange.com/users/100384",
"pm_score": 0,
"selected": false,
"text": "<p>use UTM parameter which will get track in Google Analytics</p>\n"
},
{
"answer_id": 122730,
... | 2019/05/07 | [
"https://webmasters.stackexchange.com/questions/122722",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/98598/"
] | I am trying to monitor the number of clicks on a ebanner on a website and this ebanner links to an external website.
For example, if I'm on abc.com, clicking on the ebanner leaves abc and goes into xyz.com. Google analytics cannot track this event because I do not have the GA access for xyz.com. Hence, I've created a... | You can use Virtual Page Views, sending a "pageview" event to Google Analytics of a page that doesn't actually exist. You can do it this way:
```
ga('send', 'pageview', '/virtualpageview/nameofthepage')
```
This will make the pageview appears on your Google Analytics and you can use it to create Goals and/or Events. |
122,861 | <p>Programs:Opencart 2.3.0.2, journal 2.</p>
<p>Hello, I have a youtube clip on a banner that I have placed on my websides Home-menu. I want this clip to start playing as soon as someone opens the webpage.
I know that to make a youtube clip play automatically on a productpage you change the autoplay variable from 0 to... | [
{
"answer_id": 122864,
"author": "gael",
"author_id": 100276,
"author_profile": "https://webmasters.stackexchange.com/users/100276",
"pm_score": 1,
"selected": false,
"text": "<p>You can pass the variable in your YouTube Link this way:</p>\n\n<pre><code>http://www.youtube.com/embed/Video... | 2019/05/14 | [
"https://webmasters.stackexchange.com/questions/122861",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/100533/"
] | Programs:Opencart 2.3.0.2, journal 2.
Hello, I have a youtube clip on a banner that I have placed on my websides Home-menu. I want this clip to start playing as soon as someone opens the webpage.
I know that to make a youtube clip play automatically on a productpage you change the autoplay variable from 0 to 1, but I ... | You can pass the variable in your YouTube Link this way:
```
http://www.youtube.com/embed/VideoIDhere?autoplay=1&mute=1
```
Don't forget the `mute=1` argument for the [2018 Autoplay Policy Changes as described on this answer](https://stackoverflow.com/a/50272974/3623080). |
122,893 | <p>I just checked an .htaccess file with some custom redirects. There are two redirects I don't fully understand:</p>
<pre><code>RedirectMatch 301 ^/news/([0-9]+)-(.*) /blog
RedirectMatch 301 ^/news/([a-z]+)-(.*)/$ /blog/$1
</code></pre>
<p>Both redirects are redirecting the subfolders or pages inside the <code>news<... | [
{
"answer_id": 122898,
"author": "MrWhite",
"author_id": 1243,
"author_profile": "https://webmasters.stackexchange.com/users/1243",
"pm_score": 3,
"selected": false,
"text": "<p>These are <em>regular expressions</em> (\"regex\" for short). Specifically, Apache uses PCRE (Perl Compatible ... | 2019/05/15 | [
"https://webmasters.stackexchange.com/questions/122893",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/64193/"
] | I just checked an .htaccess file with some custom redirects. There are two redirects I don't fully understand:
```
RedirectMatch 301 ^/news/([0-9]+)-(.*) /blog
RedirectMatch 301 ^/news/([a-z]+)-(.*)/$ /blog/$1
```
Both redirects are redirecting the subfolders or pages inside the `news` directory but I can't fully gr... | The patterns you're confused about are nothing but [regular expression](https://en.wikipedia.org/wiki/Regular_expression) functions.
The `([0-9]+)-(.*)` and `([a-z]+)-(.*)` patterns each have two groups in them. Groups in regex are classified as anything within `()`.
The contents of the group are then matched according... |
122,950 | <p>One of my clients needs to publish around 1000+ 100% copied articles on his website. <strong>Legally, he has already got permission from the article owner</strong>. The purpose of these articles is, keeping the users are on the website for a long time. </p>
<p>He doesn't want organic traffic for this copied article... | [
{
"answer_id": 122953,
"author": "gael",
"author_id": 100276,
"author_profile": "https://webmasters.stackexchange.com/users/100276",
"pm_score": 4,
"selected": true,
"text": "<p>You can use a rel Canonical to avoid Duplicate content errors on Google.</p>\n\n<p>For each article on your cl... | 2019/05/17 | [
"https://webmasters.stackexchange.com/questions/122950",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/79568/"
] | One of my clients needs to publish around 1000+ 100% copied articles on his website. **Legally, he has already got permission from the article owner**. The purpose of these articles is, keeping the users are on the website for a long time.
He doesn't want organic traffic for this copied articles. But I said these art... | You can use a rel Canonical to avoid Duplicate content errors on Google.
For each article on your client's web site add a meta in head with the url of the origin article.
```
<link rel="canonical" href="https://example.com/article-url" />
```
For the official source, you can check this page :
<https://moz.com/lear... |
122,961 | <p>I am using PHP 7.2 URL Rewrite Rules. i am making 2 links first link is "category.php?inventory_id=" and second links "show-subcategories.php?cat_id" but the result is always the first link is working missing code, please help ...</p>
<p><strong>I have need URL</strong></p>
<pre><code>www.example.com/nokia-1 // ca... | [
{
"answer_id": 122963,
"author": "Rasa Mohamed",
"author_id": 100073,
"author_profile": "https://webmasters.stackexchange.com/users/100073",
"pm_score": 0,
"selected": false,
"text": "<p>Enable mod_rewrite and .htaccess through httpd.conf and then put this code in your <code>.htaccess</c... | 2019/05/18 | [
"https://webmasters.stackexchange.com/questions/122961",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/100671/"
] | I am using PHP 7.2 URL Rewrite Rules. i am making 2 links first link is "category.php?inventory\_id=" and second links "show-subcategories.php?cat\_id" but the result is always the first link is working missing code, please help ...
**I have need URL**
```
www.example.com/nokia-1 // category url
www.example.com/nokia... | The reason that it isn't working is that `(\d+)$` matches any URL that ends in digits. All of your URLs end in digits.
You have a couple other potential problems with your rewrite rules as well.
* I'm not sure why you would want `RewriteCond %{SERVER_PORT} 80` which means that the rewrite rule will only work for HTT... |
123,027 | <p>On my website I had a wordpress permalink structure that was as follows:</p>
<pre><code>http://example.com/2012/03/post-name/
</code></pre>
<p>Having read in many places that a simpler permalink structure could boost SEO rankings, I changed the structure and created permanent redirects to the following:</p>
<pre>... | [
{
"answer_id": 123029,
"author": "byte me",
"author_id": 79976,
"author_profile": "https://webmasters.stackexchange.com/users/79976",
"pm_score": 1,
"selected": false,
"text": "<p>I'ld suggest making a list of all your old urls and mapping them all with a permanent (301) redirect to thei... | 2019/05/21 | [
"https://webmasters.stackexchange.com/questions/123027",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/57871/"
] | On my website I had a wordpress permalink structure that was as follows:
```
http://example.com/2012/03/post-name/
```
Having read in many places that a simpler permalink structure could boost SEO rankings, I changed the structure and created permanent redirects to the following:
```
http://example.com/post-name/
... | As far as I know, it's normal to lose some of the SEO juice, even when implementing 301 redirects. When you switch to HTTPS (which is a different domain for Google than the original HTTP), you can also expect to lose some ranking in the beginning. However, here, the idea is that, since HTTPS is preferred, the change wi... |
123,043 | <p>Google is constantly crawling my site as it is constantly updated but the <code>title</code> tag and meta description are not updated in the SERP results.</p>
<p>So, I checked the crawled page and it is not crawling the updated content but the old content. I have updated the content and forced a recrawl it but from... | [
{
"answer_id": 123055,
"author": "ubershmekel",
"author_id": 84024,
"author_profile": "https://webmasters.stackexchange.com/users/84024",
"pm_score": 1,
"selected": false,
"text": "<p>It's hard to judge without more information. There could be a CDN in the way you need to flush. Your cac... | 2019/05/22 | [
"https://webmasters.stackexchange.com/questions/123043",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/100775/"
] | Google is constantly crawling my site as it is constantly updated but the `title` tag and meta description are not updated in the SERP results.
So, I checked the crawled page and it is not crawling the updated content but the old content. I have updated the content and forced a recrawl it but from where did they find ... | It's hard to judge without more information. There could be a CDN in the way you need to flush. Your cache headers might be causing Google to cache results. I would also make sure no meta tags or "canonical" tags are in the body. A test for these issues could be.
```
curl -v https://example.com/yourpage
``` |
123,100 | <p>I have a website with around 100K URLs. I want to disallow crawling for all URLs that have an ID with this pattern:</p>
<p><code>www.example.com/node/sport/category/id</code></p>
<p>but not those without the ID:</p>
<p><code>www.example.com/node/sport/category/</code></p>
<p>How can I approach this in a <em>robo... | [
{
"answer_id": 123102,
"author": "Shahzeb Qureshi",
"author_id": 99951,
"author_profile": "https://webmasters.stackexchange.com/users/99951",
"pm_score": -1,
"selected": false,
"text": "<p>To achieve this your <code>robots.txt</code> can contain the following lines</p>\n\n<pre><code>User... | 2019/05/26 | [
"https://webmasters.stackexchange.com/questions/123100",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/100514/"
] | I have a website with around 100K URLs. I want to disallow crawling for all URLs that have an ID with this pattern:
`www.example.com/node/sport/category/id`
but not those without the ID:
`www.example.com/node/sport/category/`
How can I approach this in a *robots.txt*?
**UPDATE:**
the ID are some numbers like `/... | You don't have a lot of great options. *robots.txt* rules are usually prefix matching.
One option would be to change all of your URLs that end in an id so that they have a common prefix: `/node/sport/category/` would get crawled but `/private/node/sport/category/id` would not because you would add `Disallow: /private... |
123,114 | <p>I have a website hosted on SiteGround. Their CPanel can be served via http or https ( <a href="http://cpanel.us261.siteground.us/login/" rel="nofollow noreferrer">http://cpanel.us261.siteground.us/login/</a> ). In my case it is not working via https; the support says it's because I don't have a dedicated IP.</p>
<p... | [
{
"answer_id": 123102,
"author": "Shahzeb Qureshi",
"author_id": 99951,
"author_profile": "https://webmasters.stackexchange.com/users/99951",
"pm_score": -1,
"selected": false,
"text": "<p>To achieve this your <code>robots.txt</code> can contain the following lines</p>\n\n<pre><code>User... | 2019/05/27 | [
"https://webmasters.stackexchange.com/questions/123114",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/100862/"
] | I have a website hosted on SiteGround. Their CPanel can be served via http or https ( <http://cpanel.us261.siteground.us/login/> ). In my case it is not working via https; the support says it's because I don't have a dedicated IP.
Question: how is it safe to use CPanel over HTTP? I understand they are using something ... | You don't have a lot of great options. *robots.txt* rules are usually prefix matching.
One option would be to change all of your URLs that end in an id so that they have a common prefix: `/node/sport/category/` would get crawled but `/private/node/sport/category/id` would not because you would add `Disallow: /private... |
123,447 | <p>Recently I <a href="https://www.w3schools.com/tags/att_link_media.asp" rel="nofollow noreferrer">read</a> about <code>media</code> attribute for <code><link></code> tag. Immediately I thought it would be a great idea to separate all the media queries into separate files and link them only when the website is o... | [
{
"answer_id": 123454,
"author": "Simon Hayter",
"author_id": 20604,
"author_profile": "https://webmasters.stackexchange.com/users/20604",
"pm_score": 2,
"selected": true,
"text": "<p>It's pointless due to the fact all style-sheets will be downloaded on all devices, even if they are abov... | 2019/06/13 | [
"https://webmasters.stackexchange.com/questions/123447",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/88116/"
] | Recently I [read](https://www.w3schools.com/tags/att_link_media.asp) about `media` attribute for `<link>` tag. Immediately I thought it would be a great idea to separate all the media queries into separate files and link them only when the website is opened on mobile device not to block the dom render on desktop etc. S... | It's pointless due to the fact all style-sheets will be downloaded on all devices, even if they are above the `max-width:`, so, mobile.css is downloaded on desktop, and desktop will be downloaded on mobile, as well as every other CSS script. Therefore your increasing server-side requests which in turn will slow down th... |
123,522 | <p>For search engines, mostly Google, which is better:</p>
<pre><code>example.com/keyword1/keyword2
</code></pre>
<p>or:</p>
<pre><code>example.com/keyword1-keyword2
</code></pre>
<p>This specific page has to rank high for keyword 2, and possibly keyword 1 too.</p>
| [
{
"answer_id": 123521,
"author": "Yiemorx",
"author_id": 101353,
"author_profile": "https://webmasters.stackexchange.com/users/101353",
"pm_score": 1,
"selected": true,
"text": "<p>I believe if you don't renew the domain they put it on offer then someone else can claim it. So in short th... | 2019/06/17 | [
"https://webmasters.stackexchange.com/questions/123522",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/38359/"
] | For search engines, mostly Google, which is better:
```
example.com/keyword1/keyword2
```
or:
```
example.com/keyword1-keyword2
```
This specific page has to rank high for keyword 2, and possibly keyword 1 too. | I believe if you don't renew the domain they put it on offer then someone else can claim it. So in short they keep the domain on there service.(I could be wrong) |
123,584 | <p>We are revisiting our internal linking strategy at my workplace.</p>
<p>The current implementation takes a bunch links and puts them on a number of pages that are reachable from the header. Some links appear more often than others. </p>
<p>Consider these two cases:</p>
<p><strong>Case #1</strong></p>
<p>Source p... | [
{
"answer_id": 123653,
"author": "Alec Sharratt",
"author_id": 101464,
"author_profile": "https://webmasters.stackexchange.com/users/101464",
"pm_score": 1,
"selected": false,
"text": "<p>You can link from anywhere so long as the page being linked to is relevant to the content and contex... | 2019/06/20 | [
"https://webmasters.stackexchange.com/questions/123584",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/101426/"
] | We are revisiting our internal linking strategy at my workplace.
The current implementation takes a bunch links and puts them on a number of pages that are reachable from the header. Some links appear more often than others.
Consider these two cases:
**Case #1**
Source page: Mens summer shorts
```
Internal link t... | You can link from anywhere so long as the page being linked to is relevant to the content and context of its location. Using keyword rich anchor text is a ranking factor but should be varied to avoid other potential SEO issues.
In both cases you have shown I can see no intrinsic problem with the links, so long as they... |
123,650 | <p>Our company's domain already has a <code>google-site-verification=</code> TXT record on it, so I guess somebody else set up Google Search Console at one point. However, I'm not sure who in the company that might be.</p>
<p>I need to get access into Search Console for our domain, but I would rather not lock out some... | [
{
"answer_id": 123651,
"author": "Luis Alberto Barandiaran",
"author_id": 100148,
"author_profile": "https://webmasters.stackexchange.com/users/100148",
"pm_score": 2,
"selected": false,
"text": "<p>A simple workaround is to use a different form of identification. Google enables you to v... | 2019/06/24 | [
"https://webmasters.stackexchange.com/questions/123650",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/11230/"
] | Our company's domain already has a `google-site-verification=` TXT record on it, so I guess somebody else set up Google Search Console at one point. However, I'm not sure who in the company that might be.
I need to get access into Search Console for our domain, but I would rather not lock out somebody else in the proc... | Adding multiple `TXT` records will function correctly. You can see some high profile companies doing that e.g. `microsoft.com`
```
$ dig -t txt @8.8.8.8 microsoft.com
; <<>> DiG 9.10.6 <<>> -t txt @8.8.8.8 microsoft.com
; (1 server found)
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: N... |
123,685 | <p>I need to add following Apache redirect rules to <code>.htaccess</code>:</p>
<p><code>http://www.example.com</code> to be redirected to <code>http://www.onemoreexample.com</code> </p>
<p>but <code>http://www.example.com/support</code> should not be redirected.</p>
<p>To achieve this, I added the redirect rules be... | [
{
"answer_id": 123693,
"author": "Abhishek Gurjar",
"author_id": 68969,
"author_profile": "https://webmasters.stackexchange.com/users/68969",
"pm_score": 0,
"selected": false,
"text": "<p>Add a <code>/?</code> to consider optional trailing slash as well in rule.</p>\n\n<pre><code>Rewrite... | 2019/06/27 | [
"https://webmasters.stackexchange.com/questions/123685",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/101578/"
] | I need to add following Apache redirect rules to `.htaccess`:
`http://www.example.com` to be redirected to `http://www.onemoreexample.com`
but `http://www.example.com/support` should not be redirected.
To achieve this, I added the redirect rules below:
```
RewriteCond %{REQUEST_URI} !^/support/
RewriteRule ^(.*)... | In isolation, the redirect directives themselves are OK, so there must be something else going on...
Having looked at your `.htaccess` file as a whole, with the redirect directives in-place, I'm surprised your redirect directives are actually doing anything(?!), since you've put them in the wrong place at the end of t... |
123,704 | <p><strong>My URL</strong> = <code>https://mydomainurl.com/example-post</code></p>
<p><strong>URL B</strong> = <code>https://mirroringurl.com/cdn/example-post</code></p>
<p>All HTML code at "URL B" is the same as the one at my URL, and when I change anything at my site, "URL B" will be refreshed to be again the same ... | [
{
"answer_id": 123725,
"author": "WebElaine",
"author_id": 88215,
"author_profile": "https://webmasters.stackexchange.com/users/88215",
"pm_score": 3,
"selected": true,
"text": "<p>The good news is, Google should be able to recognize that you published the content first, meaning their co... | 2019/06/27 | [
"https://webmasters.stackexchange.com/questions/123704",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/101281/"
] | **My URL** = `https://mydomainurl.com/example-post`
**URL B** = `https://mirroringurl.com/cdn/example-post`
All HTML code at "URL B" is the same as the one at my URL, and when I change anything at my site, "URL B" will be refreshed to be again the same as my site (but not immediately, I do not know after how long "UR... | The good news is, Google should be able to recognize that you published the content first, meaning their copy is of less value. Be sure that you have some way to verify when your changes are published, such as pinging Google automatically when pages are updated, or marking last-updated timestamps on all of your pages, ... |
123,719 | <p>What are the options to share unfinished web-page with a customer without allowing third-party to see the work in progress when developer has control over the web-server? I could come up with following:</p>
<ol>
<li>Configure web-server to listen on some random port. For example, this means that web-site is accessi... | [
{
"answer_id": 123720,
"author": "gael",
"author_id": 100276,
"author_profile": "https://webmasters.stackexchange.com/users/100276",
"pm_score": 3,
"selected": false,
"text": "<p>If you know your customer IP Address, the safer way to share unfinished web-page is to deny access to everyon... | 2019/06/28 | [
"https://webmasters.stackexchange.com/questions/123719",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/46458/"
] | What are the options to share unfinished web-page with a customer without allowing third-party to see the work in progress when developer has control over the web-server? I could come up with following:
1. Configure web-server to listen on some random port. For example, this means that web-site is accessible from `htt... | Here are some answers, in order:
1. There exist only 65,535 ports, so this is a very small space to hide in, relatively speaking. Someone could enumerate your ports without much effort, so this solution is a no-go.
2. Using a key as part of the URL is a much better idea. There exist more than 200 trillion 13-character... |
123,784 | <p>I have a complex class on my server side, for example class <code>Car</code> has Properties <code>Make</code> and <code>Model</code>.</p>
<p>There is a form that user can fill (<code>Make</code> and <code>Model</code> are input textboxes), then I pass all these inputs as search parameters to the server. The search ... | [
{
"answer_id": 123821,
"author": "Georg Keferböck",
"author_id": 76447,
"author_profile": "https://webmasters.stackexchange.com/users/76447",
"pm_score": 3,
"selected": true,
"text": "<p>Generally speaking, \"hyphen\" is prefered over \"underscore\" - I never had anyone use \"periods\" b... | 2019/07/03 | [
"https://webmasters.stackexchange.com/questions/123784",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/101020/"
] | I have a complex class on my server side, for example class `Car` has Properties `Make` and `Model`.
There is a form that user can fill (`Make` and `Model` are input textboxes), then I pass all these inputs as search parameters to the server. The search parameters are passed in QueryString.
I use jQuery to serialize ... | Generally speaking, "hyphen" is prefered over "underscore" - I never had anyone use "periods" before, but for the sake of this question, I recommend hyphens over periods. It is more a readability thing. However, it will neither make or break your site. The only thing that matters when it comes to SEO is that you have a... |
123,806 | <p>Sometime back due to a bug on our website, we end up exposing below URLs to Google. By the time realised and fixed this issue on production. They were crawled by Google. </p>
<pre><code>/10695-Dilemma%20in%20purchasing%20a%20new%20car.-p2.html
</code></pre>
<p>actual url</p>
<pre><code>/10695-dilemma-in-purchasin... | [
{
"answer_id": 123815,
"author": "Georg Keferböck",
"author_id": 76447,
"author_profile": "https://webmasters.stackexchange.com/users/76447",
"pm_score": 2,
"selected": false,
"text": "<p>You should be able to say in Webmaster tool that you have “Fixed” the issue. </p>\n\n<p>Before you d... | 2019/07/04 | [
"https://webmasters.stackexchange.com/questions/123806",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/92680/"
] | Sometime back due to a bug on our website, we end up exposing below URLs to Google. By the time realised and fixed this issue on production. They were crawled by Google.
```
/10695-Dilemma%20in%20purchasing%20a%20new%20car.-p2.html
```
actual url
```
/10695-dilemma-in-purchasing-a-new-car-p2.html
```
After a fix... | You should be able to say in Webmaster tool that you have “Fixed” the issue.
Before you do that, make sure the %20 URLs do not appear in your website, that there is NO internal link within your website you still links to that URL. Google does not just crawl URLs in your sitemap and uploaded to Webmaster tools but cra... |
123,881 | <p>I know this is a super basic question but I've read about 100 webpages and tutorials and haven't been able to figure things out.</p>
<p>So, I've bought a domain name and connected to my external ip address. The problem is, that just directs to my dd-wrt router home page. Not super helpful. I have nginx set up on my... | [
{
"answer_id": 123854,
"author": "Georg Keferböck",
"author_id": 76447,
"author_profile": "https://webmasters.stackexchange.com/users/76447",
"pm_score": 0,
"selected": false,
"text": "<p>Please use the file extension. You need it - *.html, *.asp, *.pdf or whatever it may be - if that is... | 2019/07/07 | [
"https://webmasters.stackexchange.com/questions/123881",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/101789/"
] | I know this is a super basic question but I've read about 100 webpages and tutorials and haven't been able to figure things out.
So, I've bought a domain name and connected to my external ip address. The problem is, that just directs to my dd-wrt router home page. Not super helpful. I have nginx set up on my ubuntu ma... | You have to use a URL that resolves to the document.
`canonical` is a means to determine which of some duplicate URLs is the "real" one.
It is not a means to arbitrarily customise the URL that shows up in search results.
If you want to use a URL with no file extension in it as the canonical one, then you can… so lon... |
123,938 | <p>How can I disable a code from GTM on homepage? I want that code only on product pages.</p>
<p>Thank you</p>
| [
{
"answer_id": 123941,
"author": "gael",
"author_id": 100276,
"author_profile": "https://webmasters.stackexchange.com/users/100276",
"pm_score": 3,
"selected": true,
"text": "<p>The easyest way not to display Google Tag Manager on Homepage is to check with php.</p>\n\n<p>You can insert G... | 2019/07/11 | [
"https://webmasters.stackexchange.com/questions/123938",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/101875/"
] | How can I disable a code from GTM on homepage? I want that code only on product pages.
Thank you | The easyest way not to display Google Tag Manager on Homepage is to check with php.
You can insert GTM in the `header.php` file of your `child-theme` like this:
```
<?php
if (!is_home() && !is_front_page()) {
echo 'your GTM code here';
}
?>
```
Will display GTM everywhere but on home (blog posts homepage) no... |
123,987 | <p>Why has GoogleBot started last Friday to do POST-requests on a page. I can see in the logfile (just an example, had about 10.000 entries over the weekend - the url in the log is changed):</p>
<pre><code>66.249.79.55 - - [15/Jul/2019:08:34:53 +0000] "POST /Contact/ HTTP/1.1" 200 16730 "https://www.example.com/Contac... | [
{
"answer_id": 123988,
"author": "Georg Keferböck",
"author_id": 76447,
"author_profile": "https://webmasters.stackexchange.com/users/76447",
"pm_score": 3,
"selected": true,
"text": "<p>Yes, GoogleBot is capable and does send POST requests (if it is safe - according to Google) - details... | 2019/07/15 | [
"https://webmasters.stackexchange.com/questions/123987",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/52771/"
] | Why has GoogleBot started last Friday to do POST-requests on a page. I can see in the logfile (just an example, had about 10.000 entries over the weekend - the url in the log is changed):
```
66.249.79.55 - - [15/Jul/2019:08:34:53 +0000] "POST /Contact/ HTTP/1.1" 200 16730 "https://www.example.com/Contact/" "Mozilla/5... | Yes, GoogleBot is capable and does send POST requests (if it is safe - according to Google) - details [here](https://webmasters.googleblog.com/2011/11/get-post-and-safely-surfacing-more-of.html).
In the same article, it talks about blocking the URL via robots.txt - which is a fair approach, given your contact URL isn... |
124,037 | <p>I am working on a site that has hundreds of product pages. Each product page has up to 10 images, 1 main image, and the rest as thumbnails that load in as the main image when clicked.</p>
<p>The thumbnails have this code in the page:</p>
<pre><code><a href="/image1.jpg" class="thumb" rel="nofollow">
<... | [
{
"answer_id": 124042,
"author": "Georg Keferböck",
"author_id": 76447,
"author_profile": "https://webmasters.stackexchange.com/users/76447",
"pm_score": 1,
"selected": false,
"text": "<p>No, you can leave it as it is - this is a very common example of thumbnail links to larger images (i... | 2019/07/17 | [
"https://webmasters.stackexchange.com/questions/124037",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/100080/"
] | I am working on a site that has hundreds of product pages. Each product page has up to 10 images, 1 main image, and the rest as thumbnails that load in as the main image when clicked.
The thumbnails have this code in the page:
```
<a href="/image1.jpg" class="thumb" rel="nofollow">
<img src="/image1.jpg" />
</a>... | You should never use `nofollow` on internal links. Nofollow is meant to mark links that you don't trust so that Google won't pass PageRank to untrusted sites. Since you trust your own site, nofollow isn't the right tool for the job.
Using `nofollow` never preserves any PageRank for your own site. Google has said they ... |
124,053 | <p>I'm trying to submit a very simple sitemap (for testing only) to Google Search Console but, unfortunately, I'm constantly receiving the following error message:</p>
<pre><code>╔══════════════╤═════════╤══════════════╤═══════════╤══════════════════╤═════════════════╗
║ Sitemap │ Type │ Submitted │ Last re... | [
{
"answer_id": 124103,
"author": "Georg Keferböck",
"author_id": 76447,
"author_profile": "https://webmasters.stackexchange.com/users/76447",
"pm_score": 2,
"selected": false,
"text": "<p>not sure if that may resolve it, but it says you need to Encode your file using UTF-8 encoding. I do... | 2019/07/18 | [
"https://webmasters.stackexchange.com/questions/124053",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/94066/"
] | I'm trying to submit a very simple sitemap (for testing only) to Google Search Console but, unfortunately, I'm constantly receiving the following error message:
```
╔══════════════╤═════════╤══════════════╤═══════════╤══════════════════╤═════════════════╗
║ Sitemap │ Type │ Submitted │ Last read │ Status ... | not sure if that may resolve it, but it says you need to Encode your file using UTF-8 encoding. I downloaded your file and checked in the [terminal](https://support.apple.com/en-ie/guide/terminal/welcome/mac).
file -I sitemap.txt
([Here](https://cheatsheet.dennyzhang.com/cheatsheet-file-a4) are some useful tips and ... |
124,065 | <p>What is the best method for using multiple Schema.org types for a website? I want to use different structured data types because seem like they are relevant to both <code>Organization</code> and <code>LocalBusiness</code> types. However, I am not sure if that is correct and how Google will interpret the data.</p>
<... | [
{
"answer_id": 124067,
"author": "Mnea",
"author_id": 55353,
"author_profile": "https://webmasters.stackexchange.com/users/55353",
"pm_score": 0,
"selected": false,
"text": "<p>Yoast (plugin for wordpress) does a great job by using @graph and connecting all those lose entities together, ... | 2019/07/18 | [
"https://webmasters.stackexchange.com/questions/124065",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/102030/"
] | What is the best method for using multiple Schema.org types for a website? I want to use different structured data types because seem like they are relevant to both `Organization` and `LocalBusiness` types. However, I am not sure if that is correct and how Google will interpret the data.
For example, if a website is a... | [LocalBusiness](https://schema.org/LocalBusiness) is a sub type of [Organization](https://schema.org/Organization). This means you can merge the details you added for organization into your LocalBusiness and they will still be understood as being part of the Organization. And then not need to duplicate things in a sepa... |
124,070 | <p>I am building a site like the home page of MSN, google news, yahoo. It is basically an aggregation site.</p>
<p>To save the server space, I thought to display image directly from the source without the need to download to my server.</p>
<p>Is there any problem with it? Let say I have 1,000 page views per day.</p>
... | [
{
"answer_id": 124091,
"author": "Shyamin Ayesh",
"author_id": 77217,
"author_profile": "https://webmasters.stackexchange.com/users/77217",
"pm_score": 1,
"selected": false,
"text": "<p>This is a difficult question to answer. It really depend on the websites you used to get images. Some ... | 2019/07/19 | [
"https://webmasters.stackexchange.com/questions/124070",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/79568/"
] | I am building a site like the home page of MSN, google news, yahoo. It is basically an aggregation site.
To save the server space, I thought to display image directly from the source without the need to download to my server.
Is there any problem with it? Let say I have 1,000 page views per day.
Image link will be l... | You are/your server is **not** requesting any images. Your visitors are requesting them, via their browser, using their IP.
Therefore there will be **no** massiv download of images from your IP.
The only thing that could lead to blocking of your domain could be the referer. Each time a browser send a request to a ser... |
124,153 | <p>When I'm checking the Google results for our site's <code>site:example.com</code>, we get lots of index results like</p>
<ul>
<li><code>xyz.example.com</code></li>
<li><code>xyz.example.com/abe</code></li>
<li><code>xyz.example.com/abcds</code></li>
</ul>
<p>How do I disallow this type URL, so they don't show up ... | [
{
"answer_id": 124167,
"author": "ben teber",
"author_id": 98354,
"author_profile": "https://webmasters.stackexchange.com/users/98354",
"pm_score": -1,
"selected": false,
"text": "<p>Try:</p>\n\n<pre><code>User-agent: * \nDisallow: xyz.example.com \n</code></pre>\n\n<p>Or</p>\n\n<pre><co... | 2019/07/23 | [
"https://webmasters.stackexchange.com/questions/124153",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/102135/"
] | When I'm checking the Google results for our site's `site:example.com`, we get lots of index results like
* `xyz.example.com`
* `xyz.example.com/abe`
* `xyz.example.com/abcds`
How do I disallow this type URL, so they don't show up in the search results? | Just include the following in the robots.txt and upload the file in the root folder of your subdomain you want to block from Search Engines. Verify using robot tester in the Search console tool.
```
User-agent: *
Disallow: /
``` |
124,223 | <p>I would like to set up semantic markup for products such as accommodation on a language stay on a site available in fr, en and es.</p>
<p>I wonder if I can have the <code>name</code> of the <code>Product</code> and its <code>description</code> in its 3 languages! Example:</p>
<p>The page in French:</p>
<pre class... | [
{
"answer_id": 124217,
"author": "Filozof666",
"author_id": 97664,
"author_profile": "https://webmasters.stackexchange.com/users/97664",
"pm_score": 1,
"selected": false,
"text": "<p>In that situation it is a Direct session. Since the \"organic\" one has expired, new one is started. I do... | 2019/07/26 | [
"https://webmasters.stackexchange.com/questions/124223",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/86269/"
] | I would like to set up semantic markup for products such as accommodation on a language stay on a site available in fr, en and es.
I wonder if I can have the `name` of the `Product` and its `description` in its 3 languages! Example:
The page in French:
```html
<div>
<div itemtype="http://schema.org/Product" itemsc... | In Google Analytics, outside the Attribution and Multi-Channel Funnel reports, by default the conversion is attributed to the last non-direct source/medium/channel. So in this case the sale will be attributed to organic in the non-MCF reports (e.g. Acquisition -> All Traffic -> Channels).
It is possible to check this ... |
124,259 | <p>I'm looking for the best way to add structured data to a page that shows how to play a chord on the guitar, <a href="https://www.fachords.com/guitar-chords/Cmaj-guitar-chord-chart/" rel="nofollow noreferrer">like this one</a>.</p>
<p>I think that the best schema would be <code>SheetMusic</code>, that is a direct ch... | [
{
"answer_id": 124267,
"author": "Σπύρος Γούλας",
"author_id": 89138,
"author_profile": "https://webmasters.stackexchange.com/users/89138",
"pm_score": -1,
"selected": false,
"text": "<p>Take a look at <a href=\"https://schema.org/CreativeWork\" rel=\"nofollow noreferrer\">creative work ... | 2019/07/29 | [
"https://webmasters.stackexchange.com/questions/124259",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/102255/"
] | I'm looking for the best way to add structured data to a page that shows how to play a chord on the guitar, [like this one](https://www.fachords.com/guitar-chords/Cmaj-guitar-chord-chart/).
I think that the best schema would be `SheetMusic`, that is a direct child of `CreativeWork`. The descriptions says "Printed musi... | You can use [HowTo schema](https://developers.google.com/search/docs/data-types/how-to).
“How-to” snippets aim to provide step-by-step instructions directly in the SERPs for instruction-based queries.
But before adding this schema, you need to add these instructions on your page.
Example -
>
> Step 1 - C Major Cho... |
124,266 | <p>I have noticed that google has started to show little images next to search results on mobile devices. The first photo I have displayed on my website is my logo. Currently this is the image that is being displayed. It doesn't look good. My logo isn't square so it crops it and looks bad. </p>
<p>I am assuming that t... | [
{
"answer_id": 124269,
"author": "grg",
"author_id": 43638,
"author_profile": "https://webmasters.stackexchange.com/users/43638",
"pm_score": 1,
"selected": false,
"text": "<p>Google mobile search results show your website’s <strong>favicon</strong>. You can add your favicon at <code>/fa... | 2019/07/29 | [
"https://webmasters.stackexchange.com/questions/124266",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/102261/"
] | I have noticed that google has started to show little images next to search results on mobile devices. The first photo I have displayed on my website is my logo. Currently this is the image that is being displayed. It doesn't look good. My logo isn't square so it crops it and looks bad.
I am assuming that there is so... | Old question but must be answered completely. It's very disappointing that it has not been answered in almost a year!
Those images come from either your:
1. Twitter card image or
2. Facebook opengraph image
I am not 100% from which one, but I am 100% it is from one of the two, or at least the first image that Google... |
124,298 | <p>Google Search Console and Mobile-Friendly Test both give me the following two warnings for my Wordpress based website:</p>
<ul>
<li>Content wider than screen</li>
<li>Clickable elements too close together</li>
</ul>
<p>The screenshot that these sites provide of my website completely looks broken as if no CSS was a... | [
{
"answer_id": 124326,
"author": "ray",
"author_id": 102320,
"author_profile": "https://webmasters.stackexchange.com/users/102320",
"pm_score": 2,
"selected": false,
"text": "<p>First of all, thank you for those who tried to pull me out of this situation.</p>\n\n<p>After trying different... | 2019/07/31 | [
"https://webmasters.stackexchange.com/questions/124298",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/102320/"
] | Google Search Console and Mobile-Friendly Test both give me the following two warnings for my Wordpress based website:
* Content wider than screen
* Clickable elements too close together
The screenshot that these sites provide of my website completely looks broken as if no CSS was applied.
Many solutions to this pro... | First of all, thank you for those who tried to pull me out of this situation.
After trying different things with no success, (Except for switching the wordpress theme that uses NO javascript, which always magically solves the problem for some reason), I finally ended up looking at the plugin called "SG Optimizer" whic... |
124,342 | <p>Who is the <code>author</code> of <code>AggregatedRating</code> if the ratings are added by me, but they actually come from Google and Apple and maybe some other places?</p>
<p>The documentation does not give any explanation.</p>
<p>So if I added the JSON-LD there, am I the author? It comes from the app store so i... | [
{
"answer_id": 124382,
"author": "WSU",
"author_id": 100753,
"author_profile": "https://webmasters.stackexchange.com/users/100753",
"pm_score": 2,
"selected": false,
"text": "<p>In short, yes, it does impact the SEO. It's hard to quantify how much but if you overdo your keywords, it migh... | 2019/08/03 | [
"https://webmasters.stackexchange.com/questions/124342",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/102353/"
] | Who is the `author` of `AggregatedRating` if the ratings are added by me, but they actually come from Google and Apple and maybe some other places?
The documentation does not give any explanation.
So if I added the JSON-LD there, am I the author? It comes from the app store so is the author the app store(s)? Or is th... | In short, yes, it does impact the SEO. It's hard to quantify how much but if you overdo your keywords, it might come off as stuffing and hurt your rankings.
There is a debate as to what's the best keyword density. [Yoast recommends](https://yoast.com/academy/seo-copywriting-training/keyphrase-density/) a density of 0.... |
124,417 | <p>I am trying to decrease the loading time of my website which is hosted in <a href="https://www.bluehost.com/" rel="nofollow noreferrer">Bluehost</a>. So when I check the performance scores via <a href="https://gtmetrix.com" rel="nofollow noreferrer">GTmetrix</a> under YSlow section it mention to "Add expire headers"... | [
{
"answer_id": 124423,
"author": "Evgeniy",
"author_id": 43910,
"author_profile": "https://webmasters.stackexchange.com/users/43910",
"pm_score": 2,
"selected": false,
"text": "<p>No, you aren't able to manage headers of files you don't host by your own. The single way to manage headers ... | 2019/08/07 | [
"https://webmasters.stackexchange.com/questions/124417",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/102476/"
] | I am trying to decrease the loading time of my website which is hosted in [Bluehost](https://www.bluehost.com/). So when I check the performance scores via [GTmetrix](https://gtmetrix.com) under YSlow section it mention to "Add expire headers" for four static components as below.
>
> Add Expires headers
>
>
>
``... | As @Evgeniy has already covered in his answer, in order to add HTTP response headers to resources external to your site, you need to copy these resources locally - to a server that you control - so you can send the HTTP response header as part of the HTTP response.
However, whether you should do this or not is another... |
124,443 | <p>I'm always a bit confused about hreflang and domain. I have the following in mind. </p>
<pre><code>Current situation:
examp.eu (english) hreflang="en"
examp.be (dutch) hreflang="nl-be" hreflang="nl-nl"
</code></pre>
<p>Now I bought examp.nl
Sould I redirect the examp.nl to the examp.be or split the site. Note NL a... | [
{
"answer_id": 124446,
"author": "Trickytree22",
"author_id": 101824,
"author_profile": "https://webmasters.stackexchange.com/users/101824",
"pm_score": 0,
"selected": false,
"text": "<p>The answer depends mostly on whether the sites are identical or not. You write identical or near iden... | 2019/08/08 | [
"https://webmasters.stackexchange.com/questions/124443",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/102507/"
] | I'm always a bit confused about hreflang and domain. I have the following in mind.
```
Current situation:
examp.eu (english) hreflang="en"
examp.be (dutch) hreflang="nl-be" hreflang="nl-nl"
```
Now I bought examp.nl
Sould I redirect the examp.nl to the examp.be or split the site. Note NL and BE are both dutch and w... | >
> Will my .be which is most important suffer from duplicated content on
> .nl and .be.
>
>
>
Theoretically and 95% practically no. Because your hreflang setup is absolutely correct.
But, for the remaining 5%, i personally experienced cases, where Google deindexed one of such two domains, because "they were too... |
124,470 | <p>I want an accurate picture of all the visitors landing on the website and converting. Unfortunately, the adblocker tools also block Google Analytics and Google Tag Manager, I am using the newer script</p>
<pre><code>window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', ne... | [
{
"answer_id": 124475,
"author": "WSU",
"author_id": 100753,
"author_profile": "https://webmasters.stackexchange.com/users/100753",
"pm_score": 2,
"selected": false,
"text": "<p>The standard practice is what you already suggest, moving the pages and setting up redirections (make sure to ... | 2019/08/09 | [
"https://webmasters.stackexchange.com/questions/124470",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/82630/"
] | I want an accurate picture of all the visitors landing on the website and converting. Unfortunately, the adblocker tools also block Google Analytics and Google Tag Manager, I am using the newer script
```
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gta... | A bit of an amendment to WSUs answer. Google pass 100% link juice with 301 redirects, and have for over 3 years. This was confirmed by Gary Illyes [tweet](https://twitter.com/methode/status/757923179641839616)
However, if you're worried about ranking for other search engines, then it might be worth contacting people. ... |
124,484 | <p>I have URLs indexed by Google and I want to remove them from indexing. I found that I can use bulk remove option by providing a CSV file including all indexed URLs to Google Search Console. I have tried to get a CSV file with the method below but I got this error:</p>
<blockquote>
<pre><code>=importXml("http://www.... | [
{
"answer_id": 124488,
"author": "Evgeniy",
"author_id": 43910,
"author_profile": "https://webmasters.stackexchange.com/users/43910",
"pm_score": 0,
"selected": false,
"text": "<p>Presuming you don't need these urls, the most simple an efficient way is to make them deliver status code <c... | 2019/08/09 | [
"https://webmasters.stackexchange.com/questions/124484",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/101531/"
] | I have URLs indexed by Google and I want to remove them from indexing. I found that I can use bulk remove option by providing a CSV file including all indexed URLs to Google Search Console. I have tried to get a CSV file with the method below but I got this error:
>
>
> ```
> =importXml("http://www.google.com/search... | First, you need to identify your site URL which is indexed in search results. The command to check all your indexed URL's is site:www.example.com.
All the results are shown for your site.
In order, to remove the URL's which are of no use or which contains old content first thing you need to delete the page & redirect ... |
124,595 | <p>Is there a way to add a cname or txt or whatever record to redirect a page on the same domain to another page. I don't want to redirect the whole domain to another one. Not sure how to do this.</p>
<p>For example I need to redirect:</p>
<p><a href="https://example.net/index.php/page" rel="nofollow noreferrer">http... | [
{
"answer_id": 124598,
"author": "Stephen Ostermiller",
"author_id": 14543,
"author_profile": "https://webmasters.stackexchange.com/users/14543",
"pm_score": 2,
"selected": false,
"text": "<p>You can't use DNS to implement redirects. A <code>CNAME</code> DNS record is not a redirect. ... | 2019/08/15 | [
"https://webmasters.stackexchange.com/questions/124595",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/99031/"
] | Is there a way to add a cname or txt or whatever record to redirect a page on the same domain to another page. I don't want to redirect the whole domain to another one. Not sure how to do this.
For example I need to redirect:
<https://example.net/index.php/page>
to
<https://example.net/page> | You can't use DNS to implement redirects. A `CNAME` DNS record is not a redirect. A `CNAME` simply says that the domain name resolves to the same IP address as another domain name. It doesn't make that domain name redirect. DNS also doesn't know anything about URL paths. Using DNS just isn't the correct tool for the jo... |
124,635 | <h2>Background</h2>
<p>I've added an SSL cert using Lets Encrypt/Certbot on my Debian 9 (Stretch) host.</p>
<p>To modify my Apache configuration, essentially certbot copies the vhost.conf file, wraps it with and inserts Include, SSLCertificateFile and SSLCertificateKeyFile entries.</p>
<p>And the old HTTP vhost.con... | [
{
"answer_id": 124667,
"author": "Evgeniy",
"author_id": 43910,
"author_profile": "https://webmasters.stackexchange.com/users/43910",
"pm_score": -1,
"selected": false,
"text": "<p>As i understand it isn't possible to run a script on HTTP, if the domain setup is HTTPS. The script will be... | 2019/08/17 | [
"https://webmasters.stackexchange.com/questions/124635",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/102751/"
] | Background
----------
I've added an SSL cert using Lets Encrypt/Certbot on my Debian 9 (Stretch) host.
To modify my Apache configuration, essentially certbot copies the vhost.conf file, wraps it with and inserts Include, SSLCertificateFile and SSLCertificateKeyFile entries.
And the old HTTP vhost.conf file is modifi... | It appears that search engine spiders such as Googlebot don't send the `Upgrade-Insecure-Requests: 1` header. I looked at several people who [show the headers that Googlebot sends](https://www.google.com/search?tbs=li:1&q=googlebot+request+headers) and none of them show the `Upgrade-Insecure-Requests` header.
It is a ... |
124,651 | <p>OK, I have a basic php website (non WordPress) that I just moved from GoDaddy to Nixihost. By default, the root website gets put in the root web folder /public_html - however instead I wanted the root website in a subfolder of the root web folder at /public_html/4efix.com (The website in question is my simple www.4e... | [
{
"answer_id": 124652,
"author": "Emmanuel",
"author_id": 102766,
"author_profile": "https://webmasters.stackexchange.com/users/102766",
"pm_score": 2,
"selected": false,
"text": "<p>Went through your site and it works perfectly, Usually when you change hosts, It takes some time to fully... | 2019/08/18 | [
"https://webmasters.stackexchange.com/questions/124651",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/102791/"
] | OK, I have a basic php website (non WordPress) that I just moved from GoDaddy to Nixihost. By default, the root website gets put in the root web folder /public\_html - however instead I wanted the root website in a subfolder of the root web folder at /public\_html/4efix.com (The website in question is my simple www.4ef... | So for some reason I still do not fathom, the fix turned out to be altering the target directory's permission from 750 to 755. (The files within the directory did not have to have their permissions altered at all, just the folder containing the redirected site.)
That was the answer, discovered by the helpful folks at ... |
124,673 | <p><a href="https://lyminhnhat.com/resources/productivity/recommended-software/?utm_source=SE%3A%20Webmasters&utm_medium=Recommended%20software&utm_campaign=Getting%20help&utm_term=post%3A%20Why%20can't%20Open%20Graph%20checker%20detect%20Open%20Graph%20data%3F" rel="nofollow noreferrer">My page</a>, af... | [
{
"answer_id": 124694,
"author": "Leonardo Petrucci",
"author_id": 101377,
"author_profile": "https://webmasters.stackexchange.com/users/101377",
"pm_score": 0,
"selected": false,
"text": "<p>Is this your website? <a href=\"https://qu%E1%BA%A3c%E1%BA%A7u.com\" rel=\"nofollow noreferrer\"... | 2019/08/19 | [
"https://webmasters.stackexchange.com/questions/124673",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/52079/"
] | [My page](https://lyminhnhat.com/resources/productivity/recommended-software/?utm_source=SE%3A%20Webmasters&utm_medium=Recommended%20software&utm_campaign=Getting%20help&utm_term=post%3A%20Why%20can't%20Open%20Graph%20checker%20detect%20Open%20Graph%20data%3F), after adding SSL certificate, cannot have preview fetched ... | It does appear that your server is blocking access by bot sites such as the Open Graph evaluation tools (the site can be access by Google bots such as the [Google Structured Data testing tool](https://search.google.com/structured-data/testing-tool/u/0/), but not others). I tried it with the <https://lyminhnhat.com/reso... |
124,807 | <p>I have client for a website. He would like to have a domain name that includes his name and the type of business he is running. This client is a freelancer and his registered name is "hisname" for this example. The type of company is "gartenbau" (gardener in german). He would like to pick one of this combinations:</... | [
{
"answer_id": 124809,
"author": "Evgeniy",
"author_id": 43910,
"author_profile": "https://webmasters.stackexchange.com/users/43910",
"pm_score": 2,
"selected": false,
"text": "<p>My favourites would be these two:</p>\n\n<ul>\n<li>hisname-gartenbau.de</li>\n<li>gartenbau-hisname.de</li>\... | 2019/08/26 | [
"https://webmasters.stackexchange.com/questions/124807",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/103005/"
] | I have client for a website. He would like to have a domain name that includes his name and the type of business he is running. This client is a freelancer and his registered name is "hisname" for this example. The type of company is "gartenbau" (gardener in german). He would like to pick one of this combinations:
```... | My favourites would be these two:
* hisname-gartenbau.de
* gartenbau-hisname.de
The time of exact match domains is gone. And, the domain name, like the business name, should be brandable. From this point of view, the better choice would be something like gartenriese-gartenbau.de. But, on domain names selected by you ... |
124,846 | <p>I created a JSON-LD schema for a law firm website. I've checked this code in Google Structured Data Testing Tool and there is no errors. But no syntax errors does not mean that the schema is good.</p>
<p>Can I use <code>Organization</code>, <code>LocalBusiness</code> and <code>LegalService</code> as type simultaneo... | [
{
"answer_id": 124863,
"author": "unor",
"author_id": 17633,
"author_profile": "https://webmasters.stackexchange.com/users/17633",
"pm_score": 2,
"selected": false,
"text": "<p>By definition, every <code>LocalBusiness</code> is also an <code>Organization</code>, and every <code>LegalServ... | 2019/08/27 | [
"https://webmasters.stackexchange.com/questions/124846",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/103045/"
] | I created a JSON-LD schema for a law firm website. I've checked this code in Google Structured Data Testing Tool and there is no errors. But no syntax errors does not mean that the schema is good.
Can I use `Organization`, `LocalBusiness` and `LegalService` as type simultaneously?
```json
{
"@context": "https://schem... | By definition, every `LocalBusiness` is also an `Organization`, and every `LegalService` is also a `LocalBusiness`.
Schema.org types inherit all their parent types:
* [`LocalBusiness`](https://schema.org/LocalBusiness):
>
> `Thing` > `Organization` > `LocalBusiness`
>
>
>
* [`LegalService`](https://schema.org/Leg... |
124,968 | <p>I am redirecting 301 in cpanel www to non-www (naked domain) and the code Cpanel redirect generates doesn't do anything when www to non-www is set.</p>
<p>Server Type:
(Litespeed Server, domain has "Let's encrypt" certificate.)</p>
<ul>
<li>DNS config is (not pointing www to non-www as CNAME)</li>
<li>both point t... | [
{
"answer_id": 124890,
"author": "Anuvesh",
"author_id": 102923,
"author_profile": "https://webmasters.stackexchange.com/users/102923",
"pm_score": 2,
"selected": false,
"text": "<p>Delete the tracking code snippet from the of xyz.co.uk. If implemented through Google Tag Manager, delet... | 2019/09/02 | [
"https://webmasters.stackexchange.com/questions/124968",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/12762/"
] | I am redirecting 301 in cpanel www to non-www (naked domain) and the code Cpanel redirect generates doesn't do anything when www to non-www is set.
Server Type:
(Litespeed Server, domain has "Let's encrypt" certificate.)
* DNS config is (not pointing www to non-www as CNAME)
* both point to same IP
* mydomain.dev - A... | To fix the issue going forward and prevent future similar issues from reoccuring in the future (and help prevent data spam), both above approaches should be taken
1. Remove the erroneous tracking from xyz.example.
2. General best practice is to not filter the default All Website Data view and to create one or more re... |
124,977 | <p>I just noticed that on sites with "auto ads" enabled, auto-placed AdSense units don't follow CSS rules regarding margin or padding in mobile view. They display across the entire viewport instead of allowing margin. The issue is not really applicable on desktop because ads rarely run border to border down to the pix... | [
{
"answer_id": 124982,
"author": "Fahad Ur Rehman Khan",
"author_id": 97151,
"author_profile": "https://webmasters.stackexchange.com/users/97151",
"pm_score": 0,
"selected": false,
"text": "<p>This happens because of Auto Ads inserted by Adsense, the script in the core of the website all... | 2019/09/03 | [
"https://webmasters.stackexchange.com/questions/124977",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/35240/"
] | I just noticed that on sites with "auto ads" enabled, auto-placed AdSense units don't follow CSS rules regarding margin or padding in mobile view. They display across the entire viewport instead of allowing margin. The issue is not really applicable on desktop because ads rarely run border to border down to the pixel. ... | Auto ads are designed to ignore all your CSS and insert the ads in a consistent way across different sites. There is no way to control the position or margins of auto ads.
If you want more control of your ads, then you should disable auto ads and use traditional ad placements. See [Ad placement and how to create it - ... |
124,990 | <p>I'd like to use the following code:</p>
<pre class="lang-html prettyprint-override"><code><div itemprop="aggregateRating" itemscope itemtype="https://schema.org/AggregateRating">
<div>
<span itemprop="ratingValue">[rating]</span> from
<div style="display: none;" itemprop="... | [
{
"answer_id": 124996,
"author": "unor",
"author_id": 17633,
"author_profile": "https://webmasters.stackexchange.com/users/17633",
"pm_score": 2,
"selected": false,
"text": "<p>For such a purpose, the <code>meta</code> element can be used. It’s visually hidden by default.</p>\n\n<pre cla... | 2019/09/03 | [
"https://webmasters.stackexchange.com/questions/124990",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/50230/"
] | I'd like to use the following code:
```html
<div itemprop="aggregateRating" itemscope itemtype="https://schema.org/AggregateRating">
<div>
<span itemprop="ratingValue">[rating]</span> from
<div style="display: none;" itemprop="bestRating">5</div>
<span itemprop="ratingCount">[quantity]</span> rev... | For such a purpose, the `meta` element can be used. It’s visually hidden by default.
```html
<meta itemprop="bestRating" content="5" />
```
(For [representing a rating value](https://webmasters.stackexchange.com/a/113984/17633) in HTML, you could also use the `meter` element, which allows setting the `min` and `max`... |
125,008 | <p>Let's say there's a site with products. Each page product links to a page with a form to ask for more information. Let's say that URL is like:</p>
<pre><code>https://example.com/product-inquiry?product=XXX
</code></pre>
<p>XXX is the product code. So there are thousand of pages apparently with same 'content' (just... | [
{
"answer_id": 125010,
"author": "user103228",
"author_id": 103228,
"author_profile": "https://webmasters.stackexchange.com/users/103228",
"pm_score": 0,
"selected": false,
"text": "<p>If you have a single page accessible by multiple URLs, or different pages with similar content (for exa... | 2019/09/04 | [
"https://webmasters.stackexchange.com/questions/125008",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/103225/"
] | Let's say there's a site with products. Each page product links to a page with a form to ask for more information. Let's say that URL is like:
```
https://example.com/product-inquiry?product=XXX
```
XXX is the product code. So there are thousand of pages apparently with same 'content' (just a form, about 8 fields an... | I don't think you should worry about duplicate content in your case.
If it's duplicate, the only issue you can have is with indexing, and I don't see any reason to want to have inquiry forms indexed. These are low-value pages to users and could actually *hurt* your organic performance.
I'd actually recommend hiding... |
125,017 | <p>I'm using LinkedIn's Single Sign On, and when they redirect authorized users back to my site, the referring domain is "linkedin.com".</p>
<p>For Google (accounts.google.com) I can simply exclude that referral domain, but since Linkedin doesn't use a subdomain, I can't just exclude <code>linkedin.com</code> as that ... | [
{
"answer_id": 125026,
"author": "GeoffAtkins",
"author_id": 54360,
"author_profile": "https://webmasters.stackexchange.com/users/54360",
"pm_score": 0,
"selected": false,
"text": "<p>Under admin, go to Property > Tracking Info > Referral Exclusion List.</p>\n\n<p>Add <em>linkedin.com</e... | 2019/09/04 | [
"https://webmasters.stackexchange.com/questions/125017",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/18952/"
] | I'm using LinkedIn's Single Sign On, and when they redirect authorized users back to my site, the referring domain is "linkedin.com".
For Google (accounts.google.com) I can simply exclude that referral domain, but since Linkedin doesn't use a subdomain, I can't just exclude `linkedin.com` as that would block valid tra... | You can solve this problem for LinkedIn the same way that I solve it for Facebook. When traffic comes back to your site after sign-in, strip the referrer before Google Analytics executes.
Specify your return-to URL from linked in as a page with a meta-refresh to your final return URL:
```
<html>
<head>
<meta http-equ... |
125,022 | <p>I have observed that google picks content from our page and shows it as a featured snippet. But once the user opens the link, the content in the featured snippet is at the bottom which would make it very difficult for the user to discover the content.</p>
<p>How can we solve this problem? Is there any way by which ... | [
{
"answer_id": 125026,
"author": "GeoffAtkins",
"author_id": 54360,
"author_profile": "https://webmasters.stackexchange.com/users/54360",
"pm_score": 0,
"selected": false,
"text": "<p>Under admin, go to Property > Tracking Info > Referral Exclusion List.</p>\n\n<p>Add <em>linkedin.com</e... | 2019/09/05 | [
"https://webmasters.stackexchange.com/questions/125022",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/74731/"
] | I have observed that google picks content from our page and shows it as a featured snippet. But once the user opens the link, the content in the featured snippet is at the bottom which would make it very difficult for the user to discover the content.
How can we solve this problem? Is there any way by which we can ask... | You can solve this problem for LinkedIn the same way that I solve it for Facebook. When traffic comes back to your site after sign-in, strip the referrer before Google Analytics executes.
Specify your return-to URL from linked in as a page with a meta-refresh to your final return URL:
```
<html>
<head>
<meta http-equ... |
125,100 | <p>I'm looking for a good way to block an entire IP range using htaccess.</p>
<p>The problem I'm having is that the block I need to ban is 100 IP ranges big. From a programmers perspective it should be easily doable, but I'm failing to get it done without adding 100 lines in my htaccess, and other techniques I tried d... | [
{
"answer_id": 125102,
"author": "Stephen Ostermiller",
"author_id": 14543,
"author_profile": "https://webmasters.stackexchange.com/users/14543",
"pm_score": 4,
"selected": true,
"text": "<p>IP ranges are specified in .htaccess using <a href=\"https://en.wikipedia.org/wiki/Classless_Inte... | 2019/09/11 | [
"https://webmasters.stackexchange.com/questions/125100",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/104407/"
] | I'm looking for a good way to block an entire IP range using htaccess.
The problem I'm having is that the block I need to ban is 100 IP ranges big. From a programmers perspective it should be easily doable, but I'm failing to get it done without adding 100 lines in my htaccess, and other techniques I tried did not wor... | IP ranges are specified in .htaccess using [CIDR notation](https://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing#CIDR_notation). The simplest rule that you could use would be
```
Deny from 159.138.0.0/16
```
Which would block slightly too much:
```
CIDR Range 159.138.0.0/16
Netmask 255.255.0.0
W... |
125,103 | <p>I inject some JSON-LD into a page dynamically via Javascript, when I test the page using Google's Structured Data Testing Tool, the expected output appears and I can see the Product Element is rendered.</p>
<p>However, if I defer loading of the script that is responsible for fetching the JSON-LD content and then ca... | [
{
"answer_id": 125107,
"author": "breakworm",
"author_id": 104424,
"author_profile": "https://webmasters.stackexchange.com/users/104424",
"pm_score": 3,
"selected": true,
"text": "<pre class=\"lang-html prettyprint-override\"><code><script src=\"https://example.site.com/rich-snippet/d... | 2019/09/11 | [
"https://webmasters.stackexchange.com/questions/125103",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/104419/"
] | I inject some JSON-LD into a page dynamically via Javascript, when I test the page using Google's Structured Data Testing Tool, the expected output appears and I can see the Product Element is rendered.
However, if I defer loading of the script that is responsible for fetching the JSON-LD content and then call the fun... | ```html
<script src="https://example.site.com/rich-snippet/dist.js" defer=""></script>
<script>
window.addEventListener('load', function() {
richSnippet();
});
</script>
```
Removing the ES6 syntax seems to resolve the issue, I think due the context of the event that would be passed.
---
[Stephen Os... |
125,119 | <p>I have an interactive page on my website that produces millions of combinations. Users can share a link to the specific combination.</p>
<p>Something like: <code>example.com/tool?id1=blah&id2=blahagain</code></p>
<p>This changes a few images and words on the page. There also some more combinations that make mo... | [
{
"answer_id": 125107,
"author": "breakworm",
"author_id": 104424,
"author_profile": "https://webmasters.stackexchange.com/users/104424",
"pm_score": 3,
"selected": true,
"text": "<pre class=\"lang-html prettyprint-override\"><code><script src=\"https://example.site.com/rich-snippet/d... | 2019/09/12 | [
"https://webmasters.stackexchange.com/questions/125119",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/-1/"
] | I have an interactive page on my website that produces millions of combinations. Users can share a link to the specific combination.
Something like: `example.com/tool?id1=blah&id2=blahagain`
This changes a few images and words on the page. There also some more combinations that make more complex changes to the page s... | ```html
<script src="https://example.site.com/rich-snippet/dist.js" defer=""></script>
<script>
window.addEventListener('load', function() {
richSnippet();
});
</script>
```
Removing the ES6 syntax seems to resolve the issue, I think due the context of the event that would be passed.
---
[Stephen Os... |
125,176 | <p>So I've redesigned a site that was built comprising of solely <code>.asp</code> pages and redid it using <code>.html</code> pages. I deleted the old site and uploaded the new, and uploaded my <code>.htaccess</code> file with code along the lines of:</p>
<pre><code>Redirect 301 /studio.asp /studio.html
</code></pre>... | [
{
"answer_id": 125209,
"author": "Evgeniy",
"author_id": 43910,
"author_profile": "https://webmasters.stackexchange.com/users/43910",
"pm_score": -1,
"selected": false,
"text": "<p>First of all, inspect your log files: what happens on accessing studio.asp? </p>\n\n<p>I very suspect that ... | 2019/09/15 | [
"https://webmasters.stackexchange.com/questions/125176",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/104558/"
] | So I've redesigned a site that was built comprising of solely `.asp` pages and redid it using `.html` pages. I deleted the old site and uploaded the new, and uploaded my `.htaccess` file with code along the lines of:
```
Redirect 301 /studio.asp /studio.html
```
etc.
I was expecting that when I clicked on a google ... | The response you are seeing for the old `.asp` pages would appear to be the standard 404 response on your server (or rather a front-end Nginx proxy by the looks). You seem to get the same response regardless of what non-existent page you request. So, this is not limited to `.asp` pages. This 404 response is a "domain h... |
125,183 | <pre><code>{
"@type": "OpeningHoursSpecification",
"dayOfWeek": [
"Sunday"
],
"Hours": "Closed"
}
</code></pre>
<p>I get the following error: </p>
<blockquote>
<p>Closed (The property Hours is not recognized by Google for an object of type OpeningHoursSpecification.)</p>
</blockquote>
<p>T... | [
{
"answer_id": 125185,
"author": "Evgeniy",
"author_id": 43910,
"author_profile": "https://webmasters.stackexchange.com/users/43910",
"pm_score": 2,
"selected": false,
"text": "<p>Maybe i don't understand exactly your purposes, but as stated in the <code>Schema.org/OpeningHoursSpecificat... | 2019/09/16 | [
"https://webmasters.stackexchange.com/questions/125183",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/104573/"
] | ```
{
"@type": "OpeningHoursSpecification",
"dayOfWeek": [
"Sunday"
],
"Hours": "Closed"
}
```
I get the following error:
>
> Closed (The property Hours is not recognized by Google for an object of type OpeningHoursSpecification.)
>
>
>
This is how i am doing a weekday
```
{
... | Maybe i don't understand exactly your purposes, but as stated in the `Schema.org/OpeningHoursSpecification` documentation
>
> The place is open if the opens property is specified, and closed otherwise.
>
>
>
According to this i would set only opening times by implication of `closed is when not open`.
**PS** to g... |
125,226 | <p>Can we not implement the HTTP protocol using just a request body and a response body? </p>
<p>For example, the URL will contain request, which will be mapped to a function depending on programming language on server side say a Servlet and in response HTML and JavaScript response will be sent across. </p>
<p>Why do... | [
{
"answer_id": 125229,
"author": "aaa",
"author_id": 104659,
"author_profile": "https://webmasters.stackexchange.com/users/104659",
"pm_score": 4,
"selected": false,
"text": "<p>HTTP can be thought of as one specific case of generic principles of Remote Procedure Call: you tell the serve... | 2019/09/18 | [
"https://webmasters.stackexchange.com/questions/125226",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/104656/"
] | Can we not implement the HTTP protocol using just a request body and a response body?
For example, the URL will contain request, which will be mapped to a function depending on programming language on server side say a Servlet and in response HTML and JavaScript response will be sent across.
Why does HTTP protocol ... | **Please note** the question has changed/been clarified since this answer was first written. A further response to the latest iteration of the question is after the second horizontal rule
>
> What is the need of methods like GET and POST in the HTTP protocol?
>
>
>
They, along with a few other things like header... |
125,228 | <p>For example:</p>
<p>You have you h1</p>
<pre><code><h1>Epic SEO Keywords</h1>
</code></pre>
<p>then right below</p>
<pre><code><h2 class="Massive text">Enjoy the future of you, visualise your dreams</h2>
</code></pre>
<p>Will Google render that page and treat the h2 as the true h1 for th... | [
{
"answer_id": 125229,
"author": "aaa",
"author_id": 104659,
"author_profile": "https://webmasters.stackexchange.com/users/104659",
"pm_score": 4,
"selected": false,
"text": "<p>HTTP can be thought of as one specific case of generic principles of Remote Procedure Call: you tell the serve... | 2019/09/18 | [
"https://webmasters.stackexchange.com/questions/125228",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/59582/"
] | For example:
You have you h1
```
<h1>Epic SEO Keywords</h1>
```
then right below
```
<h2 class="Massive text">Enjoy the future of you, visualise your dreams</h2>
```
Will Google render that page and treat the h2 as the true h1 for the page? | **Please note** the question has changed/been clarified since this answer was first written. A further response to the latest iteration of the question is after the second horizontal rule
>
> What is the need of methods like GET and POST in the HTTP protocol?
>
>
>
They, along with a few other things like header... |
125,243 | <p>I have a phpBB forum and I want to merge the different urls Google Analytics throws up into 1, eg: </p>
<pre><code> /forum/viewtopic.php?f=16&t=6457
/forum/viewtopic.php?t=6457
/forum/viewtopic.php?f=16&t=6457&start=40
</code></pre>
<p>I'd like them all to point to</p>
<p><code>/forum/viewtopic.php?... | [
{
"answer_id": 125229,
"author": "aaa",
"author_id": 104659,
"author_profile": "https://webmasters.stackexchange.com/users/104659",
"pm_score": 4,
"selected": false,
"text": "<p>HTTP can be thought of as one specific case of generic principles of Remote Procedure Call: you tell the serve... | 2019/09/18 | [
"https://webmasters.stackexchange.com/questions/125243",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/17842/"
] | I have a phpBB forum and I want to merge the different urls Google Analytics throws up into 1, eg:
```
/forum/viewtopic.php?f=16&t=6457
/forum/viewtopic.php?t=6457
/forum/viewtopic.php?f=16&t=6457&start=40
```
I'd like them all to point to
`/forum/viewtopic.php?t=6457`
I devised the following regEx filter:
Se... | **Please note** the question has changed/been clarified since this answer was first written. A further response to the latest iteration of the question is after the second horizontal rule
>
> What is the need of methods like GET and POST in the HTTP protocol?
>
>
>
They, along with a few other things like header... |
125,263 | <p>I'm trying to upgrade my MediaWiki installation. My site runs just fine locally at <a href="http://localhost:8888/" rel="noreferrer">http://localhost:8888/</a>. I can connect to my database using the "Socket" connection on Sequel Pro on port 8888. My database settings in LocalSettings.php look like this:</p>
<pre><... | [
{
"answer_id": 125264,
"author": "intcreator",
"author_id": 54736,
"author_profile": "https://webmasters.stackexchange.com/users/54736",
"pm_score": 4,
"selected": true,
"text": "<p>I seem to have resolved this by explicitly adding the socket to the <code>$wgDBserver</code> variable in L... | 2019/09/20 | [
"https://webmasters.stackexchange.com/questions/125263",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/54736/"
] | I'm trying to upgrade my MediaWiki installation. My site runs just fine locally at <http://localhost:8888/>. I can connect to my database using the "Socket" connection on Sequel Pro on port 8888. My database settings in LocalSettings.php look like this:
```
## Database settings
$wgDBtype = "mysql";
$wgDBserver = "loca... | I seem to have resolved this by explicitly adding the socket to the `$wgDBserver` variable in LocalSettings.php. To get the socket path, I ran this query in my SQL database manager:
```
show variables like 'socket'
```
The only result was the following:
```
/Applications/MAMP/tmp/mysql/mysql.sock
```
So I changed... |
125,270 | <p>In the XML sitemap, there is a limit of 50,000 per XML sitemap. Is there a limit of links to be present on the HTML based sitemap? </p>
<p>If I have more than 100k pages or posts, Should I used them as pagination setup way for HTML sitemaps? </p>
<p>PS: XML sitemap is different from HTML based sitemap. </p>
| [
{
"answer_id": 125264,
"author": "intcreator",
"author_id": 54736,
"author_profile": "https://webmasters.stackexchange.com/users/54736",
"pm_score": 4,
"selected": true,
"text": "<p>I seem to have resolved this by explicitly adding the socket to the <code>$wgDBserver</code> variable in L... | 2019/09/20 | [
"https://webmasters.stackexchange.com/questions/125270",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/58095/"
] | In the XML sitemap, there is a limit of 50,000 per XML sitemap. Is there a limit of links to be present on the HTML based sitemap?
If I have more than 100k pages or posts, Should I used them as pagination setup way for HTML sitemaps?
PS: XML sitemap is different from HTML based sitemap. | I seem to have resolved this by explicitly adding the socket to the `$wgDBserver` variable in LocalSettings.php. To get the socket path, I ran this query in my SQL database manager:
```
show variables like 'socket'
```
The only result was the following:
```
/Applications/MAMP/tmp/mysql/mysql.sock
```
So I changed... |
125,332 | <p>My default index html like this :</p>
<pre><code><html>
<head>
<meta name="google-site-verification" content="****************" />
<script async src="https://www.googletagmanager.com/gtag/js?id=AW-7**4*7***"></script>
<script>
window.dataLayer = window.dataLayer || [... | [
{
"answer_id": 125338,
"author": "GeoffAtkins",
"author_id": 54360,
"author_profile": "https://webmasters.stackexchange.com/users/54360",
"pm_score": 1,
"selected": false,
"text": "<p>Yes. You can load it from an external file like any JS.</p>\n\n<p>However, do be aware about loading ord... | 2019/09/24 | [
"https://webmasters.stackexchange.com/questions/125332",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/103398/"
] | My default index html like this :
```
<html>
<head>
<meta name="google-site-verification" content="****************" />
<script async src="https://www.googletagmanager.com/gtag/js?id=AW-7**4*7***"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
... | The code examples given are not Google Tag Manager Script
It is Global Site Tag gtag.js tracking code snippets and both the AW and GA should be combined into a single snippet
>
> The global site tag (gtag.js) is JavaScript tagging framework and API that allows you to send event
> data to Google Ads, Campaign Manage... |