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 |
|---|---|---|---|---|---|---|
65,703 | <p>I have a series of coordinates data which I plot onto an API-generated heatmap visualization using Google Maps API. The data changes daily, and I'd like to capture the heatmap and save it as a PNG or JPG image programmatically from within PHP so that a particular day's map can be recalled without regenerating the ma... | [
{
"answer_id": 71994,
"author": "Stephen Ostermiller",
"author_id": 14543,
"author_profile": "https://webmasters.stackexchange.com/users/14543",
"pm_score": 1,
"selected": false,
"text": "<p>It is possible to take screenshots programatically rather than manually. I do this on my charts... | 2014/07/04 | [
"https://webmasters.stackexchange.com/questions/65703",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/35875/"
] | I have a series of coordinates data which I plot onto an API-generated heatmap visualization using Google Maps API. The data changes daily, and I'd like to capture the heatmap and save it as a PNG or JPG image programmatically from within PHP so that a particular day's map can be recalled without regenerating the map a... | I'm working on a project with a similar requested function. I need to make a report which needs to contain some data and additionally some maps (heath, cluster and markers). At this time I'm doing it on the client side, with html2canvas, but like you, I would like to do it server side.
```
google.maps.event.addListene... |
65,719 | <p><em>Experimenting with Interchange Responsive Images</em></p>
<p>I'm experimenting with <a href="http://foundation.zurb.com/docs/components/interchange.html" rel="nofollow">Interchange by Zurb Foundation</a> to serve various images versions to different devices. For example 200x100 for mobiles, 300x100 for tablets ... | [
{
"answer_id": 67089,
"author": "RichardB",
"author_id": 43176,
"author_profile": "https://webmasters.stackexchange.com/users/43176",
"pm_score": 2,
"selected": false,
"text": "<p>My own tests on noscript using firebug's net tab don't actually load any image contained within the noscript... | 2014/07/05 | [
"https://webmasters.stackexchange.com/questions/65719",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/20604/"
] | *Experimenting with Interchange Responsive Images*
I'm experimenting with [Interchange by Zurb Foundation](http://foundation.zurb.com/docs/components/interchange.html) to serve various images versions to different devices. For example 200x100 for mobiles, 300x100 for tablets and 600x100 for Desktops! This solution wor... | My own tests on noscript using firebug's net tab don't actually load any image contained within the noscript tags unless javascript is off.
Likewise, the first poster here has no such problems and points to the w3 specification saying that such tags will be treated as text when js is on.
<https://stackoverflow.com/que... |
65,730 | <p>I need some advice from more experienced webmasters.<br>
I have 2 websites (site A and site B). These websites are totally different, but they use same product images (around 1 GB of images). These websites are on same hosting server. </p>
<p>For now, site A has own folder with images and site B has own.<br>
I'm w... | [
{
"answer_id": 65731,
"author": "John Conde",
"author_id": 1253,
"author_profile": "https://webmasters.stackexchange.com/users/1253",
"pm_score": 2,
"selected": false,
"text": "<p>This is easier than you think. You can host the images on one of the two websites and simply use the full UR... | 2014/07/06 | [
"https://webmasters.stackexchange.com/questions/65730",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/42033/"
] | I need some advice from more experienced webmasters.
I have 2 websites (site A and site B). These websites are totally different, but they use same product images (around 1 GB of images). These websites are on same hosting server.
For now, site A has own folder with images and site B has own.
I'm wondering if t... | This is easier than you think. You can host the images on one of the two websites and simply use the full URL of the images to load them.
For example, if you host the images on website A, you would load the images on website B using:
```
http://websitea.com/images/image1.jpg
```
No CDN or any special configuration... |
65,740 | <p>I am using Amazon Route 53 and have a correctly functioning <code>A</code> record pointing to an EC2 instance at <code>mydomain.com.au</code> with a Django stack running. </p>
<p>My problem is, I tried to setup a Postfix mailserver but I could not receive mail, so I figured my problem is with the <code>MX</code> re... | [
{
"answer_id": 65741,
"author": "closetnoc",
"author_id": 36029,
"author_profile": "https://webmasters.stackexchange.com/users/36029",
"pm_score": 1,
"selected": false,
"text": "<p>I generally set up a sub-domain name, though it is not necessary. The sub-domain name does not matter. I us... | 2014/07/07 | [
"https://webmasters.stackexchange.com/questions/65740",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/42044/"
] | I am using Amazon Route 53 and have a correctly functioning `A` record pointing to an EC2 instance at `mydomain.com.au` with a Django stack running.
My problem is, I tried to setup a Postfix mailserver but I could not receive mail, so I figured my problem is with the `MX` record (since local mail worked).
This is wh... | I'm afraid I couldn't help you with the complications of setting up a Postfix mailserver, however with regards to your questions about the DNS records:
* The *MX* record you have created looks fine, provided that you have checked that (a) you have no other *MX* records with a priority less than 10, and (b) you have de... |
65,761 | <p>MY google analytics tracking info shows </p>
<pre><code><script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
}... | [
{
"answer_id": 65741,
"author": "closetnoc",
"author_id": 36029,
"author_profile": "https://webmasters.stackexchange.com/users/36029",
"pm_score": 1,
"selected": false,
"text": "<p>I generally set up a sub-domain name, though it is not necessary. The sub-domain name does not matter. I us... | 2014/07/07 | [
"https://webmasters.stackexchange.com/questions/65761",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/42062/"
] | MY google analytics tracking info shows
```
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'s... | I'm afraid I couldn't help you with the complications of setting up a Postfix mailserver, however with regards to your questions about the DNS records:
* The *MX* record you have created looks fine, provided that you have checked that (a) you have no other *MX* records with a priority less than 10, and (b) you have de... |
66,977 | <p>I have a website that whereby the first 185 pages are sample profiles for demonstration purpose:</p>
<pre><code>http://example.com/profile/1
...
http://example.com/profile/185
</code></pre>
<p>I want to block these pages from Google as they are somewhat similar in content to avoid penalty for being labelled as dup... | [
{
"answer_id": 66978,
"author": "Mike Scott",
"author_id": 4311,
"author_profile": "https://webmasters.stackexchange.com/users/4311",
"pm_score": 3,
"selected": false,
"text": "<p>You could put the <a href=\"http://www.robotstxt.org/meta.html\">robots meta tag</a> in all of those pages: ... | 2014/07/14 | [
"https://webmasters.stackexchange.com/questions/66977",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/14826/"
] | I have a website that whereby the first 185 pages are sample profiles for demonstration purpose:
```
http://example.com/profile/1
...
http://example.com/profile/185
```
I want to block these pages from Google as they are somewhat similar in content to avoid penalty for being labelled as duplicate content. Is there a... | It is **not possible** to use robots.txt (as defined by the [original specification](http://www.robotstxt.org/orig.html)) in your case. A line like `Disallow: /profile/1` will block all URLs whose paths *start* with `/profile/1`. So this applies to the profiles 1, 10-19, 100-185 (as intended), but also to the profiles ... |
66,989 | <p>I need to add a HTTPS address to an existing domain. Unfortunately there two companies involved: One for shared web-hosting, and one for the domain.</p>
<p>How do SSL Certificated domains work in such instances? Does the company who hosts the domain issue the SSL Certificate? Or is it the web-hosting company that t... | [
{
"answer_id": 66978,
"author": "Mike Scott",
"author_id": 4311,
"author_profile": "https://webmasters.stackexchange.com/users/4311",
"pm_score": 3,
"selected": false,
"text": "<p>You could put the <a href=\"http://www.robotstxt.org/meta.html\">robots meta tag</a> in all of those pages: ... | 2014/07/14 | [
"https://webmasters.stackexchange.com/questions/66989",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/2251/"
] | I need to add a HTTPS address to an existing domain. Unfortunately there two companies involved: One for shared web-hosting, and one for the domain.
How do SSL Certificated domains work in such instances? Does the company who hosts the domain issue the SSL Certificate? Or is it the web-hosting company that the domain ... | It is **not possible** to use robots.txt (as defined by the [original specification](http://www.robotstxt.org/orig.html)) in your case. A line like `Disallow: /profile/1` will block all URLs whose paths *start* with `/profile/1`. So this applies to the profiles 1, 10-19, 100-185 (as intended), but also to the profiles ... |
66,994 | <p>On my blog, after coding a function which trims stop words, I ended up with these two URLs which are identical if not for the post ID:</p>
<pre><code>http://www.example.com/europe/france/597/june-weather-update
http://www.example.com/europe/france/997/june-weather-update
</code></pre>
<p>My platform - Wordpress -... | [
{
"answer_id": 66995,
"author": "John Conde",
"author_id": 1253,
"author_profile": "https://webmasters.stackexchange.com/users/1253",
"pm_score": 3,
"selected": true,
"text": "<p>No, this will not cause SEO issues. It is very common and normal for URLs to be similar as often times the on... | 2014/07/14 | [
"https://webmasters.stackexchange.com/questions/66994",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/43252/"
] | On my blog, after coding a function which trims stop words, I ended up with these two URLs which are identical if not for the post ID:
```
http://www.example.com/europe/france/597/june-weather-update
http://www.example.com/europe/france/997/june-weather-update
```
My platform - Wordpress - adds "-1", "-2", "-3" to ... | No, this will not cause SEO issues. It is very common and normal for URLs to be similar as often times the only difference between URLs in an ID number of some kind. What matters is the content of these pages are different. It's when that starts to be very similar that you will run into issues. |
67,014 | <p>I have news application that collect news items from other websites on the base of some defined criteria. I'm trying to increase the SEO of my website and its Google rank. I tried something like the following:</p>
<pre><code><a href="http://www.bbc.com/news/business-28292114" target="_news" rel="author">Citig... | [
{
"answer_id": 67015,
"author": "Simon Hayter",
"author_id": 20604,
"author_profile": "https://webmasters.stackexchange.com/users/20604",
"pm_score": 3,
"selected": true,
"text": "<p>Using Google's authorship is meant for internal use i.e a author publishes something on your website. Als... | 2014/07/14 | [
"https://webmasters.stackexchange.com/questions/67014",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/18178/"
] | I have news application that collect news items from other websites on the base of some defined criteria. I'm trying to increase the SEO of my website and its Google rank. I tried something like the following:
```
<a href="http://www.bbc.com/news/business-28292114" target="_news" rel="author">Citigroup pays $7bn to se... | Using Google's authorship is meant for internal use i.e a author publishes something on your website. Also BBC would not be an authorship but rather a publisher.
For [**citing sources**](http://html5doctor.com/cite-and-blockquote-reloaded/) you should use `<blockquote>` and `<cite>`:
```
<blockquote>
<p>Source T... |
67,031 | <p>A page redirects to another page using a <code>301</code> redirect in a <em>.htaccess</em> file.
If I try to access the page from a URL with UTM tagging, after redirection, it removes all UTM tagging.</p>
<p>Is this normal behavior? How can we keep the UTM tagging so that we can see this in our analytics?</p>
<p>Her... | [
{
"answer_id": 67057,
"author": "Binarysurf",
"author_id": 4064,
"author_profile": "https://webmasters.stackexchange.com/users/4064",
"pm_score": 1,
"selected": false,
"text": "<p>If your .htaccess has <code>RewriteRule</code>s like these:</p>\n\n<pre><code>RewriteRule page.html /another... | 2014/07/15 | [
"https://webmasters.stackexchange.com/questions/67031",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/29078/"
] | A page redirects to another page using a `301` redirect in a *.htaccess* file.
If I try to access the page from a URL with UTM tagging, after redirection, it removes all UTM tagging.
Is this normal behavior? How can we keep the UTM tagging so that we can see this in our analytics?
Here are some examples:
***Example ... | If your .htaccess has `RewriteRule`s like these:
```
RewriteRule page.html /another-page.html [NC,R=301,L]
```
It will always remove querystring parameters, that's default behaviour. You'll have to add `QSA` flag to your `RewriteRule`, like this:
```
RewriteRule page.html /another-page.html [NC,QSA,R=301,L]
```
[... |
67,032 | <p>Which URL is more SEO?</p>
<p><code>mydomain.com/category-name/article-name.html</code></p>
<p>OR</p>
<p><code>mydomain.com/category name/article name.html</code></p>
<p>I have read some articles about URL Rewriting but there I can't find any conclusion.</p>
| [
{
"answer_id": 67034,
"author": "zigojacko",
"author_id": 12183,
"author_profile": "https://webmasters.stackexchange.com/users/12183",
"pm_score": 3,
"selected": true,
"text": "<p>Replace spaces with hyphens in URL's without a doubt.</p>\n\n<p>They are more readable otherwise URL's will ... | 2014/07/15 | [
"https://webmasters.stackexchange.com/questions/67032",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/30933/"
] | Which URL is more SEO?
`mydomain.com/category-name/article-name.html`
OR
`mydomain.com/category name/article name.html`
I have read some articles about URL Rewriting but there I can't find any conclusion. | Replace spaces with hyphens in URL's without a doubt.
They are more readable otherwise URL's will be encoded in the browser like:-
```
example.com/category%20name/article%20name.html
```
It's more friendly for search engines and humans like:-
```
example.com/category-name/article-name.html
```
You can accomplish... |
67,037 | <p>Will this record be used by internet services or not?</p>
<p>I'm moving the ns records from one server to another while keeping the site on a third webhost.</p>
<p>I do not have control on the primary nameserver so I added a second record in the domain zone file. Both name servers have the same a, cname and mx rec... | [
{
"answer_id": 67034,
"author": "zigojacko",
"author_id": 12183,
"author_profile": "https://webmasters.stackexchange.com/users/12183",
"pm_score": 3,
"selected": true,
"text": "<p>Replace spaces with hyphens in URL's without a doubt.</p>\n\n<p>They are more readable otherwise URL's will ... | 2014/07/15 | [
"https://webmasters.stackexchange.com/questions/67037",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/24103/"
] | Will this record be used by internet services or not?
I'm moving the ns records from one server to another while keeping the site on a third webhost.
I do not have control on the primary nameserver so I added a second record in the domain zone file. Both name servers have the same a, cname and mx records. But I added... | Replace spaces with hyphens in URL's without a doubt.
They are more readable otherwise URL's will be encoded in the browser like:-
```
example.com/category%20name/article%20name.html
```
It's more friendly for search engines and humans like:-
```
example.com/category-name/article-name.html
```
You can accomplish... |
67,106 | <p>As of now, it appears that the only way to implement Google AdSense ad units for a website built on responsive design is to use the Google responsive ad units. However, it appears that there is no responsive option available for link units. </p>
<p>Is there any way to implement Google AdSense linkunits on a respons... | [
{
"answer_id": 69529,
"author": "Aakash",
"author_id": 45105,
"author_profile": "https://webmasters.stackexchange.com/users/45105",
"pm_score": 1,
"selected": false,
"text": "<p>This is what I did for hiding long adlinks on mobile. This method (that's what I believe) also falls under one... | 2014/07/16 | [
"https://webmasters.stackexchange.com/questions/67106",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/34735/"
] | As of now, it appears that the only way to implement Google AdSense ad units for a website built on responsive design is to use the Google responsive ad units. However, it appears that there is no responsive option available for link units.
Is there any way to implement Google AdSense linkunits on a responsive design... | I know this is an old topic, but its relevancy is becoming greater nowadays (2015-06-17). [As Google mentions in this document](https://support.google.com/adsense/answer/3543893#hide), you **are allowed to hide any ad** (not just link ads units) **"on smaller mobile devices"**. For example, if you specifically want the... |
67,119 | <p>If a secure HTTPS page has a canonical tag referencing the HTTP version, will this cause the message in the browser that the page is using unsecure elements and prevent the green lock icon appearing? </p>
<p>e.g</p>
<p><a href="https://wwww.example.com/" rel="nofollow noreferrer">https://wwww.example.com/</a> </p... | [
{
"answer_id": 67120,
"author": "John Conde",
"author_id": 1253,
"author_profile": "https://webmasters.stackexchange.com/users/1253",
"pm_score": 4,
"selected": true,
"text": "<p>Web browsers do not care about canonical URLs. It is for search engine use only (specifically Google). </p>\n... | 2014/07/17 | [
"https://webmasters.stackexchange.com/questions/67119",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/23156/"
] | If a secure HTTPS page has a canonical tag referencing the HTTP version, will this cause the message in the browser that the page is using unsecure elements and prevent the green lock icon appearing?
e.g
<https://wwww.example.com/>
has the following canonical tag defined:
```
<link rel="canonical" href="http://ww... | Web browsers do not care about canonical URLs. It is for search engine use only (specifically Google).
Additionally, canonical URLs do not affect the loading or rendering of a web page. So no assets will be loaded over HTTP which is what would cause an insecure error message.
So, no, they will not display any error ... |
67,137 | <p>I've built a website which has maritime weather and tide data for UK locations, and each location has 7 day forecast (where data is available). My URL structures are like this:</p>
<pre><code>http://www.example.com/location/llandudno/ <-- Today
http://www.example.com/location/llandudno/1 <-- Tomorrow
http://w... | [
{
"answer_id": 67138,
"author": "John Conde",
"author_id": 1253,
"author_profile": "https://webmasters.stackexchange.com/users/1253",
"pm_score": 3,
"selected": true,
"text": "<blockquote>\n <p>My thoughts are further into the future, the less priority the page has?</p>\n</blockquote>\n... | 2014/07/17 | [
"https://webmasters.stackexchange.com/questions/67137",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/37049/"
] | I've built a website which has maritime weather and tide data for UK locations, and each location has 7 day forecast (where data is available). My URL structures are like this:
```
http://www.example.com/location/llandudno/ <-- Today
http://www.example.com/location/llandudno/1 <-- Tomorrow
http://www.example.com/locat... | >
> My thoughts are further into the future, the less priority the page has?
>
>
>
In your particular case I think this is a fair determination. Just keep in mind that the priority flag doesn't really seem to do much so don't expect to see anything change as a result of this change.
>
> Am I structuring my URLs ... |
67,145 | <p>I am getting lots of crawl errors, Google is adding main domain to the URL:</p>
<pre><code>sitemapxml:
<url><loc>http://www.somedomain.com/whateveryouwant.php</loc><changefreq>monthly</changefreq></url>
</code></pre>
<p>From Google Webmaster Tools:</p>
<pre><code>Not found:
h... | [
{
"answer_id": 67146,
"author": "user1795832",
"author_id": 39249,
"author_profile": "https://webmasters.stackexchange.com/users/39249",
"pm_score": 0,
"selected": false,
"text": "<p>If you are getting crawl errors, then yes it is affecting crawling. I'm guessing how you have your page ... | 2014/07/17 | [
"https://webmasters.stackexchange.com/questions/67145",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/37266/"
] | I am getting lots of crawl errors, Google is adding main domain to the URL:
```
sitemapxml:
<url><loc>http://www.somedomain.com/whateveryouwant.php</loc><changefreq>monthly</changefreq></url>
```
From Google Webmaster Tools:
```
Not found:
http://www.somedomain.com/whateveryouwant.php
```
When clicking it shows... | Finally found the error.
The problem was in the canonical link:
I had:
```
<link href="http:www.somedomain.com/whateveryouwant.php" rel="canonical"/>
```
It should be
```
<link href="http://www.somedomain.com/whateveryouwant.php" rel="canonical"/>
```
The "//" were missing.
The Seo-Spider recommended by @close... |
67,152 | <p>While observing the source of the Swiss airlines website, I noticed the use of hidden text. I first looked it up on Google and found many <a href="http://www.seochat.com/c/a/search-engine-optimization-help/hidden-text-in-websites/">SEO-related benefits</a> but also the risk of negative scoring in search engine algor... | [
{
"answer_id": 67154,
"author": "John Conde",
"author_id": 1253,
"author_profile": "https://webmasters.stackexchange.com/users/1253",
"pm_score": 4,
"selected": true,
"text": "<p>Text/content is usually hidden for one of two reasons:</p>\n\n<ol>\n<li><p>That content should not be display... | 2014/07/18 | [
"https://webmasters.stackexchange.com/questions/67152",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/26754/"
] | While observing the source of the Swiss airlines website, I noticed the use of hidden text. I first looked it up on Google and found many [SEO-related benefits](http://www.seochat.com/c/a/search-engine-optimization-help/hidden-text-in-websites/) but also the risk of negative scoring in search engine algorithms.
The te... | Text/content is usually hidden for one of two reasons:
1. That content should not be displayed until a certain event occurs (i.e. a user performs an action like clicking on a link or pressing a button).
2. That content is only necessary for users who have special needs (e.g. accessibility).
I didn't review swiss.com ... |
67,221 | <p>I use Piwik to track people visiting my website. Unfortunately a lot of the visitors that appear in the visitor log are not real people but spam bots. Normally, these bots use a provider from a country that differs from my target audience. They always refer to a spam site, as you can see in the referrer column.</p>
... | [
{
"answer_id": 67222,
"author": "RichardB",
"author_id": 43176,
"author_profile": "https://webmasters.stackexchange.com/users/43176",
"pm_score": 2,
"selected": false,
"text": "<p>You can block them by ip in Piwik...</p>\n\n<pre><code> To exclude all traffic from a given IP or IP rang... | 2014/07/19 | [
"https://webmasters.stackexchange.com/questions/67221",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/43381/"
] | I use Piwik to track people visiting my website. Unfortunately a lot of the visitors that appear in the visitor log are not real people but spam bots. Normally, these bots use a provider from a country that differs from my target audience. They always refer to a spam site, as you can see in the referrer column.
![Exam... | You can block them by ip in Piwik...
```
To exclude all traffic from a given IP or IP range, log in Piwik as the Super User.
Click on Settings > Websites. Below the list of websites, you will find the option to
specify “Global list of Excluded IPs”. You can define a given IP address, or IP ranges
(132.4.3.* or ... |
67,236 | <p>How can I disallow this URL: <code>http://www.example.com/assets/ico/favicon.png</code>?</p>
<p>Would these lines in my <em>robots.txt</em> work?</p>
<pre><code>User-agent: *
Disallow: /blah/assets*
Disallow: /blah/assets/ico/
</code></pre>
| [
{
"answer_id": 67238,
"author": "user1795832",
"author_id": 39249,
"author_profile": "https://webmasters.stackexchange.com/users/39249",
"pm_score": 4,
"selected": true,
"text": "<p>Both of those would work, but they would also block anything else in those directories. If you only want ... | 2014/07/19 | [
"https://webmasters.stackexchange.com/questions/67236",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/43390/"
] | How can I disallow this URL: `http://www.example.com/assets/ico/favicon.png`?
Would these lines in my *robots.txt* work?
```
User-agent: *
Disallow: /blah/assets*
Disallow: /blah/assets/ico/
``` | Both of those would work, but they would also block anything else in those directories. If you only want to block that specific URL, you could do:
```
Disallow: */blah/assets/ico/favicon.png
```
Do you have a Google Webmasters Account setup? If so they have a new robots.txt test page where you can see if a URL is bl... |
67,286 | <p>I am working on a responsive design website to deliver content for all screen sizes. I have media queries for 5 different "steps", and the CSS file is around 30 Kb.</p>
<p>Would it be better to split this into separate files and make them similar to this:</p>
<pre><code><link rel='stylesheet' media='screen and ... | [
{
"answer_id": 67288,
"author": "RichardB",
"author_id": 43176,
"author_profile": "https://webmasters.stackexchange.com/users/43176",
"pm_score": 5,
"selected": true,
"text": "<p>I think it really depends on what you find easiest for development and what helps you keep a tidy stylesheet.... | 2014/07/21 | [
"https://webmasters.stackexchange.com/questions/67286",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/33887/"
] | I am working on a responsive design website to deliver content for all screen sizes. I have media queries for 5 different "steps", and the CSS file is around 30 Kb.
Would it be better to split this into separate files and make them similar to this:
```
<link rel='stylesheet' media='screen and (min-width: 701px) and (... | I think it really depends on what you find easiest for development and what helps you keep a tidy stylesheet.
The only real downside I can think of in splitting would be that should an element's attribute appear in all your stylesheets, you would have to update 5 separate files to change it (rather than it appearing ... |
67,303 | <p>I have a static HTML website with less than 100 pages and 99 of them are indexed in Google's search engine. I want to convert it into a WordPress website, but there are some problems I'm worried about.</p>
<p>My HTML website pages have an <code>.html</code> extension at the end of them and they're indexed with that... | [
{
"answer_id": 67319,
"author": "Juan Castañeda",
"author_id": 43278,
"author_profile": "https://webmasters.stackexchange.com/users/43278",
"pm_score": 1,
"selected": false,
"text": "<p>I believe the problem is with your regular expression</p>\n\n<p>This sould work fine:</p>\n\n<pre><cod... | 2014/07/21 | [
"https://webmasters.stackexchange.com/questions/67303",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/-1/"
] | I have a static HTML website with less than 100 pages and 99 of them are indexed in Google's search engine. I want to convert it into a WordPress website, but there are some problems I'm worried about.
My HTML website pages have an `.html` extension at the end of them and they're indexed with that extension, so conver... | Since I helped you with the [**htaccess** file yesterday](https://webmasters.stackexchange.com/questions/67358/code-for-redirecting-an-html-page-without-an-extension-using-an-htaccess-file-r/67359), I need to offer some advice here:
1. Do not use [Jaun's](https://webmasters.stackexchange.com/users/43278/juan-casta%C3... |
67,339 | <p>Can I add title attribute for "a" element in HTML5? The spec does not mention title attribute for "a" element here <a href="http://www.w3.org/TR/html-markup/a.html" rel="nofollow">http://www.w3.org/TR/html-markup/a.html</a>, so for example, would it be valid to use</p>
<pre><code><a title="mylink" href="...
</co... | [
{
"answer_id": 67340,
"author": "John Conde",
"author_id": 1253,
"author_profile": "https://webmasters.stackexchange.com/users/1253",
"pm_score": 3,
"selected": true,
"text": "<p>The <code>title</code> attribute <a href=\"https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attribute... | 2014/07/22 | [
"https://webmasters.stackexchange.com/questions/67339",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/27371/"
] | Can I add title attribute for "a" element in HTML5? The spec does not mention title attribute for "a" element here <http://www.w3.org/TR/html-markup/a.html>, so for example, would it be valid to use
```
<a title="mylink" href="...
``` | The `title` attribute [is available to all HTML tags](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes#title):
>
> HTML defines a few attributes that are common to all HTML elements. These attributes can be used on all elements, though the attributes may have no effect on some elements.
>
>
>
S... |
67,381 | <p>My client has a very simple website with two different languages and I decided to make a separate folder for each language, for example:</p>
<p><code>domain.com/en/ domain.com/de/</code></p>
<p>But in the root folder there's no index file, only an <em>.htaccess</em> file that <code>301</code> redirects based on <... | [
{
"answer_id": 67382,
"author": "Jack",
"author_id": 43471,
"author_profile": "https://webmasters.stackexchange.com/users/43471",
"pm_score": 1,
"selected": false,
"text": "<p>As far as I know, there is no specific needs to put your files on root. If you think your users will get benefit... | 2014/07/23 | [
"https://webmasters.stackexchange.com/questions/67381",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/43469/"
] | My client has a very simple website with two different languages and I decided to make a separate folder for each language, for example:
`domain.com/en/ domain.com/de/`
But in the root folder there's no index file, only an *.htaccess* file that `301` redirects based on `HTTP:Accept-Language`. It works just fine, but ... | This may not really be an answer to your question, but the best way to make a multilingual is in most cases by using some simple PHP.
Create a folder called `languages` and create the files `lang.code.php`. Replace `code` with, for example EN for English, DE for German, etc.
Create a language switcher with the follow... |
67,398 | <p>I want my website to be accessible only by the domain name, not by the server’s IP address. How can I configure Apache to achieve this?</p>
<p>Below are the VirtualHost configurations of Apache.</p>
<pre><code><VirtualHost *:80>
ServerName not.configured
DocumentRoot /var/www
</VirtualHost>
<Vi... | [
{
"answer_id": 67400,
"author": "Thyamarkos",
"author_id": 39052,
"author_profile": "https://webmasters.stackexchange.com/users/39052",
"pm_score": 2,
"selected": false,
"text": "<p>You could simply redirect the user to the named host:</p>\n\n<pre><code># Uncomment the line below if not ... | 2014/07/23 | [
"https://webmasters.stackexchange.com/questions/67398",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/8836/"
] | I want my website to be accessible only by the domain name, not by the server’s IP address. How can I configure Apache to achieve this?
Below are the VirtualHost configurations of Apache.
```
<VirtualHost *:80>
ServerName not.configured
DocumentRoot /var/www
</VirtualHost>
<VirtualHost my.server.ip.address>
... | **Empty Virtual Host**
With virtual hosting, all traffic is routed to an IP address and then Apache matches the hostname. When virtual hosting using `NameVirtualHost` is enabled, the site that responds to the IP address is the first one listed in the Apache configuration file.
So you can use a null virtualhost:
```
... |
67,405 | <p>I write a software library that maintains "latest" and "beta" branches:</p>
<pre><code>gojs.net/latest
gojs.net/beta
</code></pre>
<p>Ideally all of this content would be available via Google search, so I'm reluctant to disallow indexing of the <code>beta</code> branch. However, many of the pages are the same or ... | [
{
"answer_id": 67416,
"author": "Anagio",
"author_id": 10527,
"author_profile": "https://webmasters.stackexchange.com/users/10527",
"pm_score": 0,
"selected": false,
"text": "<p>Why not set canonical URL's to suggest to Google which content you want indexed.</p>\n\n<p><a href=\"https://s... | 2014/07/23 | [
"https://webmasters.stackexchange.com/questions/67405",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/43488/"
] | I write a software library that maintains "latest" and "beta" branches:
```
gojs.net/latest
gojs.net/beta
```
Ideally all of this content would be available via Google search, so I'm reluctant to disallow indexing of the `beta` branch. However, many of the pages are the same or very similar, such as API pages
Howe... | There is little you can do to control what search engines do, but here are some ideas.
As for canonical links, this is a way to say to Google *this is like that*. Some argue that this is for identical pages while others recommend using this option for similar pages too. Either way, you are telling Google to take notic... |
67,430 | <p>Well, not exactly banners, I just used this word as it is easier to understand in a title.</p>
<p>So, I have 16 different CTA "boxes" with a couple lines of persuasive copy and a CTA button. I want to test which one performs the best. I am showing the boxes randomly and counting button clicks as events in GA. Howev... | [
{
"answer_id": 67435,
"author": "Prasad Ajinkya",
"author_id": 19699,
"author_profile": "https://webmasters.stackexchange.com/users/19699",
"pm_score": 1,
"selected": false,
"text": "<p>I guess you will have to use <a href=\"https://developers.google.com/analytics/devguides/collection/ga... | 2014/07/24 | [
"https://webmasters.stackexchange.com/questions/67430",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/33887/"
] | Well, not exactly banners, I just used this word as it is easier to understand in a title.
So, I have 16 different CTA "boxes" with a couple lines of persuasive copy and a CTA button. I want to test which one performs the best. I am showing the boxes randomly and counting button clicks as events in GA. However, withou... | This would be the correct answer to the question. To count impressions, we just need to place a 0 size image with `onload` parameter:
```
<img width=0 height=0 src="data:image/gif;base64,R0lGODlhAQABAIAAAP///////yH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==" onload="_gaq.push(['_trackEvent', 'Banner', 'Impression', 'BANNERNAME'... |
67,443 | <p>Firefox 31 was released yesterday, and it seems like it has a problem with SSL:</p>
<pre><code>Secure Connection Failed
An error occurred during a connection to api.joeyco.com. SSL peer selected a
cipher suite disallowed for the selected protocol version.
(Error code: ssl_error_cipher_disallowed_for_version)
The ... | [
{
"answer_id": 67444,
"author": "Tero Kilkanen",
"author_id": 36798,
"author_profile": "https://webmasters.stackexchange.com/users/36798",
"pm_score": 3,
"selected": true,
"text": "<p>Actually your website has a problem of using insecure SSL ciphers.</p>\n\n<p>You should configure the ci... | 2014/07/24 | [
"https://webmasters.stackexchange.com/questions/67443",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/43520/"
] | Firefox 31 was released yesterday, and it seems like it has a problem with SSL:
```
Secure Connection Failed
An error occurred during a connection to api.joeyco.com. SSL peer selected a
cipher suite disallowed for the selected protocol version.
(Error code: ssl_error_cipher_disallowed_for_version)
The page you are t... | Actually your website has a problem of using insecure SSL ciphers.
You should configure the ciphers in your web server like this:
```
ssl_prefer_server_ciphers On;
ssl_protocols SSLv3 TLSv1 TLSv1.1 TLSv1.2;
ssl_ciphers ECDH+AESGCM:DH+AESGCM:ECDH+AES256:DH+AES256:ECDH+AES128:DH+AES:ECDH+3DES:DH+3DES:RSA+AESGCM:RSA+AES... |
67,446 | <p>I know this question is debatable for the whole eternity, and most likely nobody knows the real philosophy of this problem. But I'm trying to solve the problem about 301 and 302 response headers in order to redirect correctly a canonical URL from non-www to www and do it <strong>SEO-efficient</strong>.</p>
<p>At th... | [
{
"answer_id": 68563,
"author": "Stephen Ostermiller",
"author_id": 14543,
"author_profile": "https://webmasters.stackexchange.com/users/14543",
"pm_score": 2,
"selected": false,
"text": "<p>The type of redirect you are using is not the problem. 301 redirects are cacheable. In fact th... | 2014/07/25 | [
"https://webmasters.stackexchange.com/questions/67446",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/43524/"
] | I know this question is debatable for the whole eternity, and most likely nobody knows the real philosophy of this problem. But I'm trying to solve the problem about 301 and 302 response headers in order to redirect correctly a canonical URL from non-www to www and do it **SEO-efficient**.
At the moment I'm using the ... | The type of redirect you are using is not the problem. 301 redirects are cacheable. In fact they are [extremely hard to cache bust](http://getluky.net/2010/12/14/301-redirects-cannot-be-undon/). 301 means "permanent" and browsers are very likely to cache 301 redirects with no way with the server to undo one that is alr... |
67,447 | <p>I am using Content Experiments in Google Analytics to test three different landing pages. This uses JavaScript on the initial page to load the alternates.</p>
<p>Would the additional JavaScript add to the load time for alternative versions, and if so how can I measure this?</p>
| [
{
"answer_id": 68563,
"author": "Stephen Ostermiller",
"author_id": 14543,
"author_profile": "https://webmasters.stackexchange.com/users/14543",
"pm_score": 2,
"selected": false,
"text": "<p>The type of redirect you are using is not the problem. 301 redirects are cacheable. In fact th... | 2014/07/25 | [
"https://webmasters.stackexchange.com/questions/67447",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/7031/"
] | I am using Content Experiments in Google Analytics to test three different landing pages. This uses JavaScript on the initial page to load the alternates.
Would the additional JavaScript add to the load time for alternative versions, and if so how can I measure this? | The type of redirect you are using is not the problem. 301 redirects are cacheable. In fact they are [extremely hard to cache bust](http://getluky.net/2010/12/14/301-redirects-cannot-be-undon/). 301 means "permanent" and browsers are very likely to cache 301 redirects with no way with the server to undo one that is alr... |
67,464 | <p>I'm receiving the following errors in Google's Structured Data Testing Tool:</p>
<p><img src="https://i.stack.imgur.com/wE4Fv.png" alt="Rich Snnipets Tools Errors"></p>
<p>It seems like the page for the category "galeria" does not contain these fields. There are also some more errors like this (all with categories... | [
{
"answer_id": 67475,
"author": "RichardB",
"author_id": 43176,
"author_profile": "https://webmasters.stackexchange.com/users/43176",
"pm_score": 1,
"selected": false,
"text": "<p>I think you need to make sure that the <code>hentry</code> class appears on a tag which appears <strong>outs... | 2014/07/25 | [
"https://webmasters.stackexchange.com/questions/67464",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/31534/"
] | I'm receiving the following errors in Google's Structured Data Testing Tool:

It seems like the page for the category "galeria" does not contain these fields. There are also some more errors like this (all with categories links). The strange thing is t... | The errors were not due to the categories or tag pages, but to the slider and the sidebar posts in home page. So to solve it I just had to add rich snippets to all the posts shown there (also in categories and tags pages). |
67,476 | <p>From the SEO point of view, which one of these two are better ?
Considering this is a classifieds site with around 10 similar listings/links per page.</p>
<p>Separate link for thumbnail and text title</p>
<pre><code><a href="/product.html">
<img src="/product.jpg" alt="product" />
</a>
<br ... | [
{
"answer_id": 67481,
"author": "RichardB",
"author_id": 43176,
"author_profile": "https://webmasters.stackexchange.com/users/43176",
"pm_score": 0,
"selected": false,
"text": "<p>It may make a mild difference to how the Page Rank flows around your site, but unless you are doing Page Ran... | 2014/07/26 | [
"https://webmasters.stackexchange.com/questions/67476",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/28745/"
] | From the SEO point of view, which one of these two are better ?
Considering this is a classifieds site with around 10 similar listings/links per page.
Separate link for thumbnail and text title
```
<a href="/product.html">
<img src="/product.jpg" alt="product" />
</a>
<br /><a href="/product.html">product</a>
```... | The benefit to using a separate link is tracking which link converts better. The image, or product name or title. Using event tracking with Google Analytics you'd be able to see which of the two were clicked on more often and which converted higher.
However if you view Zappos category pages, the image and title of pro... |
67,479 | <p>I have a couple of specific URLs that I want to display differently on my website, like this:</p>
<pre><code>RewriteRule ^contact$ contact.php
</code></pre>
<p>To get ride of the ".php" extension.</p>
<p>And to be SEO friendly (to avoid having 2 different URLS pointing to the same page), I also want to do a 301 r... | [
{
"answer_id": 67484,
"author": "closetnoc",
"author_id": 36029,
"author_profile": "https://webmasters.stackexchange.com/users/36029",
"pm_score": 1,
"selected": false,
"text": "<p>Yes you would. You are telling Apache to take any reference to contact and rewrite the URI to contact.php t... | 2014/07/26 | [
"https://webmasters.stackexchange.com/questions/67479",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/43561/"
] | I have a couple of specific URLs that I want to display differently on my website, like this:
```
RewriteRule ^contact$ contact.php
```
To get ride of the ".php" extension.
And to be SEO friendly (to avoid having 2 different URLS pointing to the same page), I also want to do a 301 redirect between the old URL and t... | I had to [ask this question myself](https://stackoverflow.com/questions/15340785/how-to-rewrite-to-a-script-and-also-redirect-away-from-that-script-using-htacce). It is surprisingly tricky to do. [Olaf Dietsche](https://stackoverflow.com/users/1741542/olaf-dietsche) provided the solution of using an environment variabl... |
67,499 | <p>I have something like a sidebar that is being pulled out on a click on smaller resolutions. Therefore it is not initially visible, but can be visible when pulled out via a clearly indicated arrow, and is accessible from every page. </p>
<p>It is quite complicated for me to understand all the rules dictated by Adsen... | [
{
"answer_id": 67500,
"author": "Rana Prathap",
"author_id": 34735,
"author_profile": "https://webmasters.stackexchange.com/users/34735",
"pm_score": 1,
"selected": false,
"text": "<p>Here are the parts from the Adsense programme policies that might be relevant:</p>\n<p>It is forbidden f... | 2014/07/27 | [
"https://webmasters.stackexchange.com/questions/67499",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/43575/"
] | I have something like a sidebar that is being pulled out on a click on smaller resolutions. Therefore it is not initially visible, but can be visible when pulled out via a clearly indicated arrow, and is accessible from every page.
It is quite complicated for me to understand all the rules dictated by Adsense, so my ... | Take a look at [this](https://support.google.com/adsense/answer/48182?hl=en) page. Search for 'Ad placement'. It says:
```
Google ads, search boxes or search results may not be:
Displayed in pop-ups or pop-unders.
```
I'm not sure if
>
> sidebar that is being pulled out on a click.
>
>
>
is a 'popup' too. To ... |
67,546 | <p>Searched all over and tried playing with httpd.conf , nothing works.
The domain name can be resolved with www.domain.com but without www its does not resolve.</p>
<p>Advice for A Records does not work. I have a domain from Registrar otwohosting.net there panel is like publicdomainregistry.com and have options for n... | [
{
"answer_id": 67547,
"author": "closetnoc",
"author_id": 36029,
"author_profile": "https://webmasters.stackexchange.com/users/36029",
"pm_score": 3,
"selected": true,
"text": "<p>This may be kind of easy!</p>\n\n<p>Your:</p>\n\n<blockquote>\n <p>ServerName www.mydomain.com</p>\n \n <... | 2014/07/28 | [
"https://webmasters.stackexchange.com/questions/67546",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/41830/"
] | Searched all over and tried playing with httpd.conf , nothing works.
The domain name can be resolved with www.domain.com but without www its does not resolve.
Advice for A Records does not work. I have a domain from Registrar otwohosting.net there panel is like publicdomainregistry.com and have options for nameservers... | This may be kind of easy!
Your:
>
> ServerName www.mydomain.com
>
>
> ServerAlias mydomain.com
>
>
>
...is backwards, should be:
>
> ServerName mydomain.com
>
>
> ServerAlias www.mydomain.com
>
>
>
Also, verify your DNS settings, just in case. You should have:
* A record for mydomain.com that is an IP... |
67,620 | <p>I want to configure tk domain with hostinger. I don't want to use the redirect option, so I'm trying to set the tk dns. In the image below are shown the parameters of hostinger that I have put in dns service conf on tk</p>
<p><img src="https://i.stack.imgur.com/8kUSZ.png" alt="enter image description here"></p>
<p... | [
{
"answer_id": 67622,
"author": "closetnoc",
"author_id": 36029,
"author_profile": "https://webmasters.stackexchange.com/users/36029",
"pm_score": 1,
"selected": false,
"text": "<p>From the image that you provided, I do not see an IP address for your domain name mysitename.tk. As well, ... | 2014/07/30 | [
"https://webmasters.stackexchange.com/questions/67620",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/20727/"
] | I want to configure tk domain with hostinger. I don't want to use the redirect option, so I'm trying to set the tk dns. In the image below are shown the parameters of hostinger that I have put in dns service conf on tk

Actually the website on tk lin... | The posted configuration was correct, the issue was caused by DNS cache of the OS, after flushing cache with
```
ipconfig /flushdns
```
everything works. |
67,728 | <p>I have an app in node.js and I want to make a route that redirects all hotlinks to images to the article/URL the image was used on. </p>
<p>But since all the images are stored in <code>/public/img</code> directory and article URLs are generated programmatically, how do I tie down each image to its article? ..in a w... | [
{
"answer_id": 67729,
"author": "Jérôme Verstrynge",
"author_id": 10346,
"author_profile": "https://webmasters.stackexchange.com/users/10346",
"pm_score": 1,
"selected": false,
"text": "<p>If what you mean is making a link between the image and the article, then you could include your im... | 2014/08/03 | [
"https://webmasters.stackexchange.com/questions/67728",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/14692/"
] | I have an app in node.js and I want to make a route that redirects all hotlinks to images to the article/URL the image was used on.
But since all the images are stored in `/public/img` directory and article URLs are generated programmatically, how do I tie down each image to its article? ..in a way that would allow m... | If what you mean is making a link between the image and the article, then you could include your image in a link:
```
<a href="/my/url/to/my/article.html">
<img src="/my/url/to/my/image.png" width="42" height="42">
</a>
```
When people click on your image, they would be directed to the corresponding article. |
67,760 | <p>I am the developer of an HTML checking tool. I want to check meta names to make sure they match case-sensitively when it matters. All I've come across so far (according to Google) is that this meta name ("google-site-verification") should be case sensitive as in:</p>
<pre><code><meta name="google-site-verificati... | [
{
"answer_id": 67781,
"author": "theafh",
"author_id": 43142,
"author_profile": "https://webmasters.stackexchange.com/users/43142",
"pm_score": 2,
"selected": false,
"text": "<hr>\n\n<p>Google is a little bit over exact on this to avoid requests on the verification topic. It's the conten... | 2014/08/04 | [
"https://webmasters.stackexchange.com/questions/67760",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/43779/"
] | I am the developer of an HTML checking tool. I want to check meta names to make sure they match case-sensitively when it matters. All I've come across so far (according to Google) is that this meta name ("google-site-verification") should be case sensitive as in:
```
<meta name="google-site-verification" content="XXX"... | ---
Google is a little bit over exact on this to avoid requests on the verification topic. It's the content="" part of the verification meta-tag which has to be case sensitive. Not the name="" part as you post it in your answer. Google verifies with help of this meta tag even if the name-part is NOT written as they pr... |
67,764 | <p>How do I get the naked domain for my site that is typed into a browser (<code>example.com</code>) to automatically redirect to <code>www.mywebsite.com</code>. Would this be done on the internal IIS web server or through the registration service DNS settings? </p>
<p>I use <code>Register.com</code> and I tried askin... | [
{
"answer_id": 67765,
"author": "William",
"author_id": 43487,
"author_profile": "https://webmasters.stackexchange.com/users/43487",
"pm_score": 1,
"selected": false,
"text": "<blockquote>\n <p>Would this be done on the internal IIS web server</p>\n</blockquote>\n\n<p>It's possible. The... | 2014/08/04 | [
"https://webmasters.stackexchange.com/questions/67764",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/43781/"
] | How do I get the naked domain for my site that is typed into a browser (`example.com`) to automatically redirect to `www.mywebsite.com`. Would this be done on the internal IIS web server or through the registration service DNS settings?
I use `Register.com` and I tried asking their technical support, but they did not... | >
> Would this be done on the internal IIS web server
>
>
>
It's possible. There are several ways. I will show the way where you use the `web.config` file. In your `web.config` file put the following code:
```
<rewrite>
<rules>
<rule name="Redirect domain.com to www" patternSyntax="Wildcard" stopProcessin... |
67,805 | <p>While looking through the access log of my webserver, I notice a few favicon requests that shows 404 error:</p>
<pre><code>16:17:28 GET /folder/abc.jpg 200 http://example.com/ Mozilla... Firefox/31.0
16:17:28 GET /folder/efg.png 200 http://cdn.example.com/style.css Mozilla... Firefox/31.0
16:17:38 GET /favicon.ico ... | [
{
"answer_id": 67807,
"author": "Simon Hayter",
"author_id": 20604,
"author_profile": "https://webmasters.stackexchange.com/users/20604",
"pm_score": 3,
"selected": true,
"text": "<p><em>Some bots and older browsers</em></p>\n\n<p>Some bots and older browsers will ignore custom favicon p... | 2014/08/06 | [
"https://webmasters.stackexchange.com/questions/67805",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/14826/"
] | While looking through the access log of my webserver, I notice a few favicon requests that shows 404 error:
```
16:17:28 GET /folder/abc.jpg 200 http://example.com/ Mozilla... Firefox/31.0
16:17:28 GET /folder/efg.png 200 http://cdn.example.com/style.css Mozilla... Firefox/31.0
16:17:38 GET /favicon.ico 404 - Mozill... | *Some bots and older browsers*
Some bots and older browsers will ignore custom favicon paths and will attempt to fetch a locally stored favicon from the root `/`. A simple fix would be to copy the favicon from the CDN and store it locally on the site just to satisfy those bots and browsers, you could also setup a redi... |
67,827 | <p>I want to use a particular page in my site as any subdomain. I need something like this <code>http://*.example.com/</code>.</p>
<p>So, as the user types <code>http://user1.example.com/</code> or <code>http://user2.example.com/</code> then the page must shown will be present in <code>http://example.com/profile.php</... | [
{
"answer_id": 67830,
"author": "flowtron",
"author_id": 43848,
"author_profile": "https://webmasters.stackexchange.com/users/43848",
"pm_score": 2,
"selected": false,
"text": "<p>Are you talking about sharding? Look at \"Advanced Apache Rewriting\" - at least probably your solution will... | 2014/08/07 | [
"https://webmasters.stackexchange.com/questions/67827",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/43842/"
] | I want to use a particular page in my site as any subdomain. I need something like this `http://*.example.com/`.
So, as the user types `http://user1.example.com/` or `http://user2.example.com/` then the page must shown will be present in `http://example.com/profile.php`.
`http://user1.example.com/` must point to `htt... | Are you talking about sharding? Look at "Advanced Apache Rewriting" - at least probably your solution will use a **RewriteMap** .. although you do say *dynamically*, I still assume your list of users is static. [RewriteMap Apache Documentation](http://httpd.apache.org/docs/2.2/mod/mod_rewrite.html#rewritemap) should be... |
67,869 | <p>I'm using WordPress and the problem I have is that I don't see any associated images being used when I paste a link into Facebook. Below is my Facebook OG:Data.</p>
<pre><code><meta property="og:type" content="article" />
<meta property="og:title" content="Plitvice Lakes National Park" />
<meta prope... | [
{
"answer_id": 67871,
"author": "MrWhite",
"author_id": 1243,
"author_profile": "https://webmasters.stackexchange.com/users/1243",
"pm_score": 3,
"selected": true,
"text": "<p>Your open graph image tag references a blank image...</p>\n\n<pre><code><meta property=\"og:image\" content=\... | 2014/08/08 | [
"https://webmasters.stackexchange.com/questions/67869",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/43882/"
] | I'm using WordPress and the problem I have is that I don't see any associated images being used when I paste a link into Facebook. Below is my Facebook OG:Data.
```
<meta property="og:type" content="article" />
<meta property="og:title" content="Plitvice Lakes National Park" />
<meta property="og:url" content="http://... | Your open graph image tag references a blank image...
```
<meta property="og:image" content="http://wordpress.com/i/blank.jpg?m=1383295312g" />
``` |
67,882 | <p>I would like to accomplish the following:</p>
<ul>
<li>rewrite non-www to www </li>
<li>redirect from http to https</li>
<li>remove trailing slash</li>
</ul>
<p>e.g. <a href="http://example.co.uk" rel="nofollow">http://example.co.uk</a> should redirect to <a href="https://www.example.co.uk" rel="nofollow">https://... | [
{
"answer_id": 67887,
"author": "Ilmari Karonen",
"author_id": 12578,
"author_profile": "https://webmasters.stackexchange.com/users/12578",
"pm_score": 4,
"selected": true,
"text": "<p>For your first two rewrites (non-www → www, http → https), the following rule should work:</p... | 2014/08/09 | [
"https://webmasters.stackexchange.com/questions/67882",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/22882/"
] | I would like to accomplish the following:
* rewrite non-www to www
* redirect from http to https
* remove trailing slash
e.g. <http://example.co.uk> should redirect to <https://www.example.co.uk>
How would you structure a set of rules to do all of the above? | For your first two rewrites (non-www → www, http → https), the following rule should work:
```
RewriteEngine On
RewriteCond %{HTTPS} off [OR]
RewriteCond %{HTTP_HOST} !=www.example.com [NC]
RewriteRule ^(.*) https://www.example.com/$1 [NS,L,R=permanent]
```
Just replace `www.example.com` with the actual canonical h... |
67,889 | <p><code>mod_pagespeed</code> is not compressing images on my homepage.</p>
<p>My current config has:</p>
<pre><code>AddOutputFilterByType MOD_PAGESPEED_OUTPUT_FILTER text/html
</code></pre>
<p>What is the usual setting people use for <code>mod_pagespeed</code> to get all the CSS, images, JS, etc. benefit?</p>
| [
{
"answer_id": 67916,
"author": "Frank",
"author_id": 2379,
"author_profile": "https://webmasters.stackexchange.com/users/2379",
"pm_score": 0,
"selected": false,
"text": "<pre><code>ModPagespeedEnableFilters move_css_to_head,move_css_above_scripts\nModPagespeedEnableFilters remove_comme... | 2014/08/09 | [
"https://webmasters.stackexchange.com/questions/67889",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/22882/"
] | `mod_pagespeed` is not compressing images on my homepage.
My current config has:
```
AddOutputFilterByType MOD_PAGESPEED_OUTPUT_FILTER text/html
```
What is the usual setting people use for `mod_pagespeed` to get all the CSS, images, JS, etc. benefit? | It turns out the because the images weren't cacheable due to some headers pagespeed would not process the images. Make sure the images are cacheable.
<https://developers.google.com/speed/pagespeed/module/faq>
>
> Your resources (images, css, javascript) aren't cacheable. If
> PageSpeed sees cache-control headers su... |
67,896 | <p>I am trying to understand why the web server behaves differently for the following bad requests:</p>
<pre><code>Method Proto Status Req Body Res Referrer User Agent HTTPS Encrytion
... | [
{
"answer_id": 67916,
"author": "Frank",
"author_id": 2379,
"author_profile": "https://webmasters.stackexchange.com/users/2379",
"pm_score": 0,
"selected": false,
"text": "<pre><code>ModPagespeedEnableFilters move_css_to_head,move_css_above_scripts\nModPagespeedEnableFilters remove_comme... | 2014/08/10 | [
"https://webmasters.stackexchange.com/questions/67896",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/14826/"
] | I am trying to understand why the web server behaves differently for the following bad requests:
```
Method Proto Status Req Body Res Referrer User Agent HTTPS Encrytion
GET / ... | It turns out the because the images weren't cacheable due to some headers pagespeed would not process the images. Make sure the images are cacheable.
<https://developers.google.com/speed/pagespeed/module/faq>
>
> Your resources (images, css, javascript) aren't cacheable. If
> PageSpeed sees cache-control headers su... |
67,904 | <p>Without making the question too general, I am looking to discover the specific risks associated with cookies between my primary domain hosting HTML content only, to a subdomain that is hosting Hubspot, a Web-based CMS.</p>
<p>Consider I have the following sites:</p>
<pre><code>//Main site - uses HTML only, no serv... | [
{
"answer_id": 67905,
"author": "harrymc",
"author_id": 10980,
"author_profile": "https://webmasters.stackexchange.com/users/10980",
"pm_score": 2,
"selected": false,
"text": "<p>To my way of thinking, if the client's browser is compromised then everything is possible.\nOr in other words... | 2014/07/30 | [
"https://webmasters.stackexchange.com/questions/67904",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/30897/"
] | Without making the question too general, I am looking to discover the specific risks associated with cookies between my primary domain hosting HTML content only, to a subdomain that is hosting Hubspot, a Web-based CMS.
Consider I have the following sites:
```
//Main site - uses HTML only, no server side languages for... | To my way of thinking, if the client's browser is compromised then everything is possible.
Or in other words : Whether a website is a sub-domain or not does not matter much
to security.
In any case, if the websites are defined as sub-domains then you should avoid cookies
that are defined for the upper-level domain - d... |
67,906 | <p>I have a static html website.
And I am receiving many incoming visitor, which are adding parameters to url</p>
<pre><code>"?from=singlemessage&isappinstalled=0"
"?from=timeline&isappinstalled=0"
</code></pre>
<p>is it wechat or another website that automatically add these ?
Or is this a bug ?</p>
| [
{
"answer_id": 67915,
"author": "Frank",
"author_id": 2379,
"author_profile": "https://webmasters.stackexchange.com/users/2379",
"pm_score": 2,
"selected": false,
"text": "<p>you have no control over these so dont worry about it. based on the timeline param i am guessing facebook is pla... | 2014/08/10 | [
"https://webmasters.stackexchange.com/questions/67906",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/8248/"
] | I have a static html website.
And I am receiving many incoming visitor, which are adding parameters to url
```
"?from=singlemessage&isappinstalled=0"
"?from=timeline&isappinstalled=0"
```
is it wechat or another website that automatically add these ?
Or is this a bug ? | you have no control over these so dont worry about it. based on the timeline param i am guessing facebook is placing these on outgoing links. again, dont worry about it.
if you want you can use analytics filters to ignore these params. or if can go to something like asp you could check for weird params and 302 redirect... |
67,936 | <p>I'm creating my own CMS, and I have to handle images with differentes sizes. </p>
<p>I store all my image's information in a database. For every image, I have:</p>
<ul>
<li>a filename (with extension)</li>
<li>a title</li>
<li>an alt attribute</li>
<li>dimensions</li>
</ul>
<p>Images can be used in different ways... | [
{
"answer_id": 67945,
"author": "jeffatrackaid",
"author_id": 18831,
"author_profile": "https://webmasters.stackexchange.com/users/18831",
"pm_score": 0,
"selected": false,
"text": "<p>To my understanding, <code>rel=\"canonical\"</code> is a page level attribute designed for HTML pages (... | 2014/08/11 | [
"https://webmasters.stackexchange.com/questions/67936",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/22493/"
] | I'm creating my own CMS, and I have to handle images with differentes sizes.
I store all my image's information in a database. For every image, I have:
* a filename (with extension)
* a title
* an alt attribute
* dimensions
Images can be used in different ways:
* cropped
* tiled
* exact dimensions
* only one dime... | Serving multiple sized images is not a big SEO problem, but I try to stick to two sizes:
* thumbnail
* large
That way, I can have smaller images in the pages, but get the large images ranked in image search. To optimize for image search you should:
* Use large images (at least 600px in the smaller direction, but not... |
67,950 | <p>After merging two sites, one with ~40 URLs and one with ~700 URLs (due to a forum) the result was that overall traffic decreased by ~50%. I want to get the traffic back, as it was organic and a helpful resource to the community.</p>
<p>After finding <a href="https://webmasters.stackexchange.com/questions/16947/lowe... | [
{
"answer_id": 67954,
"author": "closetnoc",
"author_id": 36029,
"author_profile": "https://webmasters.stackexchange.com/users/36029",
"pm_score": 1,
"selected": false,
"text": "<p>Unfortunately, the fastest way to remove pages from the Google index, you abandoned. There is nothing wrong... | 2014/08/11 | [
"https://webmasters.stackexchange.com/questions/67950",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/43832/"
] | After merging two sites, one with ~40 URLs and one with ~700 URLs (due to a forum) the result was that overall traffic decreased by ~50%. I want to get the traffic back, as it was organic and a helpful resource to the community.
After finding [this answer](https://webmasters.stackexchange.com/questions/16947/lower-goo... | Google Webmaster Tools index count will fluctuate constantly especially with dynamic sites or those using common platforms such as forum software.
The best way to tell how many of these URL's Google are dropping from their index is to use the `site` operator in Google's web search, for example:-
```
site: example.com... |
68,031 | <p>I have manually redirected my entire site. The only page that's left is the homepage. How do I redirect my homepage to the new site (<a href="http://example.com" rel="nofollow">http://example.com</a>) but keep my sitemaps on the old domain (www.example.com)? Below is the structure for the sitemap urls:</p>
<p>Main ... | [
{
"answer_id": 68040,
"author": "the",
"author_id": 24487,
"author_profile": "https://webmasters.stackexchange.com/users/24487",
"pm_score": 0,
"selected": false,
"text": "<p>Unless you've left out essential information: just add a 301 redirect for the homepage only and your sitemaps an... | 2014/08/13 | [
"https://webmasters.stackexchange.com/questions/68031",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/38954/"
] | I have manually redirected my entire site. The only page that's left is the homepage. How do I redirect my homepage to the new site (<http://example.com>) but keep my sitemaps on the old domain (www.example.com)? Below is the structure for the sitemap urls:
Main - <http://www.example.com/sitemap.xml>
Sub - <http://w... | I was able to get it to work using the following:
```
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{HTTP_HOST} ^(www\.)?olddomain\.com$ [NC]
Rewriterule ^(.*) http://newdomain.com/ [L,R=301]
</IfModule>
```
Answer provided here:
[301 redirect doersnt work in SERP](https://webmasters.stackexchange.com/ques... |
68,075 | <p>I'm trying to redirect url's in my /joomla/ folder containing "rsform" to the same url but except for /joomla/ /formulieren/. However my tried .htaccess rewrite doesn't work. I tried:</p>
<pre><code>RewriteEngine on
RewriteCond %{REQUEST_URI} rsform
RewriteRule ^(.+)$ http://watervriendengeleen.nl/joomla/ [L,R=301... | [
{
"answer_id": 68037,
"author": "Simon Hayter",
"author_id": 20604,
"author_profile": "https://webmasters.stackexchange.com/users/20604",
"pm_score": 2,
"selected": false,
"text": "<p><em>Method One - Google search</em></p>\n\n<p>You can find out what Google has indexed by returning resu... | 2014/08/14 | [
"https://webmasters.stackexchange.com/questions/68075",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/44028/"
] | I'm trying to redirect url's in my /joomla/ folder containing "rsform" to the same url but except for /joomla/ /formulieren/. However my tried .htaccess rewrite doesn't work. I tried:
```
RewriteEngine on
RewriteCond %{REQUEST_URI} rsform
RewriteRule ^(.+)$ http://watervriendengeleen.nl/joomla/ [L,R=301]
```
And ot... | **When involved from the start**
When migrating I keep the existing URLs in mind right from the start of the project. Like that I already have most links covered when switching.
Right after the switch I check `site:example.com` and see if most links there are still working. If a lot are failing I go through them manu... |
68,088 | <p>Following the recent Google announcements about <a href="http://googleonlinesecurity.blogspot.co.uk/2014/08/https-as-ranking-signal_6.html" rel="nofollow">improved ranking for sites running on https</a> we have a number of clients asking about this. Is it safe to just 301 redirect all pages to their SSL equivalent, ... | [
{
"answer_id": 68089,
"author": "zigojacko",
"author_id": 12183,
"author_profile": "https://webmasters.stackexchange.com/users/12183",
"pm_score": 3,
"selected": true,
"text": "<p>Perfectly fine to 301 redirect all HTTP pages to their HTTPS equivalent. Either via <em>httpd.conf</em> on A... | 2014/08/15 | [
"https://webmasters.stackexchange.com/questions/68088",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/468/"
] | Following the recent Google announcements about [improved ranking for sites running on https](http://googleonlinesecurity.blogspot.co.uk/2014/08/https-as-ranking-signal_6.html) we have a number of clients asking about this. Is it safe to just 301 redirect all pages to their SSL equivalent, for example in a common PHP i... | Perfectly fine to 301 redirect all HTTP pages to their HTTPS equivalent. Either via *httpd.conf* on Apache servers, *.htaccess* rewrites or with a PHP include like your example. Any inbound links would pass about 97% of weight through a 301 redirect.
The best handling internally would be to not use the protocol for in... |
68,101 | <p>I want to create a MediaWiki template like</p>
<pre><code><syntaxhighlight lang="Java" style="background-color:lightgray; border:1px dashed gray;">
{{{code}}}
</syntaxhighlight>
</code></pre>
<p>and use it in normal article pages as</p>
<pre><code>{{SourceCode|source=public static void main() {...}}}
... | [
{
"answer_id": 68102,
"author": "NinjaBearMonkey",
"author_id": 44052,
"author_profile": "https://webmasters.stackexchange.com/users/44052",
"pm_score": 0,
"selected": false,
"text": "<p>Yes, you can do that with <code><includeonly></code> tags, like so: (custom styles removed for ... | 2014/08/14 | [
"https://webmasters.stackexchange.com/questions/68101",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/44081/"
] | I want to create a MediaWiki template like
```
<syntaxhighlight lang="Java" style="background-color:lightgray; border:1px dashed gray;">
{{{code}}}
</syntaxhighlight>
```
and use it in normal article pages as
```
{{SourceCode|source=public static void main() {...}}}
```
but the problem is the `<syntaxhighlight></... | The problem is that code inside “extension tags” like `<syntaxhighlight>` is not parsed, which is why the `{{{code}}}` is not replaced with the value of the `code` parameter.
What you need to use is to use `{{#tag}}` parser function:
```
{{#tag:syntaxhighlight|{{{code}}}|lang=java|style=background-color:lightgray; bo... |
68,131 | <p>A friend of mine used to publish a small literary fiction magazine, both in print and on the web. In 2011 she announced that she was quitting, put a note on the website, and carefully unwound the subscriptions. She continued hosting the site (with all the back-issues available for free) until the beginning of this y... | [
{
"answer_id": 68132,
"author": "Daniele Oreste Marino",
"author_id": 5015,
"author_profile": "https://webmasters.stackexchange.com/users/5015",
"pm_score": 3,
"selected": false,
"text": "<p>The only thing your friend can do to protect themselves is to contact a lawyer trying to assert c... | 2014/08/16 | [
"https://webmasters.stackexchange.com/questions/68131",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/44073/"
] | A friend of mine used to publish a small literary fiction magazine, both in print and on the web. In 2011 she announced that she was quitting, put a note on the website, and carefully unwound the subscriptions. She continued hosting the site (with all the back-issues available for free) until the beginning of this year... | >
> She continued hosting the site (with all the back-issues available for
> free) until the beginning of this year, when she let the hosting lapse
> and the domain name expire.
>
>
>
Was she aware that when it expires anyone can pick up that domain name for any reason? Some people don’t realize that an expired ... |
68,157 | <p>We accidentally deployed a robots.txt from our development site that disallowed all crawling. This has caused traffic to dip dramatically, and google results to report:</p>
<blockquote>
<p>A description for this result is not available because of this site's robots.txt – learn more.</p>
</blockquote>
<p>We've si... | [
{
"answer_id": 68158,
"author": "dm-guy",
"author_id": 43547,
"author_profile": "https://webmasters.stackexchange.com/users/43547",
"pm_score": 0,
"selected": false,
"text": "<p>I see on your robots.txt</p>\n\n<pre><code>User-agent: *\n</code></pre>\n\n<p>To allow all, you should declare... | 2014/08/17 | [
"https://webmasters.stackexchange.com/questions/68157",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/44083/"
] | We accidentally deployed a robots.txt from our development site that disallowed all crawling. This has caused traffic to dip dramatically, and google results to report:
>
> A description for this result is not available because of this site's robots.txt – learn more.
>
>
>
We've since corrected the robots.txt abo... | As you already noticed that bots are crawling your pages again, it is only a matter of time when they will crawl more of your pages and show indexed snippets in their search results.
While it will likely not result in any problems, your current robots.txt is invalid according to the [original specification](http://www... |
68,220 | <p>I've got a question regarding the Facebook <em>like</em> button.
We worked on a piece recently that embeds a number of social share buttons (please see the source code below).</p>
<p>When the piece was released, it was on HTTP, and received over 2k <em>likes</em> (the URL 'slug' hasn't changed at all). The site wa... | [
{
"answer_id": 69838,
"author": "Castiblanco",
"author_id": 39229,
"author_profile": "https://webmasters.stackexchange.com/users/39229",
"pm_score": 1,
"selected": false,
"text": "<p>Frank comment tells you what you should do, but if you don't want to do it, you can simply increase the n... | 2014/08/19 | [
"https://webmasters.stackexchange.com/questions/68220",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/44124/"
] | I've got a question regarding the Facebook *like* button.
We worked on a piece recently that embeds a number of social share buttons (please see the source code below).
When the piece was released, it was on HTTP, and received over 2k *likes* (the URL 'slug' hasn't changed at all). The site was recently migrated to p... | Frank comment tells you what you should do, but if you don't want to do it, you can simply increase the number of Facebook "likes" with a very easy trick a found recently, first of all you must know that Facebook "likes" are likes and comments, so if you want to increase this number you can go to you Facebook and you w... |
68,251 | <p>I have installed an SSL certificate on one of my domains and it works perfectly, but on some pages I include a Google Font, which causes my certificate icon to change in:</p>
<p><img src="https://i.stack.imgur.com/A04iC.png" alt=""></p>
<p>instead of:</p>
<p><img src="https://i.stack.imgur.com/ZdXPk.png" alt=""><... | [
{
"answer_id": 68252,
"author": "Jérôme Verstrynge",
"author_id": 10346,
"author_profile": "https://webmasters.stackexchange.com/users/10346",
"pm_score": 2,
"selected": true,
"text": "<p>Try to use <code>https</code> to fetch resources not located on your server. If it does not work (or... | 2014/08/19 | [
"https://webmasters.stackexchange.com/questions/68251",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/43487/"
] | I have installed an SSL certificate on one of my domains and it works perfectly, but on some pages I include a Google Font, which causes my certificate icon to change in:

instead of:

The reason, according to Google Chrome (translated ... | Try to use `https` to fetch resources not located on your server. If it does not work (or if `https` is not supported), try to move the Google font file (css and woff) on your website server rather than fetching them from Google Font itself (ditto for other external resources).
Regarding explicitly using `https` for r... |
68,265 | <p>I have a site with a search form. When someone searches, the url for the results page has PHP variables in it and looks like:</p>
<pre><code>mysite.com/used-construction-equipment-search&searchterm=Sany&searchlocation=Brisbane&searchtype=Any
</code></pre>
<p>Would Google be able to index these sorts of... | [
{
"answer_id": 68252,
"author": "Jérôme Verstrynge",
"author_id": 10346,
"author_profile": "https://webmasters.stackexchange.com/users/10346",
"pm_score": 2,
"selected": true,
"text": "<p>Try to use <code>https</code> to fetch resources not located on your server. If it does not work (or... | 2014/08/20 | [
"https://webmasters.stackexchange.com/questions/68265",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/21289/"
] | I have a site with a search form. When someone searches, the url for the results page has PHP variables in it and looks like:
```
mysite.com/used-construction-equipment-search&searchterm=Sany&searchlocation=Brisbane&searchtype=Any
```
Would Google be able to index these sorts of pages? Can crawler bots somehow trigg... | Try to use `https` to fetch resources not located on your server. If it does not work (or if `https` is not supported), try to move the Google font file (css and woff) on your website server rather than fetching them from Google Font itself (ditto for other external resources).
Regarding explicitly using `https` for r... |
68,273 | <p>I am working on a site that has neat clean/minimalistic design/layout. Menu items are "hidden" behind an icon, to see them, users need to click on that icon to get a javascript toggled overlay with the list of menu items.</p>
<p>Then there are blocks with photos and users need to click on a small icon/button on eac... | [
{
"answer_id": 68277,
"author": "Mihey Egoroff",
"author_id": 36261,
"author_profile": "https://webmasters.stackexchange.com/users/36261",
"pm_score": 0,
"selected": false,
"text": "<p>It should be OK if you are using semantic HTML5 tags, like <code><nav></code> for menu, <code><... | 2014/08/20 | [
"https://webmasters.stackexchange.com/questions/68273",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/33887/"
] | I am working on a site that has neat clean/minimalistic design/layout. Menu items are "hidden" behind an icon, to see them, users need to click on that icon to get a javascript toggled overlay with the list of menu items.
Then there are blocks with photos and users need to click on a small icon/button on each of them ... | *Javascript?.... no problem! kind off...*
Google and other search engines have had the ability to make sense of JavaScript for some years, however depending on how complex your scripts are will determine how easily the search bots can make sense of it all.
*No javaScript fall backs*
Generally its always best practi... |
68,304 | <p>Will changing links to remove query string parameters that are no longer used have any negative impact on search engine rankings?</p>
<p>Say I have a page <code>about.php</code> on my site, and all of my links to this page are of the form</p>
<pre><code>http://www.example.com/about.php?foo=bar
</code></pre>
<p>an... | [
{
"answer_id": 68306,
"author": "Jérôme Verstrynge",
"author_id": 10346,
"author_profile": "https://webmasters.stackexchange.com/users/10346",
"pm_score": 3,
"selected": true,
"text": "<p>On the long term, no, but on the short term there might be some fluctuation.</p>\n\n<p>There are two... | 2014/08/20 | [
"https://webmasters.stackexchange.com/questions/68304",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/44183/"
] | Will changing links to remove query string parameters that are no longer used have any negative impact on search engine rankings?
Say I have a page `about.php` on my site, and all of my links to this page are of the form
```
http://www.example.com/about.php?foo=bar
```
and I've made some changes to the script such ... | On the long term, no, but on the short term there might be some fluctuation.
There are two possibilities to mitigate this issue:
- In Google Webmaster Tools, in Crawl > URL Parameters, you can tell Google which parameters to ignore.
- Set a canonical without the old parameter on url pages still having the old paramete... |
68,325 | <p>I have a number of pages on my website that only administrators can access and access to these pages is given if a querystring value if found and correctly set. For example:</p>
<pre><code>http://www.mydomain.com/show-daily-statistics?key=abc
</code></pre>
<p><br />
The above link will show the content of the page... | [
{
"answer_id": 68326,
"author": "dm-guy",
"author_id": 43547,
"author_profile": "https://webmasters.stackexchange.com/users/43547",
"pm_score": 1,
"selected": false,
"text": "<p>Since this is a page for administrators, with or without the \"key\" parameter, the pages can't and should not... | 2014/08/21 | [
"https://webmasters.stackexchange.com/questions/68325",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/43252/"
] | I have a number of pages on my website that only administrators can access and access to these pages is given if a querystring value if found and correctly set. For example:
```
http://www.mydomain.com/show-daily-statistics?key=abc
```
The above link will show the content of the page but anything else such as the be... | The correct code would be 401 Not Authorized
--------------------------------------------
As per the HTTP specifications
### 10.4.2 401 Unauthorized
>
> The request requires user authentication. The response MUST include a
> WWW-Authenticate header field (section 14.47) containing a challenge
> applicable to the re... |
68,335 | <p>I am working on a web project that has nearly 100 thousand instant users and there is a webpage that we are using for test cases. There are no links pointing to it from other pages. It shouldn't be indexed by Google or any other search engines.</p>
<p>"<a href="http://en.wikipedia.org/wiki/Noindex" rel="nofollow">n... | [
{
"answer_id": 68336,
"author": "Jérôme Verstrynge",
"author_id": 10346,
"author_profile": "https://webmasters.stackexchange.com/users/10346",
"pm_score": 1,
"selected": false,
"text": "<p>If web crawlers get to this page one way or another, and if it is not marked as <code>noindex</code... | 2014/08/21 | [
"https://webmasters.stackexchange.com/questions/68335",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/38713/"
] | I am working on a web project that has nearly 100 thousand instant users and there is a webpage that we are using for test cases. There are no links pointing to it from other pages. It shouldn't be indexed by Google or any other search engines.
"[noindex](http://en.wikipedia.org/wiki/Noindex)" can be used in this situ... | Googlebot (the web crawler of Google) can discover your page by different ways:
* if it finds a link to your page from a web page (inside or outside your domain name)
* if you submit the URL to your Google Webmaster Tools account through a *sitemap.xml*
In that case, the page can be indexed. In most of cases, Googleb... |
68,338 | <p>Disclaimer: not sure this is the right place for this kind of question, sorry in advance, just point me to the right place and I'll move it.</p>
<p>In godaddy when paying only for domain, without hosting, they state you can get one page hosting for free but that option only opens their web-builder.
I want to creat... | [
{
"answer_id": 68336,
"author": "Jérôme Verstrynge",
"author_id": 10346,
"author_profile": "https://webmasters.stackexchange.com/users/10346",
"pm_score": 1,
"selected": false,
"text": "<p>If web crawlers get to this page one way or another, and if it is not marked as <code>noindex</code... | 2014/08/21 | [
"https://webmasters.stackexchange.com/questions/68338",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/-1/"
] | Disclaimer: not sure this is the right place for this kind of question, sorry in advance, just point me to the right place and I'll move it.
In godaddy when paying only for domain, without hosting, they state you can get one page hosting for free but that option only opens their web-builder.
I want to create a nicely... | Googlebot (the web crawler of Google) can discover your page by different ways:
* if it finds a link to your page from a web page (inside or outside your domain name)
* if you submit the URL to your Google Webmaster Tools account through a *sitemap.xml*
In that case, the page can be indexed. In most of cases, Googleb... |
68,447 | <p>We have some suspicious requests to our server,</p>
<pre><code>74.125.186.46 - - [24/Aug/2014:23:24:11 -0500] "GET <url> HTTP/1.1" 200 16912 "-" "Mozilla/5.0 (compatible; bingbot/2.0; +http://www.bing.com/bingbot.htm)"
74.125.187.193 - - [24/Aug/2014:23:24:12 -0500] "GET <url> HTTP/1.1" 200 20119 "-" "M... | [
{
"answer_id": 68449,
"author": "closetnoc",
"author_id": 36029,
"author_profile": "https://webmasters.stackexchange.com/users/36029",
"pm_score": 2,
"selected": false,
"text": "<p>These are Google IP addresses as you stated. However, this does not mean that it is part of the search engi... | 2014/08/25 | [
"https://webmasters.stackexchange.com/questions/68447",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/17845/"
] | We have some suspicious requests to our server,
```
74.125.186.46 - - [24/Aug/2014:23:24:11 -0500] "GET <url> HTTP/1.1" 200 16912 "-" "Mozilla/5.0 (compatible; bingbot/2.0; +http://www.bing.com/bingbot.htm)"
74.125.187.193 - - [24/Aug/2014:23:24:12 -0500] "GET <url> HTTP/1.1" 200 20119 "-" "Mozilla/5.0 (compatible; bi... | As others mentioned, you can verify [real Googlebots](https://support.google.com/webmasters/answer/80553), and this isn't a Googlebot IP address.
I double-checked with the team about these requests, and they appear to be for the [PageSpeed service](https://developers.google.com/speed/pagespeed/service), which can act ... |
68,491 | <p>I recently ran an audit on my web site using Google Developer Tools. My images are all the same size (500 horizontal by 300 vertical pixels) so I thought it would be better if I left out the image size attributes as there would be no need to calculate an image size when it already is the correct size.</p>
<p>Under ... | [
{
"answer_id": 68492,
"author": "Alexis Wilke",
"author_id": 9808,
"author_profile": "https://webmasters.stackexchange.com/users/9808",
"pm_score": 1,
"selected": false,
"text": "<p>The process goes something like this:</p>\n\n<ol>\n<li>read .html file</li>\n<li>from .html file header, r... | 2014/08/26 | [
"https://webmasters.stackexchange.com/questions/68491",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/44148/"
] | I recently ran an audit on my web site using Google Developer Tools. My images are all the same size (500 horizontal by 300 vertical pixels) so I thought it would be better if I left out the image size attributes as there would be no need to calculate an image size when it already is the correct size.
Under Networking... | Browsers download data in parallel and try to start rendering the page as soon as possible.
If you do not specify the size, the browser has no idea how large the image is going to be until after the image download is fully complete.
This delay forces the browser to repaint or reflow the layout - delaying the page l... |
68,540 | <p>I have a different font for some characters in my website, so the code is like this:</p>
<pre><code><h1>L<span style="letter-spacing: -5px">a </span><span
class="bletter">C</span>harte qualité mes <span
class="bletter">R</span>ideaux</h1>
</code></pr... | [
{
"answer_id": 68562,
"author": "Rocketrod",
"author_id": 37550,
"author_profile": "https://webmasters.stackexchange.com/users/37550",
"pm_score": 0,
"selected": false,
"text": "<p>You are still better to go down the PHP way with using:</p>\n\n<pre><code><?php require_once \"header.ph... | 2014/08/28 | [
"https://webmasters.stackexchange.com/questions/68540",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/44390/"
] | I have a different font for some characters in my website, so the code is like this:
```
<h1>L<span style="letter-spacing: -5px">a </span><span
class="bletter">C</span>harte qualité mes <span
class="bletter">R</span>ideaux</h1>
```
It's good looking on my website, but words are cut by the HTML tags... | You can actually use any file extension for SSI (in fact, you can set up your server for *any* extension of your choosing to be parsed as *any* file type). [Here is one such guide for IIS](http://www.elvenware.com/charlie/development/web/Server/ServerSideIncludes.html), it looks fairly simple.
For your use case it see... |
68,577 | <p>On the server, I have a file (on the filesystem) called <code>page.html</code>, which I want to be accessed as <code>site.com/page</code> So if someone goes to <code>site.com/page.html</code>, it should <code>301</code> redirect to <code>site.com/page</code></p>
<p>I've seen rewrite rules that will handle rewritin... | [
{
"answer_id": 68597,
"author": "Stephen Ostermiller",
"author_id": 14543,
"author_profile": "https://webmasters.stackexchange.com/users/14543",
"pm_score": 3,
"selected": true,
"text": "<p>I asked this <a href=\"https://stackoverflow.com/questions/15340785/how-to-rewrite-to-a-script-and... | 2014/08/29 | [
"https://webmasters.stackexchange.com/questions/68577",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/44406/"
] | On the server, I have a file (on the filesystem) called `page.html`, which I want to be accessed as `site.com/page` So if someone goes to `site.com/page.html`, it should `301` redirect to `site.com/page`
I've seen rewrite rules that will handle rewriting `/page` -> `/page.html` internally, but forcing it to `301` redi... | I asked this [same question on StackOverflow](https://stackoverflow.com/questions/15340785/how-to-rewrite-to-a-script-and-also-redirect-away-from-that-script-using-htacce). To get it to work properly, you have to use environment variables:
```
RewriteRule ^page$ /page.html [L,E=LOOP:1]
RewriteCond %{ENV:REDIRECT_LOOP}... |
68,605 | <p>I used <code>hgroup</code> tag like as in section. I want to know that it's well for SEO or not and this is a correct use of <code>hgroup</code>.</p>
<p>HTML:</p>
<pre><code><section>
<hgroup>
<h1>CCTV Camera's online view on your 3G phone</h1>
<h6><i clas... | [
{
"answer_id": 68597,
"author": "Stephen Ostermiller",
"author_id": 14543,
"author_profile": "https://webmasters.stackexchange.com/users/14543",
"pm_score": 3,
"selected": true,
"text": "<p>I asked this <a href=\"https://stackoverflow.com/questions/15340785/how-to-rewrite-to-a-script-and... | 2014/08/29 | [
"https://webmasters.stackexchange.com/questions/68605",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/44421/"
] | I used `hgroup` tag like as in section. I want to know that it's well for SEO or not and this is a correct use of `hgroup`.
HTML:
```
<section>
<hgroup>
<h1>CCTV Camera's online view on your 3G phone</h1>
<h6><i class="fa fa-map-marker"></i> Shadman, Lahore</h6>
<h6><i class="fa fa... | I asked this [same question on StackOverflow](https://stackoverflow.com/questions/15340785/how-to-rewrite-to-a-script-and-also-redirect-away-from-that-script-using-htacce). To get it to work properly, you have to use environment variables:
```
RewriteRule ^page$ /page.html [L,E=LOOP:1]
RewriteCond %{ENV:REDIRECT_LOOP}... |
68,682 | <p>I am building a single page portfolio site with WordPress for a client which is divided into sections that would traditionally be separate pages like - about, portfolio, contact. </p>
<p>Can I nest multiple schema.org WebPages within one global <code>WebPage</code> like the following markup:</p>
<pre class="lang-h... | [
{
"answer_id": 68684,
"author": "Simon Hayter",
"author_id": 20604,
"author_profile": "https://webmasters.stackexchange.com/users/20604",
"pm_score": 3,
"selected": true,
"text": "<p>Schema supports nested childs and parents when they are associated with each other, and in this case <cod... | 2014/09/01 | [
"https://webmasters.stackexchange.com/questions/68682",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/44470/"
] | I am building a single page portfolio site with WordPress for a client which is divided into sections that would traditionally be separate pages like - about, portfolio, contact.
Can I nest multiple schema.org WebPages within one global `WebPage` like the following markup:
```html
<body>
<main itemscope itemtype... | Schema supports nested childs and parents when they are associated with each other, and in this case `AboutPage`, `CollectionPage` and `ContactPage` is all child's of WebPage which is valid. But because AboutPage, CollectionPage and Contact page is paired with CreativeWork your find many childs are not supported meanin... |
68,692 | <p>If I am building a new site where I want to publish my articles that have previously been published on other sites (that I do not have control over them), what is the best thing to do?</p>
| [
{
"answer_id": 68694,
"author": "dm-guy",
"author_id": 43547,
"author_profile": "https://webmasters.stackexchange.com/users/43547",
"pm_score": 1,
"selected": false,
"text": "<p>Is your site going to be 100% republished content? Then I wouldn't recommend doing that. </p>\n\n<p>If it is, ... | 2014/09/02 | [
"https://webmasters.stackexchange.com/questions/68692",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/44487/"
] | If I am building a new site where I want to publish my articles that have previously been published on other sites (that I do not have control over them), what is the best thing to do? | Personally, I would use [canonical URLs](https://support.google.com/webmasters/answer/139066?hl=en). Example:
```
<link rel="canonical" href="http://othersite.com/article-name" />
```
Avoids any duplicate content issues and allows you to re-publish articles on your newer website. This approach is often used by blogg... |
68,721 | <p>In terms of SEO, what's the difference between:</p>
<pre><code>http://example.com/some-stuff/
</code></pre>
<p>and </p>
<pre><code>http://example.com/some-stuff
</code></pre>
<p>I could not find anything useful regarding this concept, can you explain this?</p>
| [
{
"answer_id": 68722,
"author": "John Conde",
"author_id": 1253,
"author_profile": "https://webmasters.stackexchange.com/users/1253",
"pm_score": 2,
"selected": false,
"text": "<p>It merely indicates that the location points to a directory and not a specific file. The webserver will then... | 2014/09/02 | [
"https://webmasters.stackexchange.com/questions/68721",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/36766/"
] | In terms of SEO, what's the difference between:
```
http://example.com/some-stuff/
```
and
```
http://example.com/some-stuff
```
I could not find anything useful regarding this concept, can you explain this? | Back in the days the trailing slash suggested "this is a directory" in contrary to "this is a file". Browsers would react slightly faster – or at least that's what I was told – when they were indirectly told "look for a file called index…". Today that trailing slash is next to obsolete.
Today it is considered good pra... |
68,731 | <p>I've structure my video site like this:</p>
<pre><code>/ (root)
index.html
-/videos
-/video-id1 (dynamically generated subdirectory when user uploads a video)
/index.html (dynamically generated file when user uploads a video)
</code></pre>
<p>The subdirectories and files in them are created dynamical... | [
{
"answer_id": 68734,
"author": "Wexford",
"author_id": 40448,
"author_profile": "https://webmasters.stackexchange.com/users/40448",
"pm_score": 1,
"selected": false,
"text": "<blockquote>\n <p>I thought using a sitemap.xml would be a good choice to get those\n files indexed in search ... | 2014/09/03 | [
"https://webmasters.stackexchange.com/questions/68731",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/37531/"
] | I've structure my video site like this:
```
/ (root)
index.html
-/videos
-/video-id1 (dynamically generated subdirectory when user uploads a video)
/index.html (dynamically generated file when user uploads a video)
```
The subdirectories and files in them are created dynamically each time a user upload... | you should use both:
* ***crawling encouragement using a sitemap.xml*** – A well structured sitemap.xml *can* help search engine spiders to find your content quick and directly. And a sitemap.xml gives you the option, of curating what you want to have crawled, how often you consider crawling useful and you can even pu... |
68,776 | <p>So, <code>http://example.com/</code> and <code>http://192.0.2.32/</code> both are displaying a web page.</p>
<p>From <em>SEO</em> point there is content duplication issue when both domain and IP displays the same content. This can be solved by <strong>canonical</strong> tag.</p>
<p>But what other problems does thi... | [
{
"answer_id": 68786,
"author": "Ralf",
"author_id": 44539,
"author_profile": "https://webmasters.stackexchange.com/users/44539",
"pm_score": 0,
"selected": false,
"text": "<p>It doesn't make any problems. You can prevent it by adding another virtual host for the same IP in your apache o... | 2014/09/04 | [
"https://webmasters.stackexchange.com/questions/68776",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/33887/"
] | So, `http://example.com/` and `http://192.0.2.32/` both are displaying a web page.
From *SEO* point there is content duplication issue when both domain and IP displays the same content. This can be solved by **canonical** tag.
But what other problems does this make? | You may run into issues with duplicate content. You probably do not want to create canonical tags when they are not necessary. Too much work.
You can try a redirect:
```
RewriteCond %{HTTP_HOST} ^192\.0\.32\.32$ [NC]
RewriteRule ^(.*)$ http://example.com/$1 [R=301,L]
```
Of course you can adjust this to suit your n... |
68,795 | <p>I have recently launched a site for a customer which we would like to track initial visits on URLs like below via Google Analytics, and then track revisits on their respective referral code:</p>
<p>Users visit:</p>
<ul>
<li><code>domain.com/?ref=code1</code></li>
<li><code>domain.com/?ref=code2</code></li>
<li><co... | [
{
"answer_id": 68797,
"author": "dm-guy",
"author_id": 43547,
"author_profile": "https://webmasters.stackexchange.com/users/43547",
"pm_score": 2,
"selected": false,
"text": "<p>You can use UTM query string parameters and assign each of them to a different campaign, which will mark the a... | 2014/09/04 | [
"https://webmasters.stackexchange.com/questions/68795",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/44553/"
] | I have recently launched a site for a customer which we would like to track initial visits on URLs like below via Google Analytics, and then track revisits on their respective referral code:
Users visit:
* `domain.com/?ref=code1`
* `domain.com/?ref=code2`
* `domain.com/?ref=code3`
Once they land, we drop a cookie wi... | You can use UTM query string parameters and assign each of them to a different campaign, which will mark the affiliate. On GA you will be able to analyze the traffic according to this specific campaign and see how many converted.
For example, you can do:
```
domain.com/?utm_campaign=affiliate1/2/3&utm_source={affilia... |
68,821 | <p>Yesterday I suffered a <strong>DDoS attack</strong> on a WordPress site. I had <strong>21,443 hits</strong> with HTTP Status code 404 and a Bandwidth of <strong>711.85 MB</strong>. Also, CPU usage went to 100%.</p>
<p>Logs show a lot of this entries:</p>
<pre><code>...
119.71.5.44 - - [03/Sep/2014:18:34:57 -0700] ... | [
{
"answer_id": 68822,
"author": "Rarst",
"author_id": 27745,
"author_profile": "https://webmasters.stackexchange.com/users/27745",
"pm_score": 2,
"selected": false,
"text": "<blockquote>\n <p>This was only a DDoS attack or they were trying to hack my site?</p>\n</blockquote>\n\n<p>There... | 2014/09/04 | [
"https://webmasters.stackexchange.com/questions/68821",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/44026/"
] | Yesterday I suffered a **DDoS attack** on a WordPress site. I had **21,443 hits** with HTTP Status code 404 and a Bandwidth of **711.85 MB**. Also, CPU usage went to 100%.
Logs show a lot of this entries:
```
...
119.71.5.44 - - [03/Sep/2014:18:34:57 -0700] "POST /xmlrpc.php HTTP/1.1" 404 34826 "-" "-"
197.149.17.195... | I study and research advanced processes for defense and detection for such things. The answer from Rarst is technically correct. No question. However, this smells of what is extremely typical- let me explain.
A number of systems were compromised and Wordpress sites were likely bulk attacked and are now targeting known... |
68,859 | <p>On Google Analytics, I can use the Behavior tab to see the details of my pages and how many Page Views and Unique Page Views they generated.</p>
<p>I want to know if there is a way to select a number of pages and see how many unique Sessions those pages had.</p>
<p>For example, if I myself visited a few pages from... | [
{
"answer_id": 69106,
"author": "Stephen Ostermiller",
"author_id": 14543,
"author_profile": "https://webmasters.stackexchange.com/users/14543",
"pm_score": 3,
"selected": true,
"text": "<p>For a single page, Google Analytics is already giving you the number you want: \"unique page views... | 2014/09/06 | [
"https://webmasters.stackexchange.com/questions/68859",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/44597/"
] | On Google Analytics, I can use the Behavior tab to see the details of my pages and how many Page Views and Unique Page Views they generated.
I want to know if there is a way to select a number of pages and see how many unique Sessions those pages had.
For example, if I myself visited a few pages from my site, this is... | For a single page, Google Analytics is already giving you the number you want: "unique page views".
* **Pageviews** -- The number of times the page has been viewed (including multiple times by the same user).
* **Unique page views** -- The number of sessions that have included a view of the page.
Source: <http://you... |
68,869 | <p>I'm sure this is an easy thing to do but I can't seem to find the answer!</p>
<p>I'm trying to redirect <code>https://carddav.example.com/MYUSERNAME</code> to <code>https://carddav.example.com/remote.php/subdomain/addressbooks/MYUSERNAME/contacts</code> where MYUSERNAME can be anything.</p>
<p>The current RewriteR... | [
{
"answer_id": 68870,
"author": "aidanharris",
"author_id": 44607,
"author_profile": "https://webmasters.stackexchange.com/users/44607",
"pm_score": 1,
"selected": false,
"text": "<p>Problem fixed through one heck of a lot of perseverance. I really should take the time to learn all of mo... | 2014/09/07 | [
"https://webmasters.stackexchange.com/questions/68869",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/44607/"
] | I'm sure this is an easy thing to do but I can't seem to find the answer!
I'm trying to redirect `https://carddav.example.com/MYUSERNAME` to `https://carddav.example.com/remote.php/subdomain/addressbooks/MYUSERNAME/contacts` where MYUSERNAME can be anything.
The current RewriteRule I have attempted looks like:
```
R... | You can do this with a single `RewriteRule`. The trick here is to only check for valid username characters, not *everything* (ie. `.*` - I wouldn't have thought your usernames could literally be *anything*?). This would also be more efficient since not every request will match and be processed.
For example, assuming y... |
68,924 | <p>I'm trying to use schema.org to indicate advertisements on my website. </p>
<p>I'm concerned that putting adverts within the content of a blog page will hurt my SEO and I'm hoping using schema might help make things clear to search engines.</p>
<p>This is what I have so far, an image with a link.</p>
<pre><code>&... | [
{
"answer_id": 68927,
"author": "Guillaume",
"author_id": 38665,
"author_profile": "https://webmasters.stackexchange.com/users/38665",
"pm_score": 1,
"selected": false,
"text": "<p>Your code is correct.\nYou can test it in the <a href=\"https://www.google.com/webmasters/tools/richsnippet... | 2014/09/09 | [
"https://webmasters.stackexchange.com/questions/68924",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/24127/"
] | I'm trying to use schema.org to indicate advertisements on my website.
I'm concerned that putting adverts within the content of a blog page will hurt my SEO and I'm hoping using schema might help make things clear to search engines.
This is what I have so far, an image with a link.
```
<div itemscope itemtype="http... | Yes, your use of Microdata and schema.org is correct.
Instead of `div`, you might want consider using the sectioning element [`aside`](http://www.w3.org/TR/2014/CR-html5-20140731/sections.html#the-aside-element):
>
> The element can be used for […] advertising, […]
>
>
>
That way the advertisement is separate fr... |
68,953 | <p>Is it good for SEO to include the category in the URL? Like so:</p>
<pre><code>/articles/ID/example_category/slug
</code></pre>
<p>Or does it not matter and only make the URL unnecessary long?</p>
<p><strong>Note</strong>; the article is also available at <code>/articles/ID</code> which redirects to the URL above, s... | [
{
"answer_id": 71844,
"author": "Stephen Ostermiller",
"author_id": 14543,
"author_profile": "https://webmasters.stackexchange.com/users/14543",
"pm_score": 1,
"selected": false,
"text": "<p><a href=\"https://webmasters.stackexchange.com/users/28389/dan\">dan</a> says:</p>\n\n<p>When you... | 2014/09/10 | [
"https://webmasters.stackexchange.com/questions/68953",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/44668/"
] | Is it good for SEO to include the category in the URL? Like so:
```
/articles/ID/example_category/slug
```
Or does it not matter and only make the URL unnecessary long?
**Note**; the article is also available at `/articles/ID` which redirects to the URL above, so the user does not have to type out the long URL. | Though it is an old query, but could not find any effective answer, so thought to pen it down.
Please go to your GoDaddy Cpanel.
To reach cpanel you can login to GoDaddy--> My Account --> Hosting
--> Select the domain for which you want to remove SSL. Click on "Web Hosting with cPanel".
* Once in Cpanel page, scroll... |
68,958 | <p>Here is content of my robots.txt file:</p>
<pre><code>User-agent: *
Disallow: /images/
Disallow: /upload/
Disallow: /admin/
</code></pre>
<p>As you can see, I explicitly disallowed all robots to index the folders <code>images</code>, <code>upload</code> and <code>admin</code>. The problem is that one of my clients... | [
{
"answer_id": 68959,
"author": "John Conde",
"author_id": 1253,
"author_profile": "https://webmasters.stackexchange.com/users/1253",
"pm_score": 4,
"selected": true,
"text": "<p>Google isn't ignoring your robots.txt as robots.txt <a href=\"https://support.google.com/webmasters/answer/60... | 2014/09/10 | [
"https://webmasters.stackexchange.com/questions/68958",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/44674/"
] | Here is content of my robots.txt file:
```
User-agent: *
Disallow: /images/
Disallow: /upload/
Disallow: /admin/
```
As you can see, I explicitly disallowed all robots to index the folders `images`, `upload` and `admin`. The problem is that one of my clients sent request for removing the content from the images fold... | Google isn't ignoring your robots.txt as robots.txt [does not tell Google not to list that content in its search results](https://support.google.com/webmasters/answer/6062608?hl=en). It tells Google not to *crawl* content. So Googlebot cannot find this content on its own. But if it does find this content it will still ... |
68,987 | <p>So I am redirecting mobile users to mobile version of the page and also have alternate attrubute set up for that:</p>
<pre><code><link rel="alternate" media="only screen and (max-width: 640px)" href="http://m.site.com/" >
</code></pre>
<p>What about the opposite case? When user from desktop computer visits m... | [
{
"answer_id": 68988,
"author": "Wexford",
"author_id": 40448,
"author_profile": "https://webmasters.stackexchange.com/users/40448",
"pm_score": 2,
"selected": false,
"text": "<p>I don't see why not. The question here is whether you think it will benefit your users or not. Personally spe... | 2014/09/11 | [
"https://webmasters.stackexchange.com/questions/68987",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/33887/"
] | So I am redirecting mobile users to mobile version of the page and also have alternate attrubute set up for that:
```
<link rel="alternate" media="only screen and (max-width: 640px)" href="http://m.site.com/" >
```
What about the opposite case? When user from desktop computer visits mobile version of the page. Shoul... | Mobile to desktop version should be a choice the user initiates. Sometimes the user may want the mobile version due to:
1) A focused and less cluttered experience
2) Faster browsing for low-bandwidth users (e.g. laptop with a 3G connection)
3) Ability to fit on a small screen
Whatever the reason, I don't think deci... |
69,029 | <p>Showing UTMs when linking from one site you own to another is kind of like wearing open-toed shoes at work: it's unseemly and unprofessional.</p>
<p>But it's effective. Traffic spills nicely into Google Analytics with each parameter (source, medium, campaign, content) easily sortable & filterable in a single vi... | [
{
"answer_id": 69031,
"author": "Stephen Ostermiller",
"author_id": 14543,
"author_profile": "https://webmasters.stackexchange.com/users/14543",
"pm_score": 3,
"selected": true,
"text": "<p>It can't be done in the Google Analytics admin panel, but it can be done programmatically by your ... | 2014/09/11 | [
"https://webmasters.stackexchange.com/questions/69029",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/13067/"
] | Showing UTMs when linking from one site you own to another is kind of like wearing open-toed shoes at work: it's unseemly and unprofessional.
But it's effective. Traffic spills nicely into Google Analytics with each parameter (source, medium, campaign, content) easily sortable & filterable in a single view.
I assume ... | It can't be done in the Google Analytics admin panel, but it can be done programmatically by your server.
You can put some extra JavaScript in your snippet to send Analytics the full campaign info based on your shortened form. Here is how it might look if you use PHP with Universal analytics:
```
(function(i,s,o,g,r,... |
69,034 | <p>I'm now working in a server environment where I can access and edit <code>httpd.conf</code>, which is preferable from a performance and a revision control standpoint. I have a few sites (they are Drupal) running in subdirectories along the lines of <code>example.com/yourname</code>, <code>example.com/anothername</co... | [
{
"answer_id": 69035,
"author": "Stephen Ostermiller",
"author_id": 14543,
"author_profile": "https://webmasters.stackexchange.com/users/14543",
"pm_score": 1,
"selected": false,
"text": "<p>When you don't have a rewrite base, all you have to do is insert what would have been the base in... | 2014/09/11 | [
"https://webmasters.stackexchange.com/questions/69034",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/44717/"
] | I'm now working in a server environment where I can access and edit `httpd.conf`, which is preferable from a performance and a revision control standpoint. I have a few sites (they are Drupal) running in subdirectories along the lines of `example.com/yourname`, `example.com/anothername`, `example.com/anotherdev`. Right... | When you don't have a rewrite base, all you have to do is insert what would have been the base into each of your rewrite rules.
```
RewriteRule ^index\.html$ welcome.html
```
Becomes
```
RewriteRule ^/index\.html$ /welcome.html
``` |
69,050 | <p>My title is:</p>
<pre><code><title>School Management Software, College & University Management Software, Cloud ERP Software</title>
</code></pre>
<p>However it's showing up like this in Google:
<img src="https://i.stack.imgur.com/LUIAm.jpg" alt="enter image description here"></p>
<p>Is there somet... | [
{
"answer_id": 69052,
"author": "Wexford",
"author_id": 40448,
"author_profile": "https://webmasters.stackexchange.com/users/40448",
"pm_score": 2,
"selected": false,
"text": "<p>Depending on the search query, Google may decide to display a different title. If your meta title was only re... | 2014/09/12 | [
"https://webmasters.stackexchange.com/questions/69050",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/44728/"
] | My title is:
```
<title>School Management Software, College & University Management Software, Cloud ERP Software</title>
```
However it's showing up like this in Google:

Is there something I'm doing wrong here? Any insight would be really helpful. | Bare with me. I will explain what changes Google has made followed by how Google decides how to make the SERP link and what specifically happened in your case.
Google has been changing the look and feel of the SERPs since March 2014 with the hopes of improving the user experience and click-through rates (CTR). It is b... |
69,133 | <p>I have two websites that I would like to monitor and have created to google accounts for them:</p>
<ul>
<li><code>https://secure.example.com.au</code> (secure sub-domains only)</li>
<li><code>http://*.example.com.au</code> (all domains including sub-domains)</li>
</ul>
<p>After I created the accounts and added the... | [
{
"answer_id": 69128,
"author": "Martijn",
"author_id": 37448,
"author_profile": "https://webmasters.stackexchange.com/users/37448",
"pm_score": 2,
"selected": true,
"text": "<blockquote>\n <p><strong>Q: My site's PageRank has gone up / gone down / not changed in months!</strong><br>\n ... | 2014/09/15 | [
"https://webmasters.stackexchange.com/questions/69133",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/44661/"
] | I have two websites that I would like to monitor and have created to google accounts for them:
* `https://secure.example.com.au` (secure sub-domains only)
* `http://*.example.com.au` (all domains including sub-domains)
After I created the accounts and added the javascript codes, they don't appear to working on `http:... | >
> **Q: My site's PageRank has gone up / gone down / not changed in months!**
>
> **A:** Don't worry. In fact, don't bother thinking about it. We only update the PageRank displayed in Google Toolbar a few times a year;
> ***this is our respectful hint for you to worry less about PageRank***, which is just one of ... |
69,182 | <p>The content of the website www.example.com is highly dependent on the country of the user, but not so much on his language.
So far, the website is translate into two languages, "en" and "de", but it has content for many more countries: US, DE, IT, JP, AR.</p>
<p>As I understand the current search engines behaviors ... | [
{
"answer_id": 69202,
"author": "Max",
"author_id": 23156,
"author_profile": "https://webmasters.stackexchange.com/users/23156",
"pm_score": 2,
"selected": false,
"text": "<p>No you cannot do this using hreflang, they are primarily for language and location is optional, but you cannot ju... | 2014/09/17 | [
"https://webmasters.stackexchange.com/questions/69182",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/44829/"
] | The content of the website www.example.com is highly dependent on the country of the user, but not so much on his language.
So far, the website is translate into two languages, "en" and "de", but it has content for many more countries: US, DE, IT, JP, AR.
As I understand the current search engines behaviors (<https://... | No you cannot do this using hreflang, they are primarily for language and location is optional, but you cannot just mark up the location:
>
> Do not specify a country code by itself! Google does not automatically
> derive the language from the country code.
>
>
>
[Use hreflang for language and regional URLs](htt... |
69,289 | <p>Here is my question, Recently I moved my site from <strong><em>blog.mysite.com</em></strong> to <strong><em>www.mysite.com</em></strong>.</p>
<p>Then I added 301 permanent redirection using this code in .htaccess file.</p>
<pre><code>RewriteEngine on
RewriteCond %{HTTP_HOST} ^blog\.mysite\.com$ [OR]
RewriteCond %{... | [
{
"answer_id": 69346,
"author": "ATNPGO",
"author_id": 36201,
"author_profile": "https://webmasters.stackexchange.com/users/36201",
"pm_score": 2,
"selected": false,
"text": "<p>I think the solution you're looking is a HTTP debuging proxy like <a href=\"http://www.telerik.com/fiddler\" r... | 2014/09/12 | [
"https://webmasters.stackexchange.com/questions/69289",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/-1/"
] | Here is my question, Recently I moved my site from ***blog.mysite.com*** to ***www.mysite.com***.
Then I added 301 permanent redirection using this code in .htaccess file.
```
RewriteEngine on
RewriteCond %{HTTP_HOST} ^blog\.mysite\.com$ [OR]
RewriteCond %{HTTP_HOST} ^www\.blog\.mysite\.com$
RewriteRule ^/?$ "http\:\... | After some research, I settled on App Debugger (<http://debug-software.intel.com/>) from Intel. It was simplest and straight forward way to stream debug information from a device. |
69,319 | <p>This has bothered me for a long time as it puts my sites bounce rate up.</p>
<p>I am based in the UK and my business covers this country and no others, so I have never advertised outside of the UK but for some reason I get 21% of my traffic from Germany.</p>
<p>The German visits all have something in common, they ... | [
{
"answer_id": 69333,
"author": "dhaupin",
"author_id": 38958,
"author_profile": "https://webmasters.stackexchange.com/users/38958",
"pm_score": 0,
"selected": false,
"text": "<p>Blocking a whole country like Germany is not recommended since its generally high quality traffic. Ukraine an... | 2014/09/22 | [
"https://webmasters.stackexchange.com/questions/69319",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/44932/"
] | This has bothered me for a long time as it puts my sites bounce rate up.
I am based in the UK and my business covers this country and no others, so I have never advertised outside of the UK but for some reason I get 21% of my traffic from Germany.
The German visits all have something in common, they are always direct... | I study this kind of traffic as part of my research.
Simply put, these are bot visits. You know this because of the hit and run nature of most bots that are not scrapers. This is evident in the number of pages and the bounce rate. Bots, including scrapers, often result in a %100 bounce rate. But without further data, ... |
69,364 | <p>I have a purchased domain that I am trying to create a site on. I have uploaded the files to the <code>public_html</code> folder of the hosting provider's server.</p>
<p>I am confused about what all records I need to electronically complete?</p>
<p>A couple of Name Servers (not DNS) were provided by the hosting pr... | [
{
"answer_id": 69333,
"author": "dhaupin",
"author_id": 38958,
"author_profile": "https://webmasters.stackexchange.com/users/38958",
"pm_score": 0,
"selected": false,
"text": "<p>Blocking a whole country like Germany is not recommended since its generally high quality traffic. Ukraine an... | 2014/09/23 | [
"https://webmasters.stackexchange.com/questions/69364",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/34061/"
] | I have a purchased domain that I am trying to create a site on. I have uploaded the files to the `public_html` folder of the hosting provider's server.
I am confused about what all records I need to electronically complete?
A couple of Name Servers (not DNS) were provided by the hosting provider (in their FAQs). I fi... | I study this kind of traffic as part of my research.
Simply put, these are bot visits. You know this because of the hit and run nature of most bots that are not scrapers. This is evident in the number of pages and the bounce rate. Bots, including scrapers, often result in a %100 bounce rate. But without further data, ... |
69,372 | <p>I have a component which makes a promotion "expire" after a certain date, when it expires I want to add a NO FOLLOW NO INDEX meta tag via JS. </p>
<p><em>The question is would Google stop indexing this page as the NO INDEX comes after page load(with the JS)</em></p>
| [
{
"answer_id": 69376,
"author": "Wexford",
"author_id": 40448,
"author_profile": "https://webmasters.stackexchange.com/users/40448",
"pm_score": 2,
"selected": false,
"text": "<p>Unfortunately, this is one of those things that you will need to test for yourself. Although Google has been ... | 2014/09/23 | [
"https://webmasters.stackexchange.com/questions/69372",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/44966/"
] | I have a component which makes a promotion "expire" after a certain date, when it expires I want to add a NO FOLLOW NO INDEX meta tag via JS.
*The question is would Google stop indexing this page as the NO INDEX comes after page load(with the JS)* | Unfortunately, this is one of those things that you will need to test for yourself. Although Google has been known to index JavaScript-generated content; there doesn't seem to be any case studies out there that prove whether or not Google takes note of JS-generated meta tags.
My advice is: Run some tests or check to s... |
69,390 | <p>On out site we use pagination in two places:</p>
<p>1) Category Pages</p>
<p>We have our articles segmented by category and each category has 100's of articles so we paginate at 10 articles per page. We use the following format:</p>
<p>(If you are on the third page)</p>
<pre><code><link href="http://example.c... | [
{
"answer_id": 69401,
"author": "Max",
"author_id": 23156,
"author_profile": "https://webmasters.stackexchange.com/users/23156",
"pm_score": 3,
"selected": true,
"text": "<p>I would carry on using pagination mark up on both sets of paginated pages. </p>\n\n<p>Google introduced the mark u... | 2014/09/23 | [
"https://webmasters.stackexchange.com/questions/69390",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/38954/"
] | On out site we use pagination in two places:
1) Category Pages
We have our articles segmented by category and each category has 100's of articles so we paginate at 10 articles per page. We use the following format:
(If you are on the third page)
```
<link href="http://example.com/category/categoryName/" rel="canoni... | I would carry on using pagination mark up on both sets of paginated pages.
Google introduced the mark up for this specific purpose, it provides a hint to Google that you would like to treat the paginated pages as a logical sequence, thus consolidating their linking properties and usually sending searchers to the firs... |
69,402 | <p>I have a site with multiple subdomains. On certain hours of the day, Bingbots would gather at my site and do a massive scan like this:</p>
<pre><code>01:23:11 a.example.com GET /index HTTP/1.1 200 Bot.A
01:23:11 b.example.com GET /index HTTP/1.1 200 Bot.A
01:23:11 c.example.com GET /index HTTP/1.1 200 Bot.A
01:23:1... | [
{
"answer_id": 69426,
"author": "Community",
"author_id": -1,
"author_profile": "https://webmasters.stackexchange.com/users/-1",
"pm_score": 1,
"selected": false,
"text": "<p>In my experience, MSN Bots have always been too unruly for robots.txt and they bring no discernable traffic advan... | 2014/09/24 | [
"https://webmasters.stackexchange.com/questions/69402",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/14826/"
] | I have a site with multiple subdomains. On certain hours of the day, Bingbots would gather at my site and do a massive scan like this:
```
01:23:11 a.example.com GET /index HTTP/1.1 200 Bot.A
01:23:11 b.example.com GET /index HTTP/1.1 200 Bot.A
01:23:11 c.example.com GET /index HTTP/1.1 200 Bot.A
01:23:11 d.example.co... | This is Vincent from Bing Webmaster Tools and I noticed your post.
First of all, I'm sorry to hear about the problem you are having with our crawler's crawl activity across your subdomains. I am sure we can do better.
Couple of things:
I noticed you mentioned crawl pattern setting in Webmaster Tools wasn't working ... |
69,407 | <p>I own three domain names:</p>
<ul>
<li><code>example.com</code> </li>
<li><code>example.supply</code> </li>
<li><code>example.farm</code></li>
</ul>
<p>I want them to behave as if <code>.supply</code> and <code>.farm</code> are subdirectories, so in the file path it could lay out like so:</p>
<pre><code> publi... | [
{
"answer_id": 69413,
"author": "Max",
"author_id": 23156,
"author_profile": "https://webmasters.stackexchange.com/users/23156",
"pm_score": 3,
"selected": true,
"text": "<p>You can't mix a single website using different TLDs, they will always be separate sites as on different domains. ... | 2014/09/24 | [
"https://webmasters.stackexchange.com/questions/69407",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/44992/"
] | I own three domain names:
* `example.com`
* `example.supply`
* `example.farm`
I want them to behave as if `.supply` and `.farm` are subdirectories, so in the file path it could lay out like so:
```
public_html (example.com)
\___
/supply (example.supply)
\___
/farm (example.farm)
```
Wha... | You can't mix a single website using different TLDs, they will always be separate sites as on different domains. So what would be happening is that you have three separate websites.
The SEO issues I see here are that there could be duplication of content between the three sites, so this could affect both sites adverse... |
69,464 | <p>I have recently moved a site to a new domain, and at the old domain, I created a .htaccess file that includes one line of code:</p>
<pre><code>RedirectMatch 301 ^/(.*) http://newdomain.com/$1
</code></pre>
<p>The goal, of course, is to set 1:1 redirects for the entire site for anyone trying to access old links to ... | [
{
"answer_id": 69465,
"author": "Stephen Ostermiller",
"author_id": 14543,
"author_profile": "https://webmasters.stackexchange.com/users/14543",
"pm_score": 0,
"selected": false,
"text": "<p>Try plain old <code>Redirect</code> instead. Its behavior is to set up the one to one match yo... | 2014/09/25 | [
"https://webmasters.stackexchange.com/questions/69464",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/45035/"
] | I have recently moved a site to a new domain, and at the old domain, I created a .htaccess file that includes one line of code:
```
RedirectMatch 301 ^/(.*) http://newdomain.com/$1
```
The goal, of course, is to set 1:1 redirects for the entire site for anyone trying to access old links to the site.
This works perf... | Here is the one simple answer for your issue. Just Sign in into your domain panel and redirect the new domain name instead of old domain name.
In this case what happened is if anyone open the old website it automatically redirect to the new domain website. |
69,543 | <p>I need a small suggestion about this article regarding my site:</p>
<p><a href="http://moz.com/learn/seo/duplicate-content" rel="nofollow">http://moz.com/learn/seo/duplicate-content</a></p>
<p>I find that I have 2 pages with the same content and one is using a query string like: <code>example.com/page=delhi</code>... | [
{
"answer_id": 69547,
"author": "Martijn",
"author_id": 37448,
"author_profile": "https://webmasters.stackexchange.com/users/37448",
"pm_score": 2,
"selected": false,
"text": "<p>You are correct, you use the 301 header for this. The amount of pages that end up redirected doesn't matter. ... | 2014/09/30 | [
"https://webmasters.stackexchange.com/questions/69543",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/45123/"
] | I need a small suggestion about this article regarding my site:
<http://moz.com/learn/seo/duplicate-content>
I find that I have 2 pages with the same content and one is using a query string like: `example.com/page=delhi` and the other isn't: `example.com/page/delhi/`
I am thinking I should make all my URLs to be lik... | You are correct, you use the 301 header for this. The amount of pages that end up redirected doesn't matter. If you have more than one identical pages, redirect-301 them all to one.
An ***.htaccess*** file would be something along these lines:
```
RewriteCond %{REQUEST_URI} ^/page/.*
RewriteRule ^page/(.*) /page-$1 [... |
69,566 | <p>I recently installed WAMP, and started developing on its Apache server. Given that my text editor (Sublime) didn't have permissions to write on C disk directly, I changed my default DocumentRoot to <code>My Docs/www</code> and everything was working fine (except that any site with <code>.htaccess</code> did not work... | [
{
"answer_id": 69567,
"author": "Thyamarkos",
"author_id": 39052,
"author_profile": "https://webmasters.stackexchange.com/users/39052",
"pm_score": 1,
"selected": false,
"text": "<p>Depending on what Apache version your WAMP is using, you may need to replace these directives in your regu... | 2014/09/30 | [
"https://webmasters.stackexchange.com/questions/69566",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/44178/"
] | I recently installed WAMP, and started developing on its Apache server. Given that my text editor (Sublime) didn't have permissions to write on C disk directly, I changed my default DocumentRoot to `My Docs/www` and everything was working fine (except that any site with `.htaccess` did not work).
I decided then to mak... | Depending on what Apache version your WAMP is using, you may need to replace these directives in your regular virtual host settings:
```
Order allow,deny
Allow from all
```
with
```
Require all granted
```
Please see more about upgrading form Apache 2.2 to Apache 2.4 [here](http://httpd.apache.org/docs/trunk/upgr... |
69,573 | <p>We re-manufacture and sell industrial diesel engines such as CAT Engines, Cummins, Detroit and a few others. </p>
<p>Would creating an inventory page with a list of our different engines, each containing make and model information, using h3 tags, be considered keyword stuffing? </p>
<p>We need to have the make and... | [
{
"answer_id": 69567,
"author": "Thyamarkos",
"author_id": 39052,
"author_profile": "https://webmasters.stackexchange.com/users/39052",
"pm_score": 1,
"selected": false,
"text": "<p>Depending on what Apache version your WAMP is using, you may need to replace these directives in your regu... | 2014/09/30 | [
"https://webmasters.stackexchange.com/questions/69573",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/42100/"
] | We re-manufacture and sell industrial diesel engines such as CAT Engines, Cummins, Detroit and a few others.
Would creating an inventory page with a list of our different engines, each containing make and model information, using h3 tags, be considered keyword stuffing?
We need to have the make and model for each l... | Depending on what Apache version your WAMP is using, you may need to replace these directives in your regular virtual host settings:
```
Order allow,deny
Allow from all
```
with
```
Require all granted
```
Please see more about upgrading form Apache 2.2 to Apache 2.4 [here](http://httpd.apache.org/docs/trunk/upgr... |
69,580 | <p>I have a situation where I need a subfolder, in one domain, to redirect to a second domain, so <a href="http://domain1.com/domain2/" rel="nofollow noreferrer">http://domain1.com/domain2/</a> would redirect to <a href="http://domain2.com" rel="nofollow noreferrer">http://domain2.com</a>. </p>
<p>I need the root fol... | [
{
"answer_id": 69586,
"author": "Frank",
"author_id": 2379,
"author_profile": "https://webmasters.stackexchange.com/users/2379",
"pm_score": 1,
"selected": false,
"text": "<p>This cannot be done via DNS. You either need to do it at the web server level (.htacess apache / rewrite rules I... | 2014/09/30 | [
"https://webmasters.stackexchange.com/questions/69580",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/45136/"
] | I have a situation where I need a subfolder, in one domain, to redirect to a second domain, so <http://domain1.com/domain2/> would redirect to <http://domain2.com>.
I need the root folder of domain1.com to remain as it is, just the subfolder needs to redirect.
It needs to be this way because I need to access PHP and... | This definitely can't be done with DNS.
I think the real question you want to solve is *"How do I allow cross-domain PHP and fonts?"*
---
To enable cross-domain PHP and font files (this is probably all you need) you would add the 'Access-Control-Allow-Origin' header to **domain2's configuration**, like so
**Apache... |
69,587 | <p>In a Spanish curious news site. AdSense seems to block ads inside any page which contains some sexual words. In fact, these pages are scientific articles or curious news, like <code>Bears also practice oral sex</code>, or <code>Created a lubricant that gives you orgasms during 15 minutes</code>. Of course, there are... | [
{
"answer_id": 69586,
"author": "Frank",
"author_id": 2379,
"author_profile": "https://webmasters.stackexchange.com/users/2379",
"pm_score": 1,
"selected": false,
"text": "<p>This cannot be done via DNS. You either need to do it at the web server level (.htacess apache / rewrite rules I... | 2014/10/01 | [
"https://webmasters.stackexchange.com/questions/69587",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/31534/"
] | In a Spanish curious news site. AdSense seems to block ads inside any page which contains some sexual words. In fact, these pages are scientific articles or curious news, like `Bears also practice oral sex`, or `Created a lubricant that gives you orgasms during 15 minutes`. Of course, there are no explicit images in th... | This definitely can't be done with DNS.
I think the real question you want to solve is *"How do I allow cross-domain PHP and fonts?"*
---
To enable cross-domain PHP and font files (this is probably all you need) you would add the 'Access-Control-Allow-Origin' header to **domain2's configuration**, like so
**Apache... |
69,624 | <p>I need to configure 2 CMS's on a domain. The first is on <code>example.com</code>. The other is on <code>subdomain.example.com</code>. Is it possible to configure a <em>.htaccess</em> file so that the second CMS is accessible as <code>example.com/subdomain/</code> without redirects?</p>
| [
{
"answer_id": 69637,
"author": "Frank",
"author_id": 2379,
"author_profile": "https://webmasters.stackexchange.com/users/2379",
"pm_score": 0,
"selected": false,
"text": "<p>Not without redirects. The only way you can do it without a redirect is to use a reverse proxy (either apache, o... | 2014/10/02 | [
"https://webmasters.stackexchange.com/questions/69624",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/45169/"
] | I need to configure 2 CMS's on a domain. The first is on `example.com`. The other is on `subdomain.example.com`. Is it possible to configure a *.htaccess* file so that the second CMS is accessible as `example.com/subdomain/` without redirects? | [mod\_proxy](https://httpd.apache.org/docs/current/mod/mod_proxy.html) can be configured from *.htaccess* to serve content from a different server or host as a subfolder. You would use a rewrite rule with the `[P]` flag (for proxy) in your *.htaccess* to do so:
```
RewriteRule ^/subdomain/(.*) http://subdomain.example... |
69,662 | <p>I want to de-index all the pages of my website except home page. This is because it is an exact match domain (EMD) and I'm getting traffic on website just because of Domain name.</p>
<p>I want to restart the website. How is it possible ?</p>
| [
{
"answer_id": 69663,
"author": "Wexford",
"author_id": 40448,
"author_profile": "https://webmasters.stackexchange.com/users/40448",
"pm_score": 1,
"selected": false,
"text": "<p>Try putting the following robots.txt in the root of your website:</p>\n\n<pre><code>User-agent: *\nDisallow: ... | 2014/10/03 | [
"https://webmasters.stackexchange.com/questions/69662",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/45196/"
] | I want to de-index all the pages of my website except home page. This is because it is an exact match domain (EMD) and I'm getting traffic on website just because of Domain name.
I want to restart the website. How is it possible ? | Try putting the following robots.txt in the root of your website:
```
User-agent: *
Disallow: /
Allow: /$
```
Note that it will take time and that you can use Webmaster Tools to manually request their removal (this can speed up the process). |