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 |
|---|---|---|---|---|---|---|
112,035 | <p>I have summary of my last articles on website first page and category pages. As you know this summaries are temporary and they're gone when new articles are published. </p>
<p>The problem is when I search title of some of those articles on Google, Google indexes me first page or category pages beside of the article... | [
{
"answer_id": 112036,
"author": "jbcappell",
"author_id": 76978,
"author_profile": "https://webmasters.stackexchange.com/users/76978",
"pm_score": 0,
"selected": false,
"text": "<p>Google indexing temporary content is not necessarily a bad thing, but if you wish for those pages to not s... | 2018/01/16 | [
"https://webmasters.stackexchange.com/questions/112035",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/85568/"
] | I have summary of my last articles on website first page and category pages. As you know this summaries are temporary and they're gone when new articles are published.
The problem is when I search title of some of those articles on Google, Google indexes me first page or category pages beside of the article page as a... | I would not recommend using the search console removal tool or the robots.txt file. The former is rather tedious and inefficient, I mean how many times you have to do that? while the later is not recommended, if another different page links to the category page your category page will be indexed.
Google knows pretty w... |
112,053 | <p>A client asked me to host a website at www.drive-engagement.co.uk and I have linked it to search console and analytics and its showing as indexed. It appears on google if you type something like <em>drive engagement oxon</em> but my client is asking why it's not appearing if she types <em>drive engagement</em> or ev... | [
{
"answer_id": 112036,
"author": "jbcappell",
"author_id": 76978,
"author_profile": "https://webmasters.stackexchange.com/users/76978",
"pm_score": 0,
"selected": false,
"text": "<p>Google indexing temporary content is not necessarily a bad thing, but if you wish for those pages to not s... | 2018/01/17 | [
"https://webmasters.stackexchange.com/questions/112053",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/85583/"
] | A client asked me to host a website at www.drive-engagement.co.uk and I have linked it to search console and analytics and its showing as indexed. It appears on google if you type something like *drive engagement oxon* but my client is asking why it's not appearing if she types *drive engagement* or even *drive-engagem... | I would not recommend using the search console removal tool or the robots.txt file. The former is rather tedious and inefficient, I mean how many times you have to do that? while the later is not recommended, if another different page links to the category page your category page will be indexed.
Google knows pretty w... |
112,096 | <p>I wanted to submit my website on my own Debian Apache2 server to the <a href="https://hstspreload.org" rel="nofollow noreferrer">HSTS preload list</a>.</p>
<p>It told me I have several things incorrectly set up, so I made adjustments, now it seems to be satisfied. There is just one thing I am unsure how it works or... | [
{
"answer_id": 112107,
"author": "Itai",
"author_id": 5806,
"author_profile": "https://webmasters.stackexchange.com/users/5806",
"pm_score": 1,
"selected": false,
"text": "<p>The only thing I would change is also set the last rule to give a permanent redirect.</p>\n\n<pre><code>RewriteEn... | 2018/01/18 | [
"https://webmasters.stackexchange.com/questions/112096",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/71087/"
] | I wanted to submit my website on my own Debian Apache2 server to the [HSTS preload list](https://hstspreload.org).
It told me I have several things incorrectly set up, so I made adjustments, now it seems to be satisfied. There is just one thing I am unsure how it works or if I've done it correctly? The following redir... | >
> placed directly in a Virtual Host
>
>
>
But where exactly? If you've implemented SSL then you'll have *at least* two VirtualHost containers, one for SSL/HTTPS (port 443) and the other for HTTP (port 80).
You will need to have placed these directives in the VirtualHost container for port 80 in order to have su... |
112,139 | <p>I have recently applied a '<a href="https://letsencrypt.org/" rel="nofollow noreferrer">Let's Encrypt</a>' certificate to my VPS. Whilst doing this, I came to learn that I could access my Plesk VPS, through both an IP address (insecure over HTTP) and a domain name (secure over HTTPS). </p>
<p>The latter, being as... | [
{
"answer_id": 112829,
"author": "Mitesh Gangaramani",
"author_id": 66455,
"author_profile": "https://webmasters.stackexchange.com/users/66455",
"pm_score": 0,
"selected": false,
"text": "<p>Plesk is only for accessing your VPS control panel and if you are accessing with <code>https://IP... | 2018/01/19 | [
"https://webmasters.stackexchange.com/questions/112139",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/77120/"
] | I have recently applied a '[Let's Encrypt](https://letsencrypt.org/)' certificate to my VPS. Whilst doing this, I came to learn that I could access my Plesk VPS, through both an IP address (insecure over HTTP) and a domain name (secure over HTTPS).
The latter, being assigned by my hosting company, which I had never k... | Using A or CNAME records will have no effect on whether or not your site appears when you type in the IP address. Your site appears when you type in the IP address because every server MUST have an IP address assigned. DNS is then configured to point to that IP address. Even if you have no DNS entries at all, browsing ... |
112,141 | <p>I have setup my eshop on <em>Woocommerce</em> and I am sending the invoices using <em>Mailchimp</em> automation and integration with <em>Woocommerce</em>.</p>
<p>Everything works fine with Cash on Delivery method. When a user makes an order they receive an Order Confirmation e-mail from <em>Mailchimp</em>.</p>
<p>... | [
{
"answer_id": 112829,
"author": "Mitesh Gangaramani",
"author_id": 66455,
"author_profile": "https://webmasters.stackexchange.com/users/66455",
"pm_score": 0,
"selected": false,
"text": "<p>Plesk is only for accessing your VPS control panel and if you are accessing with <code>https://IP... | 2018/01/19 | [
"https://webmasters.stackexchange.com/questions/112141",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/78271/"
] | I have setup my eshop on *Woocommerce* and I am sending the invoices using *Mailchimp* automation and integration with *Woocommerce*.
Everything works fine with Cash on Delivery method. When a user makes an order they receive an Order Confirmation e-mail from *Mailchimp*.
The issue is when a user chooses *Paypal* che... | Using A or CNAME records will have no effect on whether or not your site appears when you type in the IP address. Your site appears when you type in the IP address because every server MUST have an IP address assigned. DNS is then configured to point to that IP address. Even if you have no DNS entries at all, browsing ... |
112,168 | <p>I work at a company with a custom PHP framework we have built over the years. For the most our custom framework suits our needs and includes almost everything Laravel offers, however, our database classes are outdated and we need to update them. Rather than rebuilding our our database classes we've been looking at s... | [
{
"answer_id": 112184,
"author": "Ilya Yaremchuk",
"author_id": 85736,
"author_profile": "https://webmasters.stackexchange.com/users/85736",
"pm_score": 0,
"selected": false,
"text": "<p>You may use <a href=\"https://github.com/illuminate/database\" rel=\"nofollow noreferrer\">illuminate... | 2018/01/21 | [
"https://webmasters.stackexchange.com/questions/112168",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/85717/"
] | I work at a company with a custom PHP framework we have built over the years. For the most our custom framework suits our needs and includes almost everything Laravel offers, however, our database classes are outdated and we need to update them. Rather than rebuilding our our database classes we've been looking at some... | You may use [illuminate/database](https://github.com/illuminate/database) by requiring it in your composer project.
```
composer require illuminate/database
```
Basic usage
-----------
### Create database connection
---
```
use Illuminate\Database\Capsule\Manager as Capsule;
$capsule = new Capsule;
$capsule->ad... |
112,215 | <p>The sitemap of my company's brand's website seems to be fine when I look at it at first glance. I don't particularly see any errors as such. However, SEMrush, the SEO tool, reports that our sitemap is not in the correct format. SEMrush doesn't tell me what's wrong. It just says that the format is incorrect.</p>
<p>S... | [
{
"answer_id": 112225,
"author": "Patrick Mevzek",
"author_id": 75842,
"author_profile": "https://webmasters.stackexchange.com/users/75842",
"pm_score": 3,
"selected": true,
"text": "<p>Per the schema, <code>tLastMod</code> is the union of <code>xsd:date</code> and <code>xsd:dateTime</co... | 2018/01/23 | [
"https://webmasters.stackexchange.com/questions/112215",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/73930/"
] | The sitemap of my company's brand's website seems to be fine when I look at it at first glance. I don't particularly see any errors as such. However, SEMrush, the SEO tool, reports that our sitemap is not in the correct format. SEMrush doesn't tell me what's wrong. It just says that the format is incorrect.
So, I subm... | Per the schema, `tLastMod` is the union of `xsd:date` and `xsd:dateTime`.
Since you provide hours, you are not in the first case, so your string should conform to the XSD `dateTime` type, and it does not: you need to specify the part with seconds.
See <https://www.w3.org/TR/2012/REC-xmlschema11-2-20120405/#dateTime-l... |
112,263 | <p>Recently having moved a site to SSL, I looked into enforcing HSTS for eventual preload. The syntax is approved and the Chrome List allows it to be OK. However, not being a coder at all, a slight problem arises.</p>
<p>I have:</p>
<pre><code>php_value upload_tmp_dir "/tmp"
# Force SSL
RewriteEngine On
RewriteCo... | [
{
"answer_id": 112264,
"author": "MrWhite",
"author_id": 1243,
"author_profile": "https://webmasters.stackexchange.com/users/1243",
"pm_score": 3,
"selected": false,
"text": "<blockquote>\n<p>...advise <code>RewriteCond %{HTTPS} off</code> and others have <code>RewriteCond %{HTTPS} on</c... | 2018/01/25 | [
"https://webmasters.stackexchange.com/questions/112263",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/85858/"
] | Recently having moved a site to SSL, I looked into enforcing HSTS for eventual preload. The syntax is approved and the Chrome List allows it to be OK. However, not being a coder at all, a slight problem arises.
I have:
```
php_value upload_tmp_dir "/tmp"
# Force SSL
RewriteEngine On
RewriteCond %{HTTPS} off
Rewrite... | >
> ...advise `RewriteCond %{HTTPS} off` and others have `RewriteCond %{HTTPS} on`
>
>
>
That wouldn't make sense in the context given as these are obviously opposites (I would be interested to see the full examples you are quoting this from).
However, maybe you mean `off` vs `!on`? These are equivalent in this c... |
112,294 | <p>I would like to allow folder <code>/news/</code> and disallow all the sub folders under <code>/news/</code> e.g. <code>/news/abc/</code>, <code>/news/123/</code>. How can I do that please?</p>
<p>I think <code>Disallow: /news/</code> will block everything in it, including <code>/news/</code> itself.</p>
<p>Will <c... | [
{
"answer_id": 112299,
"author": "Henry Visotski",
"author_id": 78970,
"author_profile": "https://webmasters.stackexchange.com/users/78970",
"pm_score": 4,
"selected": true,
"text": "<pre><code>User-agent: *\nAllow: /news/$\nDisallow: /news/\n</code></pre>\n\n<p>Explanation:</p>\n\n<p>Go... | 2018/01/26 | [
"https://webmasters.stackexchange.com/questions/112294",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/85901/"
] | I would like to allow folder `/news/` and disallow all the sub folders under `/news/` e.g. `/news/abc/`, `/news/123/`. How can I do that please?
I think `Disallow: /news/` will block everything in it, including `/news/` itself.
Will `Disallow: /news/*/` do the job, since there is no easy way to test it, I want to mak... | ```
User-agent: *
Allow: /news/$
Disallow: /news/
```
Explanation:
Google's `robots.txt` spec (<https://developers.google.com/search/reference/robots_txt>), which is more up to date than the "official" spec, states that:
*`/fish/` will match anything in the `/fish/` folder but will not match `/fish`* (and, no wildc... |
112,304 | <p>Let's just say a "friend" wants to do a guest blog on your site with a link to their site, but you aren't very happy about it. You can't say no, but you don't want to be playing the "link juice" game. </p>
<p>Is there a way that I can instruct Google to completely ignore this URL and any links on it, without leavin... | [
{
"answer_id": 112307,
"author": "Evgeniy",
"author_id": 43910,
"author_profile": "https://webmasters.stackexchange.com/users/43910",
"pm_score": 1,
"selected": false,
"text": "<p>Beside of ethical aspect: yes, it is possible. Let the link be dofollow in the page source code, but send no... | 2018/01/26 | [
"https://webmasters.stackexchange.com/questions/112304",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/104877/"
] | Let's just say a "friend" wants to do a guest blog on your site with a link to their site, but you aren't very happy about it. You can't say no, but you don't want to be playing the "link juice" game.
Is there a way that I can instruct Google to completely ignore this URL and any links on it, without leaving any mark... | Beside of ethical aspect: yes, it is possible. Let the link be dofollow in the page source code, but send nofollow with X-Robots-Tag, like:
```
<FilesMatch "page.html$">
Header set X-Robots-Tag "nofollow"
</FilesMatch>
```
Googlebot reads the X-Robots-Tag earlier then the source code and, despite conflicting signals... |
112,306 | <p>We've got about 20 localised domains for just one website, all of them point to the same IP address</p>
<p>The current setup is hosted with Google Cloud DNS and looks like this: </p>
<ul>
<li><p><code>example.de.</code> A 1.2.3.4</p>
<p><code>www.example.de.</code> CNAME <code>example.de.</code></p></li>
<li><p><... | [
{
"answer_id": 112311,
"author": "jehovahsays",
"author_id": 70712,
"author_profile": "https://webmasters.stackexchange.com/users/70712",
"pm_score": 0,
"selected": false,
"text": "<p>I hope that this answer helps you because it helped me.<br> I have managed 20+ domain names on 5 static ... | 2018/01/26 | [
"https://webmasters.stackexchange.com/questions/112306",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/45395/"
] | We've got about 20 localised domains for just one website, all of them point to the same IP address
The current setup is hosted with Google Cloud DNS and looks like this:
* `example.de.` A 1.2.3.4
`www.example.de.` CNAME `example.de.`
* `example.fr.` A 1.2.3.4
`www.example.fr.` CNAME `example.fr.`
* `example.uk.` ... | What you want to do with CNAME at apex is not possible. You can not have a `CNAME` record at apex of your zone because a `CNAME` record can not coexist with anything else at the same label, and at the apex you obviously always have already at least `SOA` and `NS` records.
Have a look at this other answer for a lengthy... |
112,329 | <p>I have a dual language news website. I have found a number of 404 errors in example.com which URLs should be in en.example.com, these are actually English content but showing in example.com (Bengali) for this reason 404 errors found in Google Search Console/Webmaster Tools.</p>
<p>This my first experience from Goog... | [
{
"answer_id": 112350,
"author": "Mike -- No longer here",
"author_id": 46807,
"author_profile": "https://webmasters.stackexchange.com/users/46807",
"pm_score": 0,
"selected": false,
"text": "<blockquote>\n <p>I have found a number of 404 errors in example.com which URLs should be in en... | 2018/01/27 | [
"https://webmasters.stackexchange.com/questions/112329",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/72770/"
] | I have a dual language news website. I have found a number of 404 errors in example.com which URLs should be in en.example.com, these are actually English content but showing in example.com (Bengali) for this reason 404 errors found in Google Search Console/Webmaster Tools.
This my first experience from Google Search ... | I suspect you are using *relative* URLs instead of *absolute* URLs for **example.com**. For example, if you are trying to link to **en.example.com/page-is-in-here**, make sure that your link (or Navigation Menu Link) from example.com is like
```
<a href="http://en.example.com/page-is-in-here">Go to en.example.com page... |
112,439 | <p>I have a few hundred soft 404 errors reported in Google Search Console. Almost all of them are for CSV files containing data. For example here is the HTTP response for one of them:</p>
<pre><code>HTTP/1.1 200
Content-Disposition: attachment; filename="fewer-bank-failures.csv"
Content-Length: 116
Content-Type: ... | [
{
"answer_id": 112448,
"author": "DocRoot",
"author_id": 52912,
"author_profile": "https://webmasters.stackexchange.com/users/52912",
"pm_score": 2,
"selected": false,
"text": "<p>Well, it does fall within the realms of <a href=\"https://support.google.com/webmasters/answer/181708?hl=en\... | 2018/02/01 | [
"https://webmasters.stackexchange.com/questions/112439",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/14543/"
] | I have a few hundred soft 404 errors reported in Google Search Console. Almost all of them are for CSV files containing data. For example here is the HTTP response for one of them:
```
HTTP/1.1 200
Content-Disposition: attachment; filename="fewer-bank-failures.csv"
Content-Length: 116
Content-Type: text/csv; name="fe... | Well, it does fall within the realms of [Google's definition of a soft 404](https://support.google.com/webmasters/answer/181708?hl=en) (highlighting my own):
>
> A soft 404 means that a URL on your site returns a page telling the user that the page does not exist and also a 200-level (success) code to the browser. (I... |
112,483 | <p>I have an amp page at the following UNS and its already cached by Google.
When this paged is served from Google's cache, its showing a <strong>2 day old version</strong> of page.</p>
<p>Original AMP URL
<a href="http://www.motachashma.com/amp/articles/ntse-result.php" rel="nofollow noreferrer">http://www.motachashm... | [
{
"answer_id": 112493,
"author": "Tiwari",
"author_id": 2714,
"author_profile": "https://webmasters.stackexchange.com/users/2714",
"pm_score": 3,
"selected": true,
"text": "<p>I just discovered that after updating my page was no more AMP compliant and because of that google was serving l... | 2018/02/03 | [
"https://webmasters.stackexchange.com/questions/112483",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/2714/"
] | I have an amp page at the following UNS and its already cached by Google.
When this paged is served from Google's cache, its showing a **2 day old version** of page.
Original AMP URL
<http://www.motachashma.com/amp/articles/ntse-result.php>
URL from GOOGLE's Cache
<https://www.google.co.in/amp/www.motachashma.com/amp... | I just discovered that after updating my page was no more AMP compliant and because of that google was serving last valid AMP page it crawled and cached.
Posting it, as it may help others |
112,497 | <p>The domain of interest was renewed a week ago, but the site is still down. Shouldn't the site be back up by now? (It's not my domain, it's a domain I wanted to buy but failed to get, and I'm asking for educational purposes). If the site never gets up within the year, even though the domain is set to Jan of next year... | [
{
"answer_id": 112499,
"author": "ChrisK",
"author_id": 85953,
"author_profile": "https://webmasters.stackexchange.com/users/85953",
"pm_score": 0,
"selected": false,
"text": "<p>There is something called a domain lifecycle and it goes as follows.</p>\n\n<ol>\n<li><strong>The domain is a... | 2018/02/03 | [
"https://webmasters.stackexchange.com/questions/112497",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/85264/"
] | The domain of interest was renewed a week ago, but the site is still down. Shouldn't the site be back up by now? (It's not my domain, it's a domain I wanted to buy but failed to get, and I'm asking for educational purposes). If the site never gets up within the year, even though the domain is set to Jan of next year, w... | As you can see from the whois, the domain has probably just been renewed:
```
Registry Expiry Date: 2019-01-27T00:48:16Z
Updated Date: 2018-01-27T15:43:21Z
Domain Status: ok https://icann.org/epp#ok
```
Even if the registrar whois does not seem correctly updated (its expiration date is still in the past).
The websi... |
112,507 | <p>We have a main image on every page of a website. This image includes some text.</p>
<p>We want to use text in image as <code>h1</code> but to make it live text on image would be an issue because of responsiveness issues.</p>
<p>What if we place the <code>h1</code> live text under the image (it would NOT be visible... | [
{
"answer_id": 112510,
"author": "Raul Reyes",
"author_id": 50569,
"author_profile": "https://webmasters.stackexchange.com/users/50569",
"pm_score": 3,
"selected": false,
"text": "<p>The <code><img></code> tag is classified by the living standard as <strong>Flow content</strong>, a... | 2018/02/04 | [
"https://webmasters.stackexchange.com/questions/112507",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/86120/"
] | We have a main image on every page of a website. This image includes some text.
We want to use text in image as `h1` but to make it live text on image would be an issue because of responsiveness issues.
What if we place the `h1` live text under the image (it would NOT be visible, using `z-index` etc.)?
Would this be... | The `<img>` tag is classified by the living standard as **Flow content**, and `<h1> </h1>` accepts flow content. It is fine to use the image tag inside any heading tag.
In terms of **SEO** it will be an issue trying to present content visible to the bots but hidden from the user. According to google this is a [direct ... |
112,529 | <p>I keep getting tons of bad links every week for my domain.</p>
<p>My question is, As I find bad links every week, Do I need to keep appending the new bad links in disavow file or Just keep only a new finds in the file and then submit every week?</p>
| [
{
"answer_id": 112510,
"author": "Raul Reyes",
"author_id": 50569,
"author_profile": "https://webmasters.stackexchange.com/users/50569",
"pm_score": 3,
"selected": false,
"text": "<p>The <code><img></code> tag is classified by the living standard as <strong>Flow content</strong>, a... | 2018/02/05 | [
"https://webmasters.stackexchange.com/questions/112529",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/49436/"
] | I keep getting tons of bad links every week for my domain.
My question is, As I find bad links every week, Do I need to keep appending the new bad links in disavow file or Just keep only a new finds in the file and then submit every week? | The `<img>` tag is classified by the living standard as **Flow content**, and `<h1> </h1>` accepts flow content. It is fine to use the image tag inside any heading tag.
In terms of **SEO** it will be an issue trying to present content visible to the bots but hidden from the user. According to google this is a [direct ... |
112,567 | <p>I noticed that certain websites have a different "appearance/layout" when they recognize a cellphone being used. How do they do this (preferably in a CSS, JS, and/or HTML context)?</p>
| [
{
"answer_id": 112569,
"author": "attachPost",
"author_id": 86310,
"author_profile": "https://webmasters.stackexchange.com/users/86310",
"pm_score": -1,
"selected": false,
"text": "<p>By using the viewport meta tag in HTML and media queries in CSS. Looking for these keywords will bring u... | 2018/02/06 | [
"https://webmasters.stackexchange.com/questions/112567",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/86307/"
] | I noticed that certain websites have a different "appearance/layout" when they recognize a cellphone being used. How do they do this (preferably in a CSS, JS, and/or HTML context)? | In general there are two possibilities:
1. recognizing of the display width
2. recognizing of device
**Media queries**
In the first case it works like measuring of current display width (or other parameters, like height, orientation etc.) and serving a stylesheets and other assets, like javascripts and images specia... |
112,570 | <p>Files are unexpectedly appearing on one of my shared web servers. They can appear in pretty much hundreds of directories and they are always called something like <code>favicon_1166f9.ico</code>. The first 6 characters are always <code>favico</code> and the extension is always <code>ico</code>. Although these are no... | [
{
"answer_id": 112751,
"author": "Itai",
"author_id": 5806,
"author_profile": "https://webmasters.stackexchange.com/users/5806",
"pm_score": 3,
"selected": true,
"text": "<p>This is an attack targeting a PHP vulnerability with POST requests.</p>\n\n<p>The attacker somehow manages to chan... | 2018/02/06 | [
"https://webmasters.stackexchange.com/questions/112570",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/5806/"
] | Files are unexpectedly appearing on one of my shared web servers. They can appear in pretty much hundreds of directories and they are always called something like `favicon_1166f9.ico`. The first 6 characters are always `favico` and the extension is always `ico`. Although these are not icons and cannot be opened by an i... | This is an attack targeting a PHP vulnerability with POST requests.
The attacker somehow manages to change existing PHP files with an @include statement using an encoded path that translates into one to these .ico files which are self-decrypting PHP files calling an external script from another server.
Blocking POST ... |
112,581 | <p>Im using a CMS that generates a sitemap automatically but without ".xml".IS this ok?</p>
<p>Can we put this is our robots.txt:</p>
<pre><code>Sitemap: https://www.example.com/sitemap
</code></pre>
<p>or must it be:</p>
<pre><code>Sitemap: https://www.example.com/sitemap.xml
</code></pre>
| [
{
"answer_id": 112582,
"author": "Evgeniy",
"author_id": 43910,
"author_profile": "https://webmasters.stackexchange.com/users/43910",
"pm_score": 3,
"selected": true,
"text": "<p>Not mandatory. Google's guidelines allow xml, txt and html formats. Look into <a href=\"https://support.googl... | 2018/02/07 | [
"https://webmasters.stackexchange.com/questions/112581",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/86120/"
] | Im using a CMS that generates a sitemap automatically but without ".xml".IS this ok?
Can we put this is our robots.txt:
```
Sitemap: https://www.example.com/sitemap
```
or must it be:
```
Sitemap: https://www.example.com/sitemap.xml
``` | Not mandatory. Google's guidelines allow xml, txt and html formats. Look into [guidelines](https://support.google.com/webmasters/answer/183668) to get further info.
Note: if sitemap has any other format as xml, it must be encoded as utf-8 and contain nothing more then urls one per line. Sitemap in xml format allows co... |
112,600 | <p>Recently I noticed that many people post <code>.htaccess</code> files here with:</p>
<pre><code><IfModule mod_rewrite.c>
</code></pre>
<p>Sometimes this even appears several times in the file! It obviously checks to see if <code>mod_write</code> is in fact enabled but the statements it protects are necesary ... | [
{
"answer_id": 112602,
"author": "MrWhite",
"author_id": 1243,
"author_profile": "https://webmasters.stackexchange.com/users/1243",
"pm_score": 4,
"selected": true,
"text": "<p>No, most of the time, checking for mod_rewrite is not necessary. In fact, it is often <em>preferable</em> to re... | 2018/02/07 | [
"https://webmasters.stackexchange.com/questions/112600",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/5806/"
] | Recently I noticed that many people post `.htaccess` files here with:
```
<IfModule mod_rewrite.c>
```
Sometimes this even appears several times in the file! It obviously checks to see if `mod_write` is in fact enabled but the statements it protects are necesary to those sites anyway. So if the `IfModule` fails, the... | No, most of the time, checking for mod\_rewrite is not necessary. In fact, it is often *preferable* to remove this check.
If the mod\_rewrite directives are *required* by your site then you should not wrap them in a `<IfModule mod_rewrite.c>` container. Because if they are *required* and mod\_rewrite is not available ... |
112,643 | <p>I have a client who has website with multiple pages. Now, each page has tabbed content which is accessible through <code>#</code>. For example:</p>
<pre class="lang-none prettyprint-override"><code>example.com/page1#content1
example.com/page1#content2
example.com/page1#content3
example.com/page2#content1
example.co... | [
{
"answer_id": 112645,
"author": "sau226",
"author_id": 81944,
"author_profile": "https://webmasters.stackexchange.com/users/81944",
"pm_score": -1,
"selected": false,
"text": "<p>You can manually define them in the sitemap or use google webmaster tools to flag them as such or you can re... | 2018/02/09 | [
"https://webmasters.stackexchange.com/questions/112643",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/86388/"
] | I have a client who has website with multiple pages. Now, each page has tabbed content which is accessible through `#`. For example:
```none
example.com/page1#content1
example.com/page1#content2
example.com/page1#content3
example.com/page2#content1
example.com/page2#content2
```
Now, when search engines index they a... | As it was mentioned in comments, the simplest possibility to address tabs with urls, is to address them with parameters instead of hashes, like `http://www.example.com/page-1?tab=2`.
While you correctly said, hashes will not be passed through the server to Google, parameters will.
A kind of solution is described unde... |
112,656 | <p>I recently signed up a hosting package, and installed WordPress from the control panel. I noticed there is <code>wp-cli.yml</code> in the web root folder. The file contains:</p>
<pre><code>apache_modules:
- mod_rewrite
</code></pre>
<p>Can I ask what is it for? Is it a good idea to leave it there even if I mig... | [
{
"answer_id": 112669,
"author": "JCL1178",
"author_id": 5757,
"author_profile": "https://webmasters.stackexchange.com/users/5757",
"pm_score": 3,
"selected": true,
"text": "<p>It’s a file that your hosting company is using to help them manage the availability of and updates to the WordP... | 2018/02/09 | [
"https://webmasters.stackexchange.com/questions/112656",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/85901/"
] | I recently signed up a hosting package, and installed WordPress from the control panel. I noticed there is `wp-cli.yml` in the web root folder. The file contains:
```
apache_modules:
- mod_rewrite
```
Can I ask what is it for? Is it a good idea to leave it there even if I might never use it? | It’s a file that your hosting company is using to help them manage the availability of and updates to the WordPress Command Line Interface. It’s supposed to be there, don’t mess with it. |
112,683 | <p>When visiting the website www.example.com/ the visitor should be redirected to the correct language version, e.g. www.example.com/en for english and www.example.com/es for spanish.</p>
<p>My current implementation only works when visiting www.example.com/index.var and redirects to www.example.com/index.en. Now I wa... | [
{
"answer_id": 113024,
"author": "Michael d",
"author_id": 86471,
"author_profile": "https://webmasters.stackexchange.com/users/86471",
"pm_score": 0,
"selected": false,
"text": "<p>I would just do this in PHP. I'm not sure how to do it in htaccess.</p>\n\n<p>I would make index.php :</p>... | 2018/02/10 | [
"https://webmasters.stackexchange.com/questions/112683",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/86424/"
] | When visiting the website www.example.com/ the visitor should be redirected to the correct language version, e.g. www.example.com/en for english and www.example.com/es for spanish.
My current implementation only works when visiting www.example.com/index.var and redirects to www.example.com/index.en. Now I want to rewr... | I think I've found the solution on Apache's SVN repository. (I haven't tested it yet)
[Configuration for Multilingual Site](https://svn.apache.org/viewvc/httpd/httpd/trunk/docs/conf/extra/httpd-manual.conf.in?view=markup)
[Configuration for Multilingual Error Pages](https://svn.apache.org/viewvc/httpd/httpd/trunk/d... |
112,686 | <p>For example, if there is an online shopping websites with thousands of small thumbnails of products and when you click over them it shows actual retina/full HD image over a popup. In this scenario, how we can ensure that Google or other bots should crawl only the retina/HD image and not the thumbnail when someone se... | [
{
"answer_id": 112690,
"author": "nikant25",
"author_id": 29419,
"author_profile": "https://webmasters.stackexchange.com/users/29419",
"pm_score": 1,
"selected": false,
"text": "<p>Apply responsive images: </p>\n\n<ul>\n<li><p><strong>Use relative sizes for images</strong>. For example: ... | 2018/02/10 | [
"https://webmasters.stackexchange.com/questions/112686",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/86426/"
] | For example, if there is an online shopping websites with thousands of small thumbnails of products and when you click over them it shows actual retina/full HD image over a popup. In this scenario, how we can ensure that Google or other bots should crawl only the retina/HD image and not the thumbnail when someone searc... | Link the thumbnails to the images for users that don't have JavaScript enabled. Like this:
```
<a href="full-image.jpg"><img src="thumb-nail.jpg"></a>
```
As long as users can see the full image by clicking, you can disable the click event on the link using JavaScript without incurring a penalty from Google.
Google... |
112,692 | <p>I have 3 domains. 2 are Addon domains, 1 primary on my cPanel. I do not know if this is possible but from <code>.htaccess</code> how can I set this up:</p>
<ul>
<li><code>example1.com</code> (Primary)</li>
<li><code>example2.com</code></li>
<li><code>example3.com</code></li>
</ul>
<p>This is what I want to do:</p>... | [
{
"answer_id": 112690,
"author": "nikant25",
"author_id": 29419,
"author_profile": "https://webmasters.stackexchange.com/users/29419",
"pm_score": 1,
"selected": false,
"text": "<p>Apply responsive images: </p>\n\n<ul>\n<li><p><strong>Use relative sizes for images</strong>. For example: ... | 2018/02/11 | [
"https://webmasters.stackexchange.com/questions/112692",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/81444/"
] | I have 3 domains. 2 are Addon domains, 1 primary on my cPanel. I do not know if this is possible but from `.htaccess` how can I set this up:
* `example1.com` (Primary)
* `example2.com`
* `example3.com`
This is what I want to do:
* `example1.com` > HTTP to HTTPS
* `example2.com` > HTTP to HTTPS
* `example3.com` > HTT... | Link the thumbnails to the images for users that don't have JavaScript enabled. Like this:
```
<a href="full-image.jpg"><img src="thumb-nail.jpg"></a>
```
As long as users can see the full image by clicking, you can disable the click event on the link using JavaScript without incurring a penalty from Google.
Google... |
112,694 | <p>I know that it is allowed in SEO to use comma as separator but, is it ok to add comma as a separator between keywords in <code>title</code> without leaving a space?</p>
<p>Example:</p>
<pre class="lang-html prettyprint-override"><code><title>High blood pressure,Hypertension</title>
</code></pre>
| [
{
"answer_id": 112711,
"author": "Evgeniy",
"author_id": 43910,
"author_profile": "https://webmasters.stackexchange.com/users/43910",
"pm_score": 3,
"selected": true,
"text": "<p>You may use any sign as separator, but you should always keep the readability in view. Suffering readability ... | 2018/02/11 | [
"https://webmasters.stackexchange.com/questions/112694",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/84742/"
] | I know that it is allowed in SEO to use comma as separator but, is it ok to add comma as a separator between keywords in `title` without leaving a space?
Example:
```html
<title>High blood pressure,Hypertension</title>
``` | You may use any sign as separator, but you should always keep the readability in view. Suffering readability will for sure suffer your SERP CTR - and this would be too bad, to get an impression but to loose the click.
Google will recognize your keywords anyway - it will do it based on words placed befor and after word... |
112,701 | <p>I want to ask about HTTP 410 Gone if I can use it on Blogger Blogspot. As we know by default the wrong URL returned to 404 Not Found, but I want to remove some old blog posts and I want to return them to HTTP 410 Gone instead of 404 Not Found.</p>
<p>In my template this code is the only one used to handle with Erro... | [
{
"answer_id": 112703,
"author": "Alex",
"author_id": 85669,
"author_profile": "https://webmasters.stackexchange.com/users/85669",
"pm_score": 0,
"selected": false,
"text": "<p>You can not. But instead i would suggest you to use a 301 redirect. </p>\n\n<p>This is a way better solution. A... | 2018/02/11 | [
"https://webmasters.stackexchange.com/questions/112701",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/78999/"
] | I want to ask about HTTP 410 Gone if I can use it on Blogger Blogspot. As we know by default the wrong URL returned to 404 Not Found, but I want to remove some old blog posts and I want to return them to HTTP 410 Gone instead of 404 Not Found.
In my template this code is the only one used to handle with Error pages:
... | There is no way to return a status code 410 from Google Blogger. However you'll notice that a 404 is almost as good as a 410 in most cases, especially if your host has unlimited bandwidth like Blogger.
If you want to specifically notify an end user that the post is gone, you can always use a code snippet in your custo... |
112,706 | <p>I currently have an accordion with my content in on my pages. I know Google is starting to crawl websites in mobile and hidden content shouldn't be an issue at the moment but I'm mixing it up a little and wondering if Google will still read the content and give it SEO value e.g.</p>
<ul>
<li>Top Accordion - Open</l... | [
{
"answer_id": 112708,
"author": "Raul Reyes",
"author_id": 50569,
"author_profile": "https://webmasters.stackexchange.com/users/50569",
"pm_score": 2,
"selected": true,
"text": "<p>Its really up to you and you don't need to worry about leaving the accordion open or closed.</p>\n\n<p>Let... | 2018/02/12 | [
"https://webmasters.stackexchange.com/questions/112706",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/86453/"
] | I currently have an accordion with my content in on my pages. I know Google is starting to crawl websites in mobile and hidden content shouldn't be an issue at the moment but I'm mixing it up a little and wondering if Google will still read the content and give it SEO value e.g.
* Top Accordion - Open
* Rest of Accord... | Its really up to you and you don't need to worry about leaving the accordion open or closed.
Let's say that the content is hidden to the user, accordions uses JavaScript to hide or show the content, as long as the javascript is accessible to Googlebot you won't have any issue with your SEO, because [Google can access ... |
112,724 | <p>I'm seeing error logs on a website because something tried to access:</p>
<p><code>example.com/&wd=test</code> </p>
<p>the HTTP_REFERER is <code>http://www.baidu.com/s?wd=FQQ</code></p>
<p>the error is from ASP.net:</p>
<blockquote>
<p>A potentially dangerous Request.Path value was detected from the clien... | [
{
"answer_id": 112738,
"author": "Evgeniy",
"author_id": 43910,
"author_profile": "https://webmasters.stackexchange.com/users/43910",
"pm_score": 2,
"selected": false,
"text": "<p>This is a request from a kind of Baidu searchbot. Baidu is a search engine from China. Like Google has its o... | 2018/02/12 | [
"https://webmasters.stackexchange.com/questions/112724",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/30407/"
] | I'm seeing error logs on a website because something tried to access:
`example.com/&wd=test`
the HTTP\_REFERER is `http://www.baidu.com/s?wd=FQQ`
the error is from ASP.net:
>
> A potentially dangerous Request.Path value was detected from the client (`&`)
>
>
>
The `&` char is not allowed in that position, it ... | This is a request from a kind of Baidu searchbot. Baidu is a search engine from China. Like Google has its own searchbot, Googlebot, so Baidu has its own. There is nothing suspicious and dangerous on this request.
If you don't like it, from statistical point of view, you can block it with your robots.txt, like
```
#... |
112,886 | <p>I admin a wiki site running MediaWiki 1.29 and I have a problem collapsing the TOC on pages.</p>
<p>I would be interesting in keeping the <em>Contents</em> box, but loading the page with it collapsed by default.</p>
<p>It appears there is a simple solution here <a href="https://www.mediawiki.org/wiki/Manual_talk:T... | [
{
"answer_id": 112894,
"author": "Michael d",
"author_id": 86471,
"author_profile": "https://webmasters.stackexchange.com/users/86471",
"pm_score": 1,
"selected": false,
"text": "<p>In the media wiki link provided above, it explains that the following code needs to be implemented:</p>\n\... | 2018/02/18 | [
"https://webmasters.stackexchange.com/questions/112886",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/78911/"
] | I admin a wiki site running MediaWiki 1.29 and I have a problem collapsing the TOC on pages.
I would be interesting in keeping the *Contents* box, but loading the page with it collapsed by default.
It appears there is a simple solution here <https://www.mediawiki.org/wiki/Manual_talk:Table_of_contents#Improved_Soluti... | After consulting with MediaWiki support desk, I finally had confirmation that the fact that the function is listed in the table *How to migrate* with no text in the column *Replaced by* means this function was removed for good.
This is not clearly explained, in my opinion.
So the function cannot be used out-of-the-... |
112,925 | <p>who.is is a service that gives people whois information of websites and archive.org automatically saves people's website. How can I block them using htaccess from getting access with my website?</p>
| [
{
"answer_id": 112928,
"author": "Michael d",
"author_id": 86471,
"author_profile": "https://webmasters.stackexchange.com/users/86471",
"pm_score": 0,
"selected": false,
"text": "<p>You can block archive.org from crawling your site in your robots.txt file with </p>\n\n<pre><code>User-age... | 2018/02/19 | [
"https://webmasters.stackexchange.com/questions/112925",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/75469/"
] | who.is is a service that gives people whois information of websites and archive.org automatically saves people's website. How can I block them using htaccess from getting access with my website? | Whois does not crawl your website to gather the info, therefore there is nothing to block. However, you can set your info to **private** with your registrar.
For the Internet Archive, you can do this:
in .htaccess, you can use this to block bots from accessing your site:
```
RewriteEngine On
RewriteCond %{HTTP_USER_... |
112,978 | <p>We have a browser games portal and would like to measure retention for specific games via Google Analytics.</p>
<p>So, basically, the question we want to answer with data is this one:
Of the people who play game X, what % returns to game X within 7 days.</p>
<p>In our case, a game play is a pageview (or an impress... | [
{
"answer_id": 112988,
"author": "Michael d",
"author_id": 86471,
"author_profile": "https://webmasters.stackexchange.com/users/86471",
"pm_score": 0,
"selected": false,
"text": "<p>I'm not sure if there is a way to do that in analytics. But what you can do is create a new tracking code ... | 2018/02/21 | [
"https://webmasters.stackexchange.com/questions/112978",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/86715/"
] | We have a browser games portal and would like to measure retention for specific games via Google Analytics.
So, basically, the question we want to answer with data is this one:
Of the people who play game X, what % returns to game X within 7 days.
In our case, a game play is a pageview (or an impression with the game... | To set this up you'll need two additions to your code:
1. Set a Cookie value for the game they're playing. Maybe just steal the path. Attach the event to game activation.
2. Custom event if this cookie is already set and matches the game they're playing.
The code would look like this (after GA container initiation):
... |
113,010 | <p>I'm looking for a way to setup a funnels to track sign up form conversions for 200 companies that use a single site under a single domain.</p>
<p>Everything is under a single account, single property (UA#), but there are 15 views for each of the categories such as sports, education, or products. Each category is a ... | [
{
"answer_id": 113012,
"author": "Michael d",
"author_id": 86471,
"author_profile": "https://webmasters.stackexchange.com/users/86471",
"pm_score": 1,
"selected": false,
"text": "<p>You can create individual tracking IDs for each company and add those to the page. So you can make a new s... | 2018/02/22 | [
"https://webmasters.stackexchange.com/questions/113010",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/59662/"
] | I'm looking for a way to setup a funnels to track sign up form conversions for 200 companies that use a single site under a single domain.
Everything is under a single account, single property (UA#), but there are 15 views for each of the categories such as sports, education, or products. Each category is a GA view fi... | You can create individual tracking IDs for each company and add those to the page. So you can make a new site on analytics named example.comNIKE and add the UA tracker. It won't create any additional bloat to the page as the .js file is already loaded and cached. It'll then show the referral page for each category.
Y... |
113,028 | <p>I have:</p>
<ul>
<li>example.com/en/product-a-en </li>
<li>example.com/es/product-a-es</li>
<li>example.com/ru/product-a-ru</li>
</ul>
<p>If i use this:</p>
<blockquote>
<p>On-page Markup Use the <code>lang</code> attribute in the HTML tag: <code><html lang="en"></code></p>
<p>Use <code>rel</code> <e... | [
{
"answer_id": 113032,
"author": "Michael d",
"author_id": 86471,
"author_profile": "https://webmasters.stackexchange.com/users/86471",
"pm_score": 0,
"selected": false,
"text": "<p>The way I see it, sitemap.xml is used to tell robots what URLs you want them to crawl the most. It helps G... | 2018/02/23 | [
"https://webmasters.stackexchange.com/questions/113028",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/86771/"
] | I have:
* example.com/en/product-a-en
* example.com/es/product-a-es
* example.com/ru/product-a-ru
If i use this:
>
> On-page Markup Use the `lang` attribute in the HTML tag: `<html lang="en">`
>
>
> Use `rel` *alternate* links to the same page in other languages as suggested by Google:
>
>
>
> ```
> <link rel=... | It's best to do it for every language. (see: [hreflang: the ultimate guide on Yoast](https://yoast.com/hreflang-ultimate-guide/))
Here is a sitemap xml file for your example:
```
<url>
<loc>http://www.example.com/</loc>
<xhtml:link rel="alternate" hreflang="en" href="http://www.example.com/en/"/>
<xhtml:link re... |
113,069 | <p>This is my first question on StackExchange so bear with me, here is a brief breakdown of my current setup:</p>
<ul>
<li>Two different domains, two different TLDs (<strong>.dk</strong> and <strong>.de</strong>) on the same hosting plan</li>
<li>for the sake of privacy, let's assume the domain names are <em>"example ... | [
{
"answer_id": 113060,
"author": "Michael d",
"author_id": 86471,
"author_profile": "https://webmasters.stackexchange.com/users/86471",
"pm_score": -1,
"selected": false,
"text": "<p>The top SEO specialists and SEO websites have confirmed that updating your page routinely does impact you... | 2018/02/24 | [
"https://webmasters.stackexchange.com/questions/113069",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/86833/"
] | This is my first question on StackExchange so bear with me, here is a brief breakdown of my current setup:
* Two different domains, two different TLDs (**.dk** and **.de**) on the same hosting plan
* for the sake of privacy, let's assume the domain names are *"example website"*, i.e. `https://www.example.dk` and `http... | I am sorry, but your friend is generally wrong on his point that small changes is good for search performance. This is, simply, not how search works.
Here are a few points to consider.
Templated Content v.s. Content
------------------------------
Google and other search engines can easily compare more than one page ... |
113,087 | <p>As the title states..</p>
<p>I have the following organization to my project but am unable to access the related CSS and JavaScript files from within my HTML code --unless I create symbolic links from the file to my web root. Is this normal behavior for Apache or does the problem lie elsewhere?</p>
<p><strong>If... | [
{
"answer_id": 113096,
"author": "Stephen Ostermiller",
"author_id": 14543,
"author_profile": "https://webmasters.stackexchange.com/users/14543",
"pm_score": 0,
"selected": false,
"text": "<p>The document root is security feature. There are lots of things you don't want accessible thro... | 2018/02/25 | [
"https://webmasters.stackexchange.com/questions/113087",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/86864/"
] | As the title states..
I have the following organization to my project but am unable to access the related CSS and JavaScript files from within my HTML code --unless I create symbolic links from the file to my web root. Is this normal behavior for Apache or does the problem lie elsewhere?
**If I remove the symbolic li... | This doesn't really have anything to do with Apache or server-side permissions, but more to do with how the browser resolves relative client-side URLs (according to [RFC 3986](https://www.rfc-editor.org/rfc/rfc3986#section-5.4.2 "Uniform Resource Identifier (URI): Generic Syntax - 5.4.2 Abnormal Syntax")).
I'm assumin... |
113,088 | <p>I haven't developed a website in quite some time, and am currently working on one for a friend's small company. I put together a simple design, and have been able to get the content itself to be responsive (responsive design is all very new to me), but I'm not sure what to do about the social buttons I've put in the... | [
{
"answer_id": 113096,
"author": "Stephen Ostermiller",
"author_id": 14543,
"author_profile": "https://webmasters.stackexchange.com/users/14543",
"pm_score": 0,
"selected": false,
"text": "<p>The document root is security feature. There are lots of things you don't want accessible thro... | 2018/02/25 | [
"https://webmasters.stackexchange.com/questions/113088",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/40393/"
] | I haven't developed a website in quite some time, and am currently working on one for a friend's small company. I put together a simple design, and have been able to get the content itself to be responsive (responsive design is all very new to me), but I'm not sure what to do about the social buttons I've put in the he... | This doesn't really have anything to do with Apache or server-side permissions, but more to do with how the browser resolves relative client-side URLs (according to [RFC 3986](https://www.rfc-editor.org/rfc/rfc3986#section-5.4.2 "Uniform Resource Identifier (URI): Generic Syntax - 5.4.2 Abnormal Syntax")).
I'm assumin... |
113,091 | <p>How can the <em>index.html</em> file be served from a sub directory of the <code>DocumentRoot</code> without using system level links?</p>
<p>For example:</p>
<ul>
<li>Let the document root of an apache 2.4 virtual host be <code>dirA</code></li>
<li>Let the the base url (VirtualHost) be <code>http://test.local/</c... | [
{
"answer_id": 113112,
"author": "Stephen Ostermiller",
"author_id": 14543,
"author_profile": "https://webmasters.stackexchange.com/users/14543",
"pm_score": 1,
"selected": false,
"text": "<p>Your rewrite rule is close. You just need to restrict it a bit more. </p>\n\n<pre><code>Rewri... | 2018/02/26 | [
"https://webmasters.stackexchange.com/questions/113091",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/86864/"
] | How can the *index.html* file be served from a sub directory of the `DocumentRoot` without using system level links?
For example:
* Let the document root of an apache 2.4 virtual host be `dirA`
* Let the the base url (VirtualHost) be `http://test.local/`
* Let index.html reside in `dirA/dirB/`
* Let `http://test.loca... | You may want the mod\_rewrite solution that @Stephen suggests, however, also consider `DirectoryIndex` (depending on your requirements).
The `DirectoryIndex` document tells Apache which file to serve when you request a directory. This often defaults to `index.html` in the directory being requested, however, you can sp... |
113,114 | <p>I have been getting an abuse report via my hosting company which is reported by other people, and my host has been threatening to terminate the hosting/account.</p>
<p>The abuse report is sent because I am displaying domain WHOIS information on my website which the reporter claims is private information and I am no... | [
{
"answer_id": 113103,
"author": "Petr Průcha",
"author_id": 86850,
"author_profile": "https://webmasters.stackexchange.com/users/86850",
"pm_score": 0,
"selected": false,
"text": "<p>Google robots cannot read image. The alt help them. You should write to what is on the image. \nIt's on... | 2018/02/26 | [
"https://webmasters.stackexchange.com/questions/113114",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/86892/"
] | I have been getting an abuse report via my hosting company which is reported by other people, and my host has been threatening to terminate the hosting/account.
The abuse report is sent because I am displaying domain WHOIS information on my website which the reporter claims is private information and I am not allowed ... | `alt` is a required attribute in HTML for the `<img>` tag. The text inside is used in place of an image should the image be missing or the browser, such as a screen reader, cannot view the image. It's helpful for accessibility, that is, users who are blind or otherwise unable to view your image, too. |
113,153 | <p>I searched Google for my title match website is not there in the first 300.</p>
<p>Domain age close to 9 years. The website has been live since then, though I have actively started maintaining it from November of last year.</p>
<p>The domain is an exact match for the title search.</p>
<p>When I look for <code>sit... | [
{
"answer_id": 113164,
"author": "Harpreet Munjal",
"author_id": 86856,
"author_profile": "https://webmasters.stackexchange.com/users/86856",
"pm_score": 1,
"selected": false,
"text": "<p>Make sure you are using Http: in the site Url... If you are in WordPress then you can change to HTTP... | 2018/02/28 | [
"https://webmasters.stackexchange.com/questions/113153",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/86949/"
] | I searched Google for my title match website is not there in the first 300.
Domain age close to 9 years. The website has been live since then, though I have actively started maintaining it from November of last year.
The domain is an exact match for the title search.
When I look for `site:example.com` I see results ... | It seems that your server is allowing both connections. The main problem is that you are generating [duplicate content](https://support.google.com/webmasters/answer/66359?hl=en).
It's [well known](https://security.googleblog.com/2016/09/moving-towards-more-secure-web.html) that [Google prefers https](https://support.g... |
113,160 | <p>The problem i noticed with my static website. Is that the css is not renewing itself once I updated the website code at areas (Adding new pictues, text, colours).</p>
<p>I checked immediately once i updated.
Everything renewed properly except the css.
(The colours didnt change)</p>
<p>Heres my .htaccess for cache<... | [
{
"answer_id": 113162,
"author": "George",
"author_id": 86667,
"author_profile": "https://webmasters.stackexchange.com/users/86667",
"pm_score": 2,
"selected": false,
"text": "<p>This is a double-edged sword. CSS is normally set to be cached for a very long time in order to optimize your... | 2018/03/01 | [
"https://webmasters.stackexchange.com/questions/113160",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/81444/"
] | The problem i noticed with my static website. Is that the css is not renewing itself once I updated the website code at areas (Adding new pictues, text, colours).
I checked immediately once i updated.
Everything renewed properly except the css.
(The colours didnt change)
Heres my .htaccess for cache
```
<filesMatch ... | This is a double-edged sword. CSS is normally set to be cached for a very long time in order to optimize your website loading timings after the 1st load. Hence the line in your `.htacccess` file. Don't change it until you really know what you are doing.
In case your website is not using CMS (I have to assume here sinc... |
113,178 | <p>Crawlers registered to Facebook (ipv6 ending in :face:b00c::1) were slamming our site, seeing 10s of thousands of hits in just 20 minutes. We noticed they didn't have a user agent in the header and implemented a rule on cloudflare to protect ourselves.</p>
<p>It appears they've patched the crawler and added a user ... | [
{
"answer_id": 113179,
"author": "Michael d",
"author_id": 86471,
"author_profile": "https://webmasters.stackexchange.com/users/86471",
"pm_score": 3,
"selected": false,
"text": "<p>Sources say that Facebook/Externalhit does not respect crawl-delay in robots.txt because Facebook doesn't ... | 2018/03/01 | [
"https://webmasters.stackexchange.com/questions/113178",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/61597/"
] | Crawlers registered to Facebook (ipv6 ending in :face:b00c::1) were slamming our site, seeing 10s of thousands of hits in just 20 minutes. We noticed they didn't have a user agent in the header and implemented a rule on cloudflare to protect ourselves.
It appears they've patched the crawler and added a user agent 'Ext... | <https://developers.facebook.com/bugs/1894024420610804>
Per the answer from Facebook, any page shared on Facebook should expect that if their content is shared Facebook crawlers will increase traffic 10-20x that number of shares.
This sounds like Facebook is scraping the content every single time it's accessed, with ... |
113,225 | <p>Say, when you have a fair amount of text that you need to alt. (I realize it's best to pull it out of an image and into plain text, if possible ... but things aren't always ideal, unfortunately ... and when they're not, it'd be good to have a consistent, reliable approach.)</p>
<p>Sometimes you want to emphasize a ... | [
{
"answer_id": 113227,
"author": "Michael d",
"author_id": 86471,
"author_profile": "https://webmasters.stackexchange.com/users/86471",
"pm_score": 2,
"selected": false,
"text": "<p>You can style alt text. You can make alt text bold, add a background or change its color. You can also add... | 2018/03/02 | [
"https://webmasters.stackexchange.com/questions/113225",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/68787/"
] | Say, when you have a fair amount of text that you need to alt. (I realize it's best to pull it out of an image and into plain text, if possible ... but things aren't always ideal, unfortunately ... and when they're not, it'd be good to have a consistent, reliable approach.)
Sometimes you want to emphasize a headline, ... | You can style alt text. You can make alt text bold, add a background or change its color. You can also add linebreaks. I don't think it's possible to make some words bold and some words normal, but if there's a solution I'd like to have it as well.
Here is an example:
```
<img src="foo.jpg" alt="Line 1
Line 2" />
<br... |
113,311 | <p>Is it possible to access GPS data (Country name, City name, Street name and house number) in real time on a smart phone with JavaScript?</p>
| [
{
"answer_id": 113314,
"author": "Michael d",
"author_id": 86471,
"author_profile": "https://webmasters.stackexchange.com/users/86471",
"pm_score": 2,
"selected": false,
"text": "<p>Javascript Geolocation requires special permissions. Chrome used to allow geoloc to be more easily accessi... | 2018/03/06 | [
"https://webmasters.stackexchange.com/questions/113311",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/87104/"
] | Is it possible to access GPS data (Country name, City name, Street name and house number) in real time on a smart phone with JavaScript? | Javascript Geolocation requires special permissions. Chrome used to allow geoloc to be more easily accessible but has since restricted most code from accessing it. Here are a few examples of things you can do:
Here is an example from Google. You need secure origin https, a map api key and likely permissions from clien... |
113,326 | <p>We have have recently split from our parent company and are now an independent company with a brand new website. </p>
<p>The parent company has a very authorative site and (being new) we have none. We are getting our pages on the parent company site redirected to our new website. Product pages are getting a direct ... | [
{
"answer_id": 113314,
"author": "Michael d",
"author_id": 86471,
"author_profile": "https://webmasters.stackexchange.com/users/86471",
"pm_score": 2,
"selected": false,
"text": "<p>Javascript Geolocation requires special permissions. Chrome used to allow geoloc to be more easily accessi... | 2018/03/07 | [
"https://webmasters.stackexchange.com/questions/113326",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/87123/"
] | We have have recently split from our parent company and are now an independent company with a brand new website.
The parent company has a very authorative site and (being new) we have none. We are getting our pages on the parent company site redirected to our new website. Product pages are getting a direct 301, but s... | Javascript Geolocation requires special permissions. Chrome used to allow geoloc to be more easily accessible but has since restricted most code from accessing it. Here are a few examples of things you can do:
Here is an example from Google. You need secure origin https, a map api key and likely permissions from clien... |
113,330 | <p>I have an application which is hosted on a subdomain URL of my client's primary domain. Below is the example of how my primary domain is and how the subdomain is:</p>
<ul>
<li>Primary domain: <code>example.com</code> </li>
<li>Subdomain: <code>replacephone-carriername.example.com</code></li>
</ul>
<p>Now please he... | [
{
"answer_id": 113314,
"author": "Michael d",
"author_id": 86471,
"author_profile": "https://webmasters.stackexchange.com/users/86471",
"pm_score": 2,
"selected": false,
"text": "<p>Javascript Geolocation requires special permissions. Chrome used to allow geoloc to be more easily accessi... | 2018/03/07 | [
"https://webmasters.stackexchange.com/questions/113330",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/13854/"
] | I have an application which is hosted on a subdomain URL of my client's primary domain. Below is the example of how my primary domain is and how the subdomain is:
* Primary domain: `example.com`
* Subdomain: `replacephone-carriername.example.com`
Now please help me understand below points:
1. Does my Primary Domain ... | Javascript Geolocation requires special permissions. Chrome used to allow geoloc to be more easily accessible but has since restricted most code from accessing it. Here are a few examples of things you can do:
Here is an example from Google. You need secure origin https, a map api key and likely permissions from clien... |
113,346 | <p>For a client that need a re-design and a Plugin that exist only for WordPress I would like to install WordPress in a subdirectory of a website that is built with MODX CMS.</p>
<p>Is this possible to install WordPress into a subdirectory while the website will run normally? Is for test / developing purpose.</p>
<p... | [
{
"answer_id": 113350,
"author": "Evgeniy",
"author_id": 43910,
"author_profile": "https://webmasters.stackexchange.com/users/43910",
"pm_score": 1,
"selected": false,
"text": "<blockquote>\n <p>I would like to install WordPress in a subdirectory of a website that is built with MODX CMS... | 2018/03/07 | [
"https://webmasters.stackexchange.com/questions/113346",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/87142/"
] | For a client that need a re-design and a Plugin that exist only for WordPress I would like to install WordPress in a subdirectory of a website that is built with MODX CMS.
Is this possible to install WordPress into a subdirectory while the website will run normally? Is for test / developing purpose.
Does this cause p... | >
> I would like to install WordPress in a subdirectory of a website that is built with MODX CMS.
>
>
>
God, why in the world do you want to do so? Both sites are using htaccess to create SEF urls - you will be never able to correctly debug things if they gett wrong. And in my experience they will. htaccess is ver... |
113,371 | <p>I am running my own webserver with nginx on ubuntu 17.10. I have opened ports 80 and 443.</p>
<p>Trying to get the HTTP to HTTPS redirect working, but everthing i seem to have tried fails. i am still getting the <strong>400 Bad Request The plain HTTP request was sent to HTTPS port error</strong> when i navigate dir... | [
{
"answer_id": 114160,
"author": "David K.",
"author_id": 9123,
"author_profile": "https://webmasters.stackexchange.com/users/9123",
"pm_score": 2,
"selected": false,
"text": "<p>What you have here is not the nginx conf, but the sites conf file. Your 301 redirect from http to https seems... | 2018/03/08 | [
"https://webmasters.stackexchange.com/questions/113371",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/87174/"
] | I am running my own webserver with nginx on ubuntu 17.10. I have opened ports 80 and 443.
Trying to get the HTTP to HTTPS redirect working, but everthing i seem to have tried fails. i am still getting the **400 Bad Request The plain HTTP request was sent to HTTPS port error** when i navigate directly to the http site.... | What you have here is not the nginx conf, but the sites conf file. Your 301 redirect from http to https seems correct, but you are requiring a secure connection prior to accepting the connection through https, thus triggering a 400 error.
Just comment out the `ssl on;` line like so:
```
server {
listen 443 ssl;
... |
113,372 | <p>Planning structured data for my technical documentation website, I stuck on the decision how described components should be presented. </p>
<p>I consider <code>Course</code> versus <code>Product</code> (from <a href="http://schema.org/" rel="nofollow noreferrer">schema.org</a>). Or is there better choice?</p>
<hr>... | [
{
"answer_id": 114160,
"author": "David K.",
"author_id": 9123,
"author_profile": "https://webmasters.stackexchange.com/users/9123",
"pm_score": 2,
"selected": false,
"text": "<p>What you have here is not the nginx conf, but the sites conf file. Your 301 redirect from http to https seems... | 2018/03/08 | [
"https://webmasters.stackexchange.com/questions/113372",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/87175/"
] | Planning structured data for my technical documentation website, I stuck on the decision how described components should be presented.
I consider `Course` versus `Product` (from [schema.org](http://schema.org/)). Or is there better choice?
---
**Background:**
There are two products:
* Free package *FP*
* Premium ... | What you have here is not the nginx conf, but the sites conf file. Your 301 redirect from http to https seems correct, but you are requiring a secure connection prior to accepting the connection through https, thus triggering a 400 error.
Just comment out the `ssl on;` line like so:
```
server {
listen 443 ssl;
... |
113,387 | <p>I've recently develop a website with multiple languages. The main goal was that people living in UK would be able to find the website using <code>google.co.uk</code> (not <code>google.fr</code>) by entering French keywords.</p>
<p>The structure of the website is really basic:</p>
<ul>
<li><code>index.php</code></l... | [
{
"answer_id": 113390,
"author": "Michael d",
"author_id": 86471,
"author_profile": "https://webmasters.stackexchange.com/users/86471",
"pm_score": 1,
"selected": false,
"text": "<p>Because your domain is .co.uk, it will rankly highly on Google.co.uk for users in the UK. People in the UK... | 2018/03/08 | [
"https://webmasters.stackexchange.com/questions/113387",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/87183/"
] | I've recently develop a website with multiple languages. The main goal was that people living in UK would be able to find the website using `google.co.uk` (not `google.fr`) by entering French keywords.
The structure of the website is really basic:
* `index.php`
* `about.php`
* `FR`
+ `index.php` (French)
+ `about.p... | Because your domain is .co.uk, it will rankly highly on Google.co.uk for users in the UK. People in the UK generally speak English and so your English pages naturally rank much higher overall.
Have you tried using google.fr and seeing if your French pages rank there for people in France?
If you are trying to target F... |
113,460 | <p>All my URLs has been indexed and is showing in Google search result except for <code>/product</code> directory. For example you can search in Google: </p>
<pre><code>site:https://www.zanemroozi.com/product/
</code></pre>
<p>Google Search Console is showing the indexed directory but not showing in Google search res... | [
{
"answer_id": 113462,
"author": "Emirodgar",
"author_id": 86914,
"author_profile": "https://webmasters.stackexchange.com/users/86914",
"pm_score": 0,
"selected": false,
"text": "<p>Use <a href=\"https://support.google.com/webmasters/answer/6066468?hl=en\" rel=\"nofollow noreferrer\">Fet... | 2018/03/12 | [
"https://webmasters.stackexchange.com/questions/113460",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/87261/"
] | All my URLs has been indexed and is showing in Google search result except for `/product` directory. For example you can search in Google:
```
site:https://www.zanemroozi.com/product/
```
Google Search Console is showing the indexed directory but not showing in Google search result. Any suggestions? | site:example.com is very useful, but it's not 100% accurate. Many pages may be indexed with Google that aren't shown with the site: search parameter. It's quite common for websites to have more pages indexed according to search console than displayed using site: and in fact, almost all of my sites have more pages index... |
113,578 | <p>There's this weird issue that's been keeping me wondering what's happening. I apologize for the lack of specificity, but I need to abide to a strict NDA policy. So here goes my question: </p>
<p><strong>Is there any way to pinpoint the source of redirection that's occurring when accessing a no-more-existing subdoma... | [
{
"answer_id": 113592,
"author": "Michael d",
"author_id": 86471,
"author_profile": "https://webmasters.stackexchange.com/users/86471",
"pm_score": -1,
"selected": false,
"text": "<p>If you want to see which URL is redirect to your website, you can use the PHP parameter <code>HTTP_Refere... | 2018/03/15 | [
"https://webmasters.stackexchange.com/questions/113578",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/86833/"
] | There's this weird issue that's been keeping me wondering what's happening. I apologize for the lack of specificity, but I need to abide to a strict NDA policy. So here goes my question:
**Is there any way to pinpoint the source of redirection that's occurring when accessing a no-more-existing subdomain of a website*... | >
> In any case, I tried to deny access to `http://oldsubdomain.example.com` through a .htaccess directive:
>
>
>
> ```
> RewriteRule ^oldsubdomain.example.com - [F]
>
> ```
>
> To my surprise, for some reason the directive is ignored. The reason as to why it doesn't work is still puzzling me. And by "doesn't wor... |
113,677 | <p>I have a WordPress site on a domain that used to be <code>HTTPS</code>, example domain <code>https://example.com</code>.</p>
<p>I now want to remove HTTPS temporarily. How do I do that?</p>
<p>I have tried to add the following to my <code>.htaccess</code>:</p>
<pre><code># BEGIN WordPress
<IfModule mod_rewrite... | [
{
"answer_id": 113689,
"author": "Timothy Frew",
"author_id": 72100,
"author_profile": "https://webmasters.stackexchange.com/users/72100",
"pm_score": -1,
"selected": false,
"text": "<p>Make sure wordpress isnt trying to force you back to its configured 'home' url. If that has HTTPS set ... | 2018/03/19 | [
"https://webmasters.stackexchange.com/questions/113677",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/39048/"
] | I have a WordPress site on a domain that used to be `HTTPS`, example domain `https://example.com`.
I now want to remove HTTPS temporarily. How do I do that?
I have tried to add the following to my `.htaccess`:
```
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L... | As for me, on trying to visit your domain - i get no error at both versions http and https. The certificate is valid, like on screenshot:
[](https://i.stack.imgur.com/LVOK7.png)
The only thing you should do is to redirect http version to https correctl... |
113,717 | <p>Say I have a web shop with a product (optimus-prime), in a category (superheros) such that it has the URL:</p>
<pre class="lang-none prettyprint-override"><code>www.example.com/superheroes/optimus-prime
</code></pre>
<p>Now I want to prepend the product ID (99) to the product name in the URL, so that the URL becom... | [
{
"answer_id": 113719,
"author": "Henry Visotski",
"author_id": 78970,
"author_profile": "https://webmasters.stackexchange.com/users/78970",
"pm_score": 3,
"selected": false,
"text": "<p>You should definitely use the ID version of the URL, as it makes sense for development. In fact, your... | 2018/03/20 | [
"https://webmasters.stackexchange.com/questions/113717",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/87547/"
] | Say I have a web shop with a product (optimus-prime), in a category (superheros) such that it has the URL:
```none
www.example.com/superheroes/optimus-prime
```
Now I want to prepend the product ID (99) to the product name in the URL, so that the URL becomes:
```none
www.example.com/superheroes/99-optimus-prime
``... | How
---
* Include the id in a sensible place. Easiest is have .../product/$id/name-of-product etc.
+ works with pretty much every routing system, no regexes
* Add a <link rel=canonical> (or however you spell it, it’s a while since I had to do this) to a url with just the id ¹
* When handling requests, if the url does... |
113,724 | <p>I am currently having a problem with my website's HTTPS.
I already configured in my WordPress admin to force SSL and display the HTTPS on my website link.</p>
<p>When I tried to enter <code>https://wwww.example.com</code> in my browser's search engine the green padlock comes out.</p>
<p>But when I use <code>exampl... | [
{
"answer_id": 113728,
"author": "MrWhite",
"author_id": 1243,
"author_profile": "https://webmasters.stackexchange.com/users/1243",
"pm_score": 2,
"selected": false,
"text": "<blockquote>\n <p>I already configured in my WordPress admin to force SSL</p>\n</blockquote>\n\n<p>Well, WordPre... | 2018/03/20 | [
"https://webmasters.stackexchange.com/questions/113724",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/-1/"
] | I am currently having a problem with my website's HTTPS.
I already configured in my WordPress admin to force SSL and display the HTTPS on my website link.
When I tried to enter `https://wwww.example.com` in my browser's search engine the green padlock comes out.
But when I use `example.com` the green padlock doesn't ... | >
> I already configured in my WordPress admin to force SSL
>
>
>
Well, WordPress doesn't appear to be holding up its end of the bargain; SSL is not being "forced".
**UPDATE:** Actually, if this is the setting I think you are referring to: "Always use HTTPS while in the admin panel." - then this only applies to t... |
113,782 | <h2>Preface</h2>
<p>I'm very much a neophyte regarding webservers. I'm setting up an Apache2 server and currently poring over the documentation.</p>
<p>I noticed that the <a href="https://httpd.apache.org/docs/2.4/mod/core.html#directory" rel="noreferrer"><code><Directory></code></a>, <a href="https://httpd.apa... | [
{
"answer_id": 113795,
"author": "Patrick Mevzek",
"author_id": 75842,
"author_profile": "https://webmasters.stackexchange.com/users/75842",
"pm_score": 2,
"selected": false,
"text": "<p>The difference is in the parameter type allowed:</p>\n\n<pre><code><Directory directory-path> .... | 2018/03/22 | [
"https://webmasters.stackexchange.com/questions/113782",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/87612/"
] | Preface
-------
I'm very much a neophyte regarding webservers. I'm setting up an Apache2 server and currently poring over the documentation.
I noticed that the [`<Directory>`](https://httpd.apache.org/docs/2.4/mod/core.html#directory), [`<Location>`](https://httpd.apache.org/docs/2.4/mod/core.html#location), and [`<F... | The difference is in the parameter type allowed:
```
<Directory directory-path> ... </Directory>
```
vs
```
<DirectoryMatch regex> ... </DirectoryMatch>
```
`DirectoryMatch` is a superset, feature wise as you will be able to code any path as a regex. The opposite is not true.
`Directory ~` is probably a late add... |
113,800 | <p>The following data comes from Google Analytics. Site is new. The site gets a traffic spike when published on Reddit, along with the traffic increase comes the "organic search" increase. Then when the traffic goes down after a few day s(which is expected because the traffic comes from Reddit), the "organic search" nu... | [
{
"answer_id": 115109,
"author": "garth",
"author_id": 58496,
"author_profile": "https://webmasters.stackexchange.com/users/58496",
"pm_score": 1,
"selected": false,
"text": "<p>On the basis that Google ranks sites based on their relevance to the user for a particular search topic, and o... | 2018/03/22 | [
"https://webmasters.stackexchange.com/questions/113800",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/87648/"
] | The following data comes from Google Analytics. Site is new. The site gets a traffic spike when published on Reddit, along with the traffic increase comes the "organic search" increase. Then when the traffic goes down after a few day s(which is expected because the traffic comes from Reddit), the "organic search" numbe... | On the basis that Google ranks sites based on their relevance to the user for a particular search topic, and one of the key ways that they do this is by assessing backlinks from popular sites, I would expect that whenever your page link is published on Reddit you will naturally see a positive corresponding movement in ... |
113,801 | <p>I have quite a large site that consists of some regular web pages in the root and a lot of Joomla sites in folders.</p>
<p>So it looks a little like this:</p>
<pre><code>- index.php (root)
- about.php (root)
- product.php (root)
/joomlasite1
/joomlasite2
/joomlasite3
</code></pre>
<p>I asked my web host to help p... | [
{
"answer_id": 113804,
"author": "MrWhite",
"author_id": 1243,
"author_profile": "https://webmasters.stackexchange.com/users/1243",
"pm_score": 3,
"selected": true,
"text": "<p>What you describe just sounds like a standard HTTP to HTTPS (and non-www to www) redirect, so it's not clear wh... | 2018/03/22 | [
"https://webmasters.stackexchange.com/questions/113801",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/64639/"
] | I have quite a large site that consists of some regular web pages in the root and a lot of Joomla sites in folders.
So it looks a little like this:
```
- index.php (root)
- about.php (root)
- product.php (root)
/joomlasite1
/joomlasite2
/joomlasite3
```
I asked my web host to help put a redirect in the `.htaccess` ... | What you describe just sounds like a standard HTTP to HTTPS (and non-www to www) redirect, so it's not clear why the webhost's directives failed in the way you suggest.
However, since you would expect each `/joomlasite` to have its own `.htaccess` file that also contains mod\_rewrite directives then this could well co... |
113,802 | <p>How do I remove legacy URLs that Google has decided to cache?</p>
<p>When we went live with our new site, we moved the old site to <code>legacy.example.com</code> for our staff to be able to access the old site. I'm guessing robots.txt wasn't updated and as such, Google decided to cache it.</p>
<p>Our DNS has a wi... | [
{
"answer_id": 113819,
"author": "Michael d",
"author_id": 86471,
"author_profile": "https://webmasters.stackexchange.com/users/86471",
"pm_score": 0,
"selected": false,
"text": "<p>In order to remove legacy.example.com/page from the search results, and have those results appear as examp... | 2018/03/22 | [
"https://webmasters.stackexchange.com/questions/113802",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/87653/"
] | How do I remove legacy URLs that Google has decided to cache?
When we went live with our new site, we moved the old site to `legacy.example.com` for our staff to be able to access the old site. I'm guessing robots.txt wasn't updated and as such, Google decided to cache it.
Our DNS has a wildcard redirect, so I think ... | If you move old content to new URLs where you don't want it to be found in search engines you have a few options.
* Use robots.txt to block the entire subdomain from crawling. In `legacy.example.com/robots.txt` put:
```
User-Agent: *
Disallow: /
```
* Require password protection to access the content on that domain.... |
113,860 | <p>Its a long time Google Search Console show me a 403 Error for below link.</p>
<p><code>Content/img/static/skins/</code></p>
<p>I searched this URL in linked from page Html source and even in inspect element browser (maybe something added with JavaScript) and there was not any link to this directory except it is us... | [
{
"answer_id": 113906,
"author": "Michael d",
"author_id": 86471,
"author_profile": "https://webmasters.stackexchange.com/users/86471",
"pm_score": 2,
"selected": false,
"text": "<p>Google may crawl URLs that it discovers in your javascript, which it seems to have done here.</p>\n\n<p>Th... | 2018/03/25 | [
"https://webmasters.stackexchange.com/questions/113860",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/64045/"
] | Its a long time Google Search Console show me a 403 Error for below link.
`Content/img/static/skins/`
I searched this URL in linked from page Html source and even in inspect element browser (maybe something added with JavaScript) and there was not any link to this directory except it is used in a JavaScript plugin.
... | Google may crawl URLs that it discovers in your javascript, which it seems to have done here.
The most likely reason for the directory returning a 403 forbidden error is that you have indexes disabled in htaccess, which is good practice to do.
Blocking that directory in robots.txt is a fine response, though blocking ... |
113,957 | <p>On our page users are opening posts in a modal (like facebook or twitter). </p>
<p>The links look like this</p>
<pre><code><a class="showpost" data-mpid="416246" href="/p/416246/">Open Post</a>
</code></pre>
<p>We catch the click, execute an ajax call and convert the JSON response to HTML.
Even I read... | [
{
"answer_id": 113967,
"author": "Michael d",
"author_id": 86471,
"author_profile": "https://webmasters.stackexchange.com/users/86471",
"pm_score": 1,
"selected": false,
"text": "<p>There's a good chance that Google is not indexing these AJAX pages because it's having trouble reading you... | 2018/03/28 | [
"https://webmasters.stackexchange.com/questions/113957",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/87807/"
] | On our page users are opening posts in a modal (like facebook or twitter).
The links look like this
```
<a class="showpost" data-mpid="416246" href="/p/416246/">Open Post</a>
```
We catch the click, execute an ajax call and convert the JSON response to HTML.
Even I read that Google can execute ajax for some time n... | There's a good chance that Google is not indexing these AJAX pages because it's having trouble reading your script that catches the link.
Let's say for instance that the AJAX page loads /ajax/page.html. Because your link has href="/p/416246/", Google is going to pass your link juice to /p/416246/, when it sounds like... |
114,003 | <p>Suppose you have the following A record:</p>
<pre><code>example.com. 3599 IN A 192.0.2.78
</code></pre>
<p>And these MX records:</p>
<pre><code>example.com. 997 IN MX 10 mx01.1and1.co.uk.example.
example.com. 997 IN MX 10 mx00.1and1.co.uk.example.
</code></pre>
<p>And you then changed the IP address for the A re... | [
{
"answer_id": 114004,
"author": "Tim Fountain",
"author_id": 1426,
"author_profile": "https://webmasters.stackexchange.com/users/1426",
"pm_score": 2,
"selected": false,
"text": "<p>No, email would not be affected.</p>\n\n<p>The only situation where changing an A record would affect ema... | 2018/03/30 | [
"https://webmasters.stackexchange.com/questions/114003",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/87857/"
] | Suppose you have the following A record:
```
example.com. 3599 IN A 192.0.2.78
```
And these MX records:
```
example.com. 997 IN MX 10 mx01.1and1.co.uk.example.
example.com. 997 IN MX 10 mx00.1and1.co.uk.example.
```
And you then changed the IP address for the A record to a non 1&1 ip address (so that the website... | To add some more info here as an explainer for future visitors:
The A record tells the internet where to find the web site for a domain.
The MX record tell the internet which service is handling email.
A basic setup might be to have an A record
```
example.com. 3599 IN A 111.123.456.78
```
and then *mail.example.... |
114,006 | <p>I contacted the registrant (I edited out his name out below) by finding his new email on the web, he emailed me that he don't own the domain anymore and sent photos he took of the paper forms he filled, titled "domain cancellation" dating back from August 2017.</p>
<p>a Support Operator from <a href="http://One.com... | [
{
"answer_id": 114004,
"author": "Tim Fountain",
"author_id": 1426,
"author_profile": "https://webmasters.stackexchange.com/users/1426",
"pm_score": 2,
"selected": false,
"text": "<p>No, email would not be affected.</p>\n\n<p>The only situation where changing an A record would affect ema... | 2018/03/30 | [
"https://webmasters.stackexchange.com/questions/114006",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/87860/"
] | I contacted the registrant (I edited out his name out below) by finding his new email on the web, he emailed me that he don't own the domain anymore and sent photos he took of the paper forms he filled, titled "domain cancellation" dating back from August 2017.
a Support Operator from [One.com](http://One.com) tells m... | To add some more info here as an explainer for future visitors:
The A record tells the internet where to find the web site for a domain.
The MX record tell the internet which service is handling email.
A basic setup might be to have an A record
```
example.com. 3599 IN A 111.123.456.78
```
and then *mail.example.... |
114,028 | <p>I'm a newbie website (WordPress) owner and having an issue about google rendering one of my posts.</p>
<p>I log in to Search Console > Crawl > Fetch as Google > introduce my URL and hit "Fetch and Render". It says <strong>"Partial"</strong> although my all other posts were indexed as "Complete" without any problem ... | [
{
"answer_id": 114032,
"author": "Michael d",
"author_id": 86471,
"author_profile": "https://webmasters.stackexchange.com/users/86471",
"pm_score": 1,
"selected": false,
"text": "<p>There are many people around the web who have had this problem it seems.</p>\n\n<p>When I visited <a href=... | 2018/03/31 | [
"https://webmasters.stackexchange.com/questions/114028",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/87888/"
] | I'm a newbie website (WordPress) owner and having an issue about google rendering one of my posts.
I log in to Search Console > Crawl > Fetch as Google > introduce my URL and hit "Fetch and Render". It says **"Partial"** although my all other posts were indexed as "Complete" without any problem until now.
When I cli... | There are many people around the web who have had this problem it seems.
When I visited <https://static.doubleclick.net/robots.txt> I see that it is blocking all bots from crawling its content. This means that fetch and render should not be able to crawl it for anyone using doubleclick and so there should be no cause ... |
114,029 | <p>I am trying to get all pages of my site indexed by Google but only the first page is.
As mentioned in the title, it is an Angular (5) SPA.</p>
<p>When I run this query: <code>https://www.google.com/search?q=site:https://ecologicalprice.org</code>, the result is this:</p>
<p><img src="https://i.stack.imgur.com/ZzJz... | [
{
"answer_id": 114030,
"author": "Michael d",
"author_id": 86471,
"author_profile": "https://webmasters.stackexchange.com/users/86471",
"pm_score": 0,
"selected": false,
"text": "<p>One of the issues that you're likely having is that your pages have very little html content.</p>\n\n<p>It... | 2018/03/31 | [
"https://webmasters.stackexchange.com/questions/114029",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/87889/"
] | I am trying to get all pages of my site indexed by Google but only the first page is.
As mentioned in the title, it is an Angular (5) SPA.
When I run this query: `https://www.google.com/search?q=site:https://ecologicalprice.org`, the result is this:
](https://i.stack.imgur.com/A6ifl.png)
So I think that proves that there is nothing wrong with my (static) setup, and that it's just that Google chooses what it wants to crawl. Maybe depends on ... |
114,095 | <p>Running an Apache web server, if I use an <code>.htaccess</code> file to redirect all my <code>http://</code> traffic to <code>https://</code> using something like</p>
<pre><code>RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
</code></pre>
<p>will that pre... | [
{
"answer_id": 114107,
"author": "TopQnA",
"author_id": 77604,
"author_profile": "https://webmasters.stackexchange.com/users/77604",
"pm_score": 1,
"selected": false,
"text": "<p>If your redirection will be a permanent 301 from http to https, it should be fine.</p>\n\n<p>Whether you do 3... | 2018/04/02 | [
"https://webmasters.stackexchange.com/questions/114095",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/87942/"
] | Running an Apache web server, if I use an `.htaccess` file to redirect all my `http://` traffic to `https://` using something like
```
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
```
will that preserve all of my "link juice" since [Google considers my `ht... | If your redirection will be a permanent 301 from http to https, it should be fine.
Whether you do 301 redirect using .htaccess or using the code, as long as the server response is permanent 301 then you should be fine.
If you will not set the redirection (301) the Google may treat http and https as separate urls and ... |
114,116 | <p>The working codes that I've found here most put a slash in everything.</p>
<p>I just need force trailing slash in these "fake dirs" (that are part of my rewriting scheme (only directories)) and keep everything else (fake files ending with <code>.html</code>) as it is.</p>
<p>Here is my <code>.htaccess</code>:</p>
... | [
{
"answer_id": 114133,
"author": "Stephen Ostermiller",
"author_id": 14543,
"author_profile": "https://webmasters.stackexchange.com/users/14543",
"pm_score": 3,
"selected": true,
"text": "<p>You will need to redirect to add the slash. This will redirect any set of letters without other ... | 2018/04/03 | [
"https://webmasters.stackexchange.com/questions/114116",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/63843/"
] | The working codes that I've found here most put a slash in everything.
I just need force trailing slash in these "fake dirs" (that are part of my rewriting scheme (only directories)) and keep everything else (fake files ending with `.html`) as it is.
Here is my `.htaccess`:
```
RewriteEngine on
RewriteCond %{HTTP_H... | You will need to redirect to add the slash. This will redirect any set of letters without other punctuation such as slashes or dots in them. I don't think it conflicts with any of your other rewrite rules.
```
RewriteRule ^((.*/)?[a-z]+)$ http://www.example.com/$1/ [R=301,L]
```
You could make it a bit safer by maki... |
114,117 | <p>Google is not as good as it claims when it comes to JavaScript single page application (SPA) websites. Sure it can read JavaScript very well, but removing pre-render server hit our search result so badly that we resurrected our pre-render server after 1 week of letting Google read our SPA website itself.</p>
<p>We ... | [
{
"answer_id": 114133,
"author": "Stephen Ostermiller",
"author_id": 14543,
"author_profile": "https://webmasters.stackexchange.com/users/14543",
"pm_score": 3,
"selected": true,
"text": "<p>You will need to redirect to add the slash. This will redirect any set of letters without other ... | 2018/04/03 | [
"https://webmasters.stackexchange.com/questions/114117",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/49167/"
] | Google is not as good as it claims when it comes to JavaScript single page application (SPA) websites. Sure it can read JavaScript very well, but removing pre-render server hit our search result so badly that we resurrected our pre-render server after 1 week of letting Google read our SPA website itself.
We show photo... | You will need to redirect to add the slash. This will redirect any set of letters without other punctuation such as slashes or dots in them. I don't think it conflicts with any of your other rewrite rules.
```
RewriteRule ^((.*/)?[a-z]+)$ http://www.example.com/$1/ [R=301,L]
```
You could make it a bit safer by maki... |
114,123 | <p>I have access to search console but the owner who invited me left the company. Do you know how to claim ownership for our existing property? </p>
| [
{
"answer_id": 114133,
"author": "Stephen Ostermiller",
"author_id": 14543,
"author_profile": "https://webmasters.stackexchange.com/users/14543",
"pm_score": 3,
"selected": true,
"text": "<p>You will need to redirect to add the slash. This will redirect any set of letters without other ... | 2018/04/03 | [
"https://webmasters.stackexchange.com/questions/114123",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/87964/"
] | I have access to search console but the owner who invited me left the company. Do you know how to claim ownership for our existing property? | You will need to redirect to add the slash. This will redirect any set of letters without other punctuation such as slashes or dots in them. I don't think it conflicts with any of your other rewrite rules.
```
RewriteRule ^((.*/)?[a-z]+)$ http://www.example.com/$1/ [R=301,L]
```
You could make it a bit safer by maki... |
114,161 | <p>I have an external bio link on my Instagram business page, i want to detect "which" Instagram users click on link and visited my website.</p>
<p>Is this possible by analyzing referral link or other ways? , and is this even legal?</p>
| [
{
"answer_id": 114164,
"author": "Michael d",
"author_id": 86471,
"author_profile": "https://webmasters.stackexchange.com/users/86471",
"pm_score": 0,
"selected": false,
"text": "<p>I do not think it is possible to determine which Instagram user visited your page from an Instagram link. ... | 2018/04/04 | [
"https://webmasters.stackexchange.com/questions/114161",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/88010/"
] | I have an external bio link on my Instagram business page, i want to detect "which" Instagram users click on link and visited my website.
Is this possible by analyzing referral link or other ways? , and is this even legal? | No.
---
You cannot detect which users clicked on your Instagram external link.
---
An external Instagram link looks something like this:
```
https://l.instagram.com/?u=https://www.example.com/&e=ATPww3V7arueU2tZJxZn2sop0is5m0U3NkJrH05Fz0nud9ENOn38ULgxXDwDvUMwCGDzDqaNXEHn7uzk
```
Breaking it down, we can see that ... |
114,365 | <p>I have inherited a web app. It's running fine. But it's using HTTP, not HTTPS. This is the <code>.HTACCESS</code> file:</p>
<pre><code>Options +FollowSymLinks
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.php [QSA,L] </IfModule>
</code></pre>
<p>HTACCESS files are not my area of e... | [
{
"answer_id": 114369,
"author": "MrWhite",
"author_id": 1243,
"author_profile": "https://webmasters.stackexchange.com/users/1243",
"pm_score": 1,
"selected": false,
"text": "<blockquote>\n<pre><code>RewriteCond %{REQUEST_FILENAME} !-f\nRewriteRule ^ index.php [QSA,L] </IfModule>\n... | 2018/04/11 | [
"https://webmasters.stackexchange.com/questions/114365",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/88204/"
] | I have inherited a web app. It's running fine. But it's using HTTP, not HTTPS. This is the `.HTACCESS` file:
```
Options +FollowSymLinks
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.php [QSA,L] </IfModule>
```
HTACCESS files are not my area of expertise. What I think this is doing is, "i... | >
>
> ```
> RewriteCond %{REQUEST_FILENAME} !-f
> RewriteRule ^ index.php [QSA,L] </IfModule>
>
> ```
>
>
What this says is... for all requests (`^`) that do not map to an actual file (`%{REQUEST_FILENAME} !-f`) then *internally rewrite* the request to `index.php` (ie. the "front-controller").
The `QSA` (Query S... |
114,392 | <p>How can I display a price in Google search results like in the following screenshot?</p>
<p><a href="https://i.stack.imgur.com/aL7gy.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/aL7gy.png" alt="Screenshot of Google results with Price"></a></p>
| [
{
"answer_id": 114394,
"author": "Petr Průcha",
"author_id": 86850,
"author_profile": "https://webmasters.stackexchange.com/users/86850",
"pm_score": -1,
"selected": false,
"text": "<p>I think it is part of Google snippet. You can make some good condition for snippet but you can not infl... | 2018/04/12 | [
"https://webmasters.stackexchange.com/questions/114392",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/88228/"
] | How can I display a price in Google search results like in the following screenshot?
[](https://i.stack.imgur.com/aL7gy.png) | You can set a price range using this parameter:
```json
"priceRange" : "$100 - $200",
```
Example:
```html
<script type="application/ld+json">
{
"@context": "http://schema.org",
"@type" : "LocalBusiness",
"@id" : "WEBSITE URL",
"name" : "BUSINESS NAME",
"logo" : "LOGO URL",
"telephone" : "PHONE NUMBER... |
114,395 | <p>I have a page with several trip packages for the region. Some packages have different dates available.</p>
<p>E.g.</p>
<pre><code>Trip package #1
Date: May 17—23
Price: $150
---
Trip package #2
Date: August 1—15
Price: $150
---
Trip package #3
Date: November 1—15
Price: $150
</code></pre>
<p>I need to optimiz... | [
{
"answer_id": 114399,
"author": "WebElaine",
"author_id": 88215,
"author_profile": "https://webmasters.stackexchange.com/users/88215",
"pm_score": 3,
"selected": true,
"text": "<p>Google acts differently for certain types of searches. For some it sees people tend to click through and st... | 2018/04/12 | [
"https://webmasters.stackexchange.com/questions/114395",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/84563/"
] | I have a page with several trip packages for the region. Some packages have different dates available.
E.g.
```
Trip package #1
Date: May 17—23
Price: $150
---
Trip package #2
Date: August 1—15
Price: $150
---
Trip package #3
Date: November 1—15
Price: $150
```
I need to optimize the page for SEO, so how sho... | Google acts differently for certain types of searches. For some it sees people tend to click through and stay longer on established/older pages, so for those it rewards older content. But for some searches it sees people tend to click through and stay longer on up-to-date content, and particularly for data that needs t... |
114,429 | <p>How to place content as optimzed as possible for Search engines?</p>
<p>My client has a product with a very generic word: Mosaic, he writes it differently but it's still very generic. The text I was given puts the name of the product in the headers, followed by a small description in which I see some keywords alot ... | [
{
"answer_id": 114430,
"author": "Michael d",
"author_id": 86471,
"author_profile": "https://webmasters.stackexchange.com/users/86471",
"pm_score": 1,
"selected": true,
"text": "<p>You're right about trying to target keywords to rank the site. But you do still have to build the site in a... | 2018/04/13 | [
"https://webmasters.stackexchange.com/questions/114429",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/74081/"
] | How to place content as optimzed as possible for Search engines?
My client has a product with a very generic word: Mosaic, he writes it differently but it's still very generic. The text I was given puts the name of the product in the headers, followed by a small description in which I see some keywords alot more relev... | You're right about trying to target keywords to rank the site. But you do still have to build the site in a way that's best for users. Trying to figure out a great medium can be a bit of an art, and preference.
H1 is similar to title tags in that they're used as a ranking signal and are similar to a page's title. Many... |
114,482 | <p>I am currently working on an eCommerce website, which typically have the following URL structural examples:</p>
<pre><code> 1. www.example.com/paintings/flowers/roses/
2. www.example.com/paintings/flowers/roses/abstract/
3. www.example.com/paintings/flowers/roses/black-white/
</code></pre>
<p>Whilst the above pa... | [
{
"answer_id": 114484,
"author": "Michael d",
"author_id": 86471,
"author_profile": "https://webmasters.stackexchange.com/users/86471",
"pm_score": 0,
"selected": false,
"text": "<p>I think the simple URLs with directories looks cleaner for users. They're shorter URLs and therefore easie... | 2018/04/16 | [
"https://webmasters.stackexchange.com/questions/114482",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/77120/"
] | I am currently working on an eCommerce website, which typically have the following URL structural examples:
```
1. www.example.com/paintings/flowers/roses/
2. www.example.com/paintings/flowers/roses/abstract/
3. www.example.com/paintings/flowers/roses/black-white/
```
Whilst the above pages target high search vol... | >
> Where I have come a little stuck, is in establishing the difference
> between a Facet and a Child Category; primarily when it comes to SEO.
>
>
>
[Stephen Ostermiller's answer to your previous question](https://webmasters.stackexchange.com/questions/114461/what-is-the-difference-between-a-facet-and-a-category... |
114,706 | <p>I would like to count the number of events occurring on a specific page, given a Previous Page Path.</p>
<p>It doesn't seem to be possible neither with Behaviour>Events report nor with custom report.</p>
<p>Could anyone recommend a way to achieve the above?</p>
| [
{
"answer_id": 114736,
"author": "Chester",
"author_id": 87827,
"author_profile": "https://webmasters.stackexchange.com/users/87827",
"pm_score": 0,
"selected": false,
"text": "<p>You're trying to mix hit level data - the events, with session level data - the previous page. That's why it... | 2018/04/25 | [
"https://webmasters.stackexchange.com/questions/114706",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/88209/"
] | I would like to count the number of events occurring on a specific page, given a Previous Page Path.
It doesn't seem to be possible neither with Behaviour>Events report nor with custom report.
Could anyone recommend a way to achieve the above? | Unfortunately this isn't possible. I did some experiments using the API in Google Sheets. Using Event Category, Page, Previous Page Path, and Total Events, I got a "selected dimensions and metrics cannot be queried together" error.
If you remove Page, you still get an error. If you remove Event Category, you get data ... |
114,739 | <p>Google Search Console is telling me:</p>
<blockquote>
<p>Access Denied</p>
<p>Googlebot couldn't crawl your URL because your server either requires authentication to access the page, or it is blocking Googlebot from accessing your site.</p>
</blockquote>
<p>The URL looks something like this:</p>
<pre><code... | [
{
"answer_id": 114746,
"author": "DocRoot",
"author_id": 52912,
"author_profile": "https://webmasters.stackexchange.com/users/52912",
"pm_score": 3,
"selected": true,
"text": "<p>Your server is probably configured to reject (with \"403 Forbidden\") all requests for dot files, ie. all fil... | 2018/04/26 | [
"https://webmasters.stackexchange.com/questions/114739",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/84064/"
] | Google Search Console is telling me:
>
> Access Denied
>
>
> Googlebot couldn't crawl your URL because your server either requires authentication to access the page, or it is blocking Googlebot from accessing your site.
>
>
>
The URL looks something like this:
```
https://www.example.com/.html
```
I checked ... | Your server is probably configured to reject (with "403 Forbidden") all requests for dot files, ie. all files starting with a dot. These are usually config files, like `.htaccess` and `.htpasswd`, which should not be accessible publicly under any circumstance. These are naturally "hidden" on Linux, but not on Windows O... |
114,755 | <p>I'm looking for ways to show a demo site to a client who's not able to be in the same room as me, without using a public server.</p>
<p>For this particular situation, I've been fixing up an old site I had laying around for a friend, but the free server it used to be hosted on is no longer available, and I still don... | [
{
"answer_id": 114756,
"author": "L Martin",
"author_id": 61597,
"author_profile": "https://webmasters.stackexchange.com/users/61597",
"pm_score": 1,
"selected": false,
"text": "<p>We use Adobe XD for prototyping. Or you can look at prerender.io to create a static, navigable version.</p>... | 2018/04/27 | [
"https://webmasters.stackexchange.com/questions/114755",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/88670/"
] | I'm looking for ways to show a demo site to a client who's not able to be in the same room as me, without using a public server.
For this particular situation, I've been fixing up an old site I had laying around for a friend, but the free server it used to be hosted on is no longer available, and I still don't have a ... | Sounds like you have a dynamic PHP site that you need to render a static copy of, to a locally browsable folder with relative links, correct? Then you can share that folder with the client so they can browse a static copy on their desktop. If I'm understanding your use case, there are plenty of ways to achieve this.
#... |
114,833 | <p>Similiar to issue found <a href="https://serverfault.com/questions/356813/htaccess-redirect-works-for-ip-but-not-for-domain-name">here</a>.
Running debian, apache2, trying to redirect <code>example.org.com</code> to <code>example.org.com/aplication/calculator</code>. I have enabled mod_rewrite hence why IP redirect ... | [
{
"answer_id": 114841,
"author": "Stephen Ostermiller",
"author_id": 14543,
"author_profile": "https://webmasters.stackexchange.com/users/14543",
"pm_score": 2,
"selected": false,
"text": "<p>This rewrite rule doesn't make any sense:</p>\n\n<pre><code>RewriteCond %{HTTP_HOST} ^example\\.... | 2018/05/01 | [
"https://webmasters.stackexchange.com/questions/114833",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/88758/"
] | Similiar to issue found [here](https://serverfault.com/questions/356813/htaccess-redirect-works-for-ip-but-not-for-domain-name).
Running debian, apache2, trying to redirect `example.org.com` to `example.org.com/aplication/calculator`. I have enabled mod\_rewrite hence why IP redirect works.
However if I put in differe... | This rewrite rule doesn't make any sense:
```
RewriteCond %{HTTP_HOST} ^example\.org\.com$
RewriteRule ^(.*)$ https://example.org.com/aplication/calculator [R]
```
That is what is causing your infinite loops. If A request comes in for `https://example.org.com/` it will redirect it to `https://example.org.com/aplicat... |
114,895 | <p>I've been researching the best way to handle my htaccess file in order to switch from http requests to https and I've seen everything from basing requests off server ports, using server name requests rather than entering in an actual domain, to editing my apache configuration file and disregarding htaccess completel... | [
{
"answer_id": 114896,
"author": "Dave",
"author_id": 84625,
"author_profile": "https://webmasters.stackexchange.com/users/84625",
"pm_score": 0,
"selected": false,
"text": "<p>You're very close. This is what I use on one of the domains I take care of it and it works flawlessly.</p>\n\n<... | 2018/05/04 | [
"https://webmasters.stackexchange.com/questions/114895",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/8384/"
] | I've been researching the best way to handle my htaccess file in order to switch from http requests to https and I've seen everything from basing requests off server ports, using server name requests rather than entering in an actual domain, to editing my apache configuration file and disregarding htaccess completely.
... | You do not need rewriting rules for such a simple case, but you can certainly achieve the same goal with them too.
In the specific `VirtualHost` describing the HTTP host (hence having a `:80` at end of address), you just need to have:
```
RedirectPermanent / https://www.example.com/
```
See <https://httpd.apache.or... |
115,000 | <p>I have someone transferring a domain from GoDaddy to Google Domains. </p>
<p>The nameservers for the domain are currently</p>
<pre><code>nsxx.DOMAINCONTROL.COM
nsxx.DOMAINCONTROL.COM
</code></pre>
<p>To ensure no downtime and the website remains available, must I set the nameservers from the Google Domains receiv... | [
{
"answer_id": 115001,
"author": "Patrick Mevzek",
"author_id": 75842,
"author_profile": "https://webmasters.stackexchange.com/users/75842",
"pm_score": 2,
"selected": true,
"text": "<p>You are mixing two things.</p>\n\n<p>A registrar change, that is a domain name transfer from one regis... | 2018/05/09 | [
"https://webmasters.stackexchange.com/questions/115000",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/88983/"
] | I have someone transferring a domain from GoDaddy to Google Domains.
The nameservers for the domain are currently
```
nsxx.DOMAINCONTROL.COM
nsxx.DOMAINCONTROL.COM
```
To ensure no downtime and the website remains available, must I set the nameservers from the Google Domains receiving end to the nameservers above? | You are mixing two things.
A registrar change, that is a domain name transfer from one registrar to another, is done **without** any other change to the domain name. So the nameservers will not change. This is a general rule but there are exceptions based on the TLD involved, you do not say which.
Here is a typical f... |
115,033 | <p>The use of <code>rel="canonical"</code> is often required, in order to deal with the issue of duplicate content. Simply put, it 'tells' search engines which is the preferred URL version.</p>
<p>To achieve this, the following example code needs to be entered within the <code><head></code> tags:</p>
<pre><cod... | [
{
"answer_id": 115038,
"author": "closetnoc",
"author_id": 36029,
"author_profile": "https://webmasters.stackexchange.com/users/36029",
"pm_score": 3,
"selected": true,
"text": "<p>Make no mistake. Search engines do not process parts of a page then suddenly do something else.</p>\n\n<p>W... | 2018/05/11 | [
"https://webmasters.stackexchange.com/questions/115033",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/77120/"
] | The use of `rel="canonical"` is often required, in order to deal with the issue of duplicate content. Simply put, it 'tells' search engines which is the preferred URL version.
To achieve this, the following example code needs to be entered within the `<head>` tags:
```
<link rel="canonical" href="https://www.example.... | Make no mistake. Search engines do not process parts of a page then suddenly do something else.
When a page is discovered, it is fetched, stored, rendered, analyzed, and indexed. If a link is found in a page, the SE searches the link index to see if it exists. If so, then nothing. If not, then the link is added to the... |
115,043 | <p>I'm currently developing a small site for my friend's firm. The firm is split into two regions of the country; <strong>east</strong> and <strong>west</strong>. Each site shares products, but some may be available on the west site, that isn't available on the other one and vice versa. </p>
<p>I know Google is good a... | [
{
"answer_id": 115047,
"author": "Pellegrinochico",
"author_id": 88867,
"author_profile": "https://webmasters.stackexchange.com/users/88867",
"pm_score": 0,
"selected": false,
"text": "<p>Ok, Local SEO is a different kind of game. You are doing the right thing by adding a \"location\" to... | 2018/05/11 | [
"https://webmasters.stackexchange.com/questions/115043",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/89041/"
] | I'm currently developing a small site for my friend's firm. The firm is split into two regions of the country; **east** and **west**. Each site shares products, but some may be available on the west site, that isn't available on the other one and vice versa.
I know Google is good at indexing based on countries, but s... | There's two types of results, organic and local results. Local results differ from organic and they are triggered with local searches such as looking for a plumber, car dealership or even a Burger King, these are returned in snack box format which dominates the top part of the search results.
Below the snack box resul... |
115,085 | <p>I work for a company that has a website with incredibly slow page load speed. (The average for the site is around 8 seconds). We use GA for our analytics so for a person to register as a bounce the site must fully load the page. Obviously lots of people will be bouncing in that time before it loads, is there a way ... | [
{
"answer_id": 115093,
"author": "Matthew C",
"author_id": 30406,
"author_profile": "https://webmasters.stackexchange.com/users/30406",
"pm_score": 1,
"selected": false,
"text": "<p>Simply move the Google Analytics JS code to the <a href=\"https://support.google.com/analytics/answer/1008... | 2018/05/14 | [
"https://webmasters.stackexchange.com/questions/115085",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/87071/"
] | I work for a company that has a website with incredibly slow page load speed. (The average for the site is around 8 seconds). We use GA for our analytics so for a person to register as a bounce the site must fully load the page. Obviously lots of people will be bouncing in that time before it loads, is there a way to s... | Simply move the Google Analytics JS code to the [start](https://support.google.com/analytics/answer/1008080?hl=en#GA) of the **head** section. It will be the frist resource to be loaded, parsed and executed by the web browser before the rest (stylesheets, other JS files, images, fonts etc.) of the slow page loads. GA c... |
115,125 | <p>Been looking at implementing HSTS in to one of our sites, hoping to validate it on the preload list. But I can't get my head around how it works with the www. Subdomain. </p>
<p>Our site forces secure www.domain.com using this code in the htaccess. </p>
<pre><code> <ifModule mod_headers.c>
Header set Stri... | [
{
"answer_id": 115392,
"author": "jrtapsell",
"author_id": 81795,
"author_profile": "https://webmasters.stackexchange.com/users/81795",
"pm_score": 2,
"selected": false,
"text": "<h1>HSTS Preload Rules (simplified)</h1>\n<p>The following redirects should exist for a site that uses www as... | 2018/05/15 | [
"https://webmasters.stackexchange.com/questions/115125",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/82573/"
] | Been looking at implementing HSTS in to one of our sites, hoping to validate it on the preload list. But I can't get my head around how it works with the www. Subdomain.
Our site forces secure www.domain.com using this code in the htaccess.
```
<ifModule mod_headers.c>
Header set Strict-Transport-Security "max-ag... | >
> using htaccess ( because its a shared environment. Using Cpanel.
>
>
>
*Aside:* I would be wary about "preload list submission" on a shared server, since you don't have complete control (and it is easier / less prone to error to implement this in the main server config).
---
>
>
> ```
> Header set Strict-T... |
115,130 | <p>I am trying to redirect all pages on my site in one directory to a specific page using htaccess. </p>
<p>Example anything like</p>
<ul>
<li><code>example.com/forums/</code></li>
<li><code>example.com/forums/pages</code></li>
<li><code>example.com/forums/subdirectory/</code></li>
<li><code>example.com/forums/subdi... | [
{
"answer_id": 115392,
"author": "jrtapsell",
"author_id": 81795,
"author_profile": "https://webmasters.stackexchange.com/users/81795",
"pm_score": 2,
"selected": false,
"text": "<h1>HSTS Preload Rules (simplified)</h1>\n<p>The following redirects should exist for a site that uses www as... | 2018/05/15 | [
"https://webmasters.stackexchange.com/questions/115130",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/89153/"
] | I am trying to redirect all pages on my site in one directory to a specific page using htaccess.
Example anything like
* `example.com/forums/`
* `example.com/forums/pages`
* `example.com/forums/subdirectory/`
* `example.com/forums/subdirectory/page.html`
basically anything in `/forums/` to only
`example.com/groups... | >
> using htaccess ( because its a shared environment. Using Cpanel.
>
>
>
*Aside:* I would be wary about "preload list submission" on a shared server, since you don't have complete control (and it is easier / less prone to error to implement this in the main server config).
---
>
>
> ```
> Header set Strict-T... |
115,137 | <p>I got my Siteground hosting account suspended yesterday due to the allowed CPU overage. Besides recommendation to disable or control the WP heartbeat API, I was also recommended to block bad bots and bad traffic coming to the site.</p>
<p>The guy on the helpline recommended adding the following few lines into the <... | [
{
"answer_id": 115142,
"author": "Shayan Davoodi",
"author_id": 88960,
"author_profile": "https://webmasters.stackexchange.com/users/88960",
"pm_score": 1,
"selected": false,
"text": "<p><strong>Allowing</strong> certain bots will cause some troubles for you.</p>\n\n<p>For instance, you ... | 2018/05/16 | [
"https://webmasters.stackexchange.com/questions/115137",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/55445/"
] | I got my Siteground hosting account suspended yesterday due to the allowed CPU overage. Besides recommendation to disable or control the WP heartbeat API, I was also recommended to block bad bots and bad traffic coming to the site.
The guy on the helpline recommended adding the following few lines into the `.htaccess`... | The types of bots
=================

One way of thinking about bots is to treat them as following the Lawful-Chaotic and Good-Evil spectrum.
*(Although bots cannot be evil, they can be instructed to act on behalf of people doing evil.)*
An ex... |
115,213 | <p>I've got a server, where I have multiple development projects for clients. While developing, each instance lives on <code>client.dev.example.com</code>. </p>
<p>I need to stop crawlers from crawling the development sites.</p>
<p>Is it possible to make a blanket disallow, for all subdomains of <code>dev.example.com... | [
{
"answer_id": 115215,
"author": "iv12345",
"author_id": 89253,
"author_profile": "https://webmasters.stackexchange.com/users/89253",
"pm_score": 0,
"selected": false,
"text": "<p>Seems you need include robots.txt for all this dev sites.\nAlso how crawlers know about your dev sites? Do y... | 2018/05/18 | [
"https://webmasters.stackexchange.com/questions/115213",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/89255/"
] | I've got a server, where I have multiple development projects for clients. While developing, each instance lives on `client.dev.example.com`.
I need to stop crawlers from crawling the development sites.
Is it possible to make a blanket disallow, for all subdomains of `dev.example.com`? | >
> While developing, each instance lives on `client.dev.example.com`
>
>
>
Any "polite" bot will request the `robots.txt` file at `http://client.dev.example.com/robots.txt`. So this request must serve the necessary response. There is nothing you can do in a "parent" `robots.txt` file to influence other domains/su... |
115,246 | <p>Having a remote folder, I want to list all files in it using a web browser.
Unfortunately, <strong>when file names are long, they are truncated</strong>.
I observe this whichever the browser (Safari, Firefox, Internet Explorer).
Is there a simple solution without having to write code?</p>
<p>In Safari, I observed t... | [
{
"answer_id": 115248,
"author": "MrWhite",
"author_id": 1243,
"author_profile": "https://webmasters.stackexchange.com/users/1243",
"pm_score": 2,
"selected": false,
"text": "<p>I assume you are referring to the auto-generated directory index that Apache (mod_autoindex) generates. In thi... | 2018/05/19 | [
"https://webmasters.stackexchange.com/questions/115246",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/88473/"
] | Having a remote folder, I want to list all files in it using a web browser.
Unfortunately, **when file names are long, they are truncated**.
I observe this whichever the browser (Safari, Firefox, Internet Explorer).
Is there a simple solution without having to write code?
In Safari, I observed that the browser lists t... | I assume you are referring to the auto-generated directory index that Apache (mod\_autoindex) generates. In this case, the filename is physically truncated (at 20 bytes by default) in the generated HTML source that comes from the server, so attempting to change the CSS will have no effect (and it will indeed be the sam... |
115,257 | <p>I was submitting my sitemap in Google Webmasters and got this message when I clicked on the "test sitemap" button:</p>
<blockquote>
<p>-Warning - URL blocked by robots.txt.</p>
</blockquote>
<p>When I located my <code>robots.txt</code> file, this is what I saw in the <code>robots.txt</code> file:</p>
<pre><code... | [
{
"answer_id": 115260,
"author": "gintsg",
"author_id": 89191,
"author_profile": "https://webmasters.stackexchange.com/users/89191",
"pm_score": 1,
"selected": false,
"text": "<p>Blocking tag, categories etc pages with a robots.txt file is a bad practice. Because most likely these pages ... | 2018/05/20 | [
"https://webmasters.stackexchange.com/questions/115257",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/89302/"
] | I was submitting my sitemap in Google Webmasters and got this message when I clicked on the "test sitemap" button:
>
> -Warning - URL blocked by robots.txt.
>
>
>
When I located my `robots.txt` file, this is what I saw in the `robots.txt` file:
```
# BEGIN GENESIS SEO
User-Agent: *
Disallow: /category
Disallow:... | Your robots.txt tells search engines which parts of the site to ignore (and that the other parts are fair game). Your sitemap.xml tells search engines what you consider to be some of your most important parts of the site, and that you want those in the index.
When your sitemap includes URL's that your robots file disa... |
115,288 | <p>I believe I understand how to set up the structured data for an article page. But I have links in these articles to 1) other articles on my site, and 2) articles on other external sites.</p>
<ol>
<li><p>I know I can use the <code>ItemList</code> inside the articles for my own site. However, I'm not sure if this is ... | [
{
"answer_id": 115298,
"author": "WebElaine",
"author_id": 88215,
"author_profile": "https://webmasters.stackexchange.com/users/88215",
"pm_score": 2,
"selected": false,
"text": "<p>As Willtech briefly alludes to, Schema is meant to mark up the full content you are using it to describe. ... | 2018/05/22 | [
"https://webmasters.stackexchange.com/questions/115288",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/89342/"
] | I believe I understand how to set up the structured data for an article page. But I have links in these articles to 1) other articles on my site, and 2) articles on other external sites.
1. I know I can use the `ItemList` inside the articles for my own site. However, I'm not sure if this is the appropriate usage for t... | As Willtech briefly alludes to, Schema is meant to mark up the full content you are using it to describe. So using the markup for your full articles and recipes is correct. But you should not use article markup for links - that would basically be saying, "this one little link tag - the link itself, not the content you ... |
115,295 | <p>A URL can be descriptive but, how do I make the most of it so that it is meaningful for both users of my site and for Big Internet Search Engine when it comes along?</p>
| [
{
"answer_id": 115296,
"author": "Willtech",
"author_id": 89323,
"author_profile": "https://webmasters.stackexchange.com/users/89323",
"pm_score": 2,
"selected": true,
"text": "<p>Your URL is the first thing that is required to access your page and is important and easily overlooked.</p>... | 2018/05/22 | [
"https://webmasters.stackexchange.com/questions/115295",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/89323/"
] | A URL can be descriptive but, how do I make the most of it so that it is meaningful for both users of my site and for Big Internet Search Engine when it comes along? | Your URL is the first thing that is required to access your page and is important and easily overlooked.
Strictly, a URL should be arranged as follows for any site:
```
http://example.com/broad-topic/sub-topic/specific-topic/page-title.html
```
This allows you, your visitors and, Big Internet Search Engine to deal ... |
115,364 | <p>Over the past few months, I have read a lot of resources citing that "Topical SEO" is the way to go for good search result rankings. These resources refer to Topical SEO as some great new marketing strategy. </p>
<p>Whilst there may be some truth to this, in that search engines are able to rank sites based on topic... | [
{
"answer_id": 115377,
"author": "closetnoc",
"author_id": 36029,
"author_profile": "https://webmasters.stackexchange.com/users/36029",
"pm_score": 1,
"selected": true,
"text": "<p>Okay. I have clearly confused some people. I will try and make that right.</p>\n\n<p>My point is not to thi... | 2018/05/24 | [
"https://webmasters.stackexchange.com/questions/115364",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/77120/"
] | Over the past few months, I have read a lot of resources citing that "Topical SEO" is the way to go for good search result rankings. These resources refer to Topical SEO as some great new marketing strategy.
Whilst there may be some truth to this, in that search engines are able to rank sites based on topics now, isn... | Okay. I have clearly confused some people. I will try and make that right.
My point is not to think about the keywords you want to be found for and just plug them into your content thinking that is the total answer. Sure, terms are important, clearly, but keyword matches is not what search engines do. I will give some... |
115,415 | <p>I have a website on which users can ask a question, but in order to ask a question they must be logged in.</p>
<p>Which means if users go to the URL <code>example.com/ask-question/</code>, then it will redirect them to login page <code>example.com/login/?next=/ask-question/</code>.</p>
<p>Problem is that Google ha... | [
{
"answer_id": 115424,
"author": "Mike -- No longer here",
"author_id": 46807,
"author_profile": "https://webmasters.stackexchange.com/users/46807",
"pm_score": -1,
"selected": false,
"text": "<blockquote>\n <p>...Which means if a user go to the URL www.website.com/ask-question/, then i... | 2018/05/26 | [
"https://webmasters.stackexchange.com/questions/115415",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/-1/"
] | I have a website on which users can ask a question, but in order to ask a question they must be logged in.
Which means if users go to the URL `example.com/ask-question/`, then it will redirect them to login page `example.com/login/?next=/ask-question/`.
Problem is that Google has not only indexed the login page (`exa... | Here is a simple solution if you want to keep indexed your login page and remove all other redirected login page variations from Google.
First of all, hope that you are using `302` redirect in this case which is not cachable in browsers and is as temporary. This is just a note.
To keep only your login page indexed in... |
115,496 | <p>I was wondering if someone could explain/have a solution for why my SSI's do not work if the file I'm including is back a directory. e.g.</p>
<ul>
<li>index.html</li>
<li>gallery/pictures.html</li>
<li>ssi-files/navigation.html</li>
</ul>
<p><strong>This works when I use it in my index.html file:</strong></p>
<bl... | [
{
"answer_id": 115523,
"author": "SteveyG",
"author_id": 88660,
"author_profile": "https://webmasters.stackexchange.com/users/88660",
"pm_score": 2,
"selected": false,
"text": "<p>Changing the code from </p>\n\n<p><code><!--#include file=\"...</code></p>\n\n<p>to</p>\n\n<p><code><!... | 2018/05/30 | [
"https://webmasters.stackexchange.com/questions/115496",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/88660/"
] | I was wondering if someone could explain/have a solution for why my SSI's do not work if the file I'm including is back a directory. e.g.
* index.html
* gallery/pictures.html
* ssi-files/navigation.html
**This works when I use it in my index.html file:**
>
>
> ```
> <!--#include file="ssi-files/navigation.html"-->... | Changing the code from
`<!--#include file="...`
to
`<!--#include virtual="...`
solved the issue I was having.
Thank you Dan. |
115,649 | <p>After <a href="https://stackoverflow.com/questions/50604583/many-json-ld-script-elements-per-page-or-a-single-one-with-nesting">my first question about <code>Store</code> main blocks</a>, I think this is way better to explain with an example. </p>
<p>Let's say we are doing the Footlocker webpage. And we have a home... | [
{
"answer_id": 115650,
"author": "unor",
"author_id": 17633,
"author_profile": "https://webmasters.stackexchange.com/users/17633",
"pm_score": 2,
"selected": false,
"text": "<p>You can use more specific <a href=\"http://schema.org/WebPage\" rel=\"nofollow noreferrer\"><code>WebPage</code... | 2018/06/06 | [
"https://webmasters.stackexchange.com/questions/115649",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/89553/"
] | After [my first question about `Store` main blocks](https://stackoverflow.com/questions/50604583/many-json-ld-script-elements-per-page-or-a-single-one-with-nesting), I think this is way better to explain with an example.
Let's say we are doing the Footlocker webpage. And we have a homepage JSON-LD like this (which on... | You can use more specific [`WebPage`](http://schema.org/WebPage) types:
* [`ItemPage`](http://schema.org/ItemPage) for a single-product page
* [`CollectionPage`](http://schema.org/CollectionPage) for a multiple-product page
In both cases, you can use the [`mainEntity`](http://schema.org/mainEntity) property to refere... |
115,854 | <p>I have a website with WordPress and have about 60 categories with 3 or 4 levels. </p>
<p>Now I want to change many category's levels and maybe some slugs. for example a category such as "wordpress" is level 0 move to level 1 by "Content Managent system" parent and so on.</p>
<p>Would this be bad for my SEO?</p>
| [
{
"answer_id": 115873,
"author": "Ivan Vartanyan",
"author_id": 89792,
"author_profile": "https://webmasters.stackexchange.com/users/89792",
"pm_score": 0,
"selected": false,
"text": "<p>As far as I know if the URL of category or post changes there is no guarantee that the site positions... | 2018/06/15 | [
"https://webmasters.stackexchange.com/questions/115854",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/89472/"
] | I have a website with WordPress and have about 60 categories with 3 or 4 levels.
Now I want to change many category's levels and maybe some slugs. for example a category such as "wordpress" is level 0 move to level 1 by "Content Managent system" parent and so on.
Would this be bad for my SEO? | While this question is 3 years old, it does not have a sufficient answer. For others concerned with this topic:
Redirection is the least of my concerns here. 301 redirects get applied if there is a replacement destination. Use 404 or 410 if you're deleting a category or have no logical replacement.
Consider this exam... |
115,869 | <p>We are trying to upgrade from MediaWiki 1.30 to 1.31. We downloaded <a href="https://releases.wikimedia.org/mediawiki/1.31/mediawiki-1.31.0.tar.gz" rel="nofollow noreferrer"><code>mediawiki-1.31.0.tar.gz</code></a> from the MediaWiki site. The tarball was unpacked overtop of the old MediaWiki installation after back... | [
{
"answer_id": 115870,
"author": "Tim Fountain",
"author_id": 1426,
"author_profile": "https://webmasters.stackexchange.com/users/1426",
"pm_score": 1,
"selected": false,
"text": "<p>Follow the instructions on <a href=\"https://getcomposer.org/download/\" rel=\"nofollow noreferrer\">http... | 2018/06/16 | [
"https://webmasters.stackexchange.com/questions/115869",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/-1/"
] | We are trying to upgrade from MediaWiki 1.30 to 1.31. We downloaded [`mediawiki-1.31.0.tar.gz`](https://releases.wikimedia.org/mediawiki/1.31/mediawiki-1.31.0.tar.gz) from the MediaWiki site. The tarball was unpacked overtop of the old MediaWiki installation after backing up files. After the unpack we restored the old ... | Follow the instructions on <https://getcomposer.org/download/> to download composer, then run `mv composer.phar /usr/local/bin/composer` to move it to a system wide location. If you get a permissions error when running that, try `sudo mv composer.phar /usr/local/bin/composer` to run the command with elevated permission... |
115,923 | <p>Should I use the <code>Organization</code> schema on each page if I have another schema data, for example <code>Event</code>?</p>
<p>Can I use <code>Event</code> and <code>Organization</code> on the same page?</p>
<h3><code>Organization</code> code</h3>
<pre class="lang-html prettyprint-override"><code><script... | [
{
"answer_id": 115926,
"author": "unor",
"author_id": 17633,
"author_profile": "https://webmasters.stackexchange.com/users/17633",
"pm_score": 0,
"selected": false,
"text": "<p>Yes, you can use as many schemas as you want.</p>\n\n<p>It would be the best practice to connect the items with... | 2018/06/19 | [
"https://webmasters.stackexchange.com/questions/115923",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/89981/"
] | Should I use the `Organization` schema on each page if I have another schema data, for example `Event`?
Can I use `Event` and `Organization` on the same page?
### `Organization` code
```html
<script type="application/ld+json">
{
"@context" : "http://schema.org",
"@type" : "Organization",
"name" : "name",
"ad... | I'd be careful when using multiple top level entities like that. Systems like Google typically pick one entity as the main entity for the page, and ignore the others. Will Google decide that it is a page about an Organization, or a page about an Event?
There are exceptions, like entities that are defining parts of a p... |