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 |
|---|---|---|---|---|---|---|
82,249 | <p>I've got a rule in my <code>robots.txt</code> file:</p>
<pre><code># Crawlers Setup
User-agent: *
# Directories
Disallow: /my_directory/
</code></pre>
<p>Yet I am getting entries in my <code>Crawl Errors</code> section of Google Webmaster Tools for this URL:</p>
<blockquote>
<p>Googlebot couldn't access the co... | [
{
"answer_id": 82381,
"author": "Marian Popovych",
"author_id": 26642,
"author_profile": "https://webmasters.stackexchange.com/users/26642",
"pm_score": 0,
"selected": false,
"text": "<p>Robots.txt blocks only content, not URL. So, if server response on the \"blocked\" URL is wrong, Goog... | 2015/06/15 | [
"https://webmasters.stackexchange.com/questions/82249",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/46793/"
] | I've got a rule in my `robots.txt` file:
```
# Crawlers Setup
User-agent: *
# Directories
Disallow: /my_directory/
```
Yet I am getting entries in my `Crawl Errors` section of Google Webmaster Tools for this URL:
>
> Googlebot couldn't access the contents of this URL because the server had an internal error when ... | Robots.txt does not block search engines from indexing a URL, only from visiting a URL. So what is likely happening is that Googlebot is getting an idea of your page based on its inbound links and indexing it, even though it knows it can't actually make a request to that page to retrieve and index its content.
From [G... |
82,250 | <p>I am facing the following problem and need a correct solution also for SEO purposes.</p>
<p>It happens that our server, which is on a shared hosting, fails and responds with a 503 server error code. What I have done now is setup IIS on another server to allow the requests from that particular domain. It contains 1 ... | [
{
"answer_id": 82251,
"author": "MrWhite",
"author_id": 1243,
"author_profile": "https://webmasters.stackexchange.com/users/1243",
"pm_score": 1,
"selected": false,
"text": "<blockquote>\n <p>How can I still throw the 503 server error on the new server</p>\n</blockquote>\n\n<p>Using wha... | 2015/06/15 | [
"https://webmasters.stackexchange.com/questions/82250",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/43987/"
] | I am facing the following problem and need a correct solution also for SEO purposes.
It happens that our server, which is on a shared hosting, fails and responds with a 503 server error code. What I have done now is setup IIS on another server to allow the requests from that particular domain. It contains 1 page with ... | First of all what @w3d suggested is also a good solution I have done it in another way.
On the backup server I have added some url rewriting in the IIS in order to redirect all pages, except the maintenance page, using a 302 redirect to that maintenance page.
**Rewrite rule**
```
<rewrite>
<rules>
... |
82,269 | <p>Can it be harm for my site in manner of SEO if I will insert BR tag inside H1 tag?</p>
<pre><code><h1> keyword1 <br/>
keyword2 <br/>
keyword2 <br/>
</h1>
</code></pre>
| [
{
"answer_id": 82274,
"author": "unor",
"author_id": 17633,
"author_profile": "https://webmasters.stackexchange.com/users/17633",
"pm_score": 3,
"selected": false,
"text": "<p>It can be appropriate to use <a href=\"http://www.w3.org/TR/2014/REC-html5-20141028/text-level-semantics.html#th... | 2015/06/15 | [
"https://webmasters.stackexchange.com/questions/82269",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/19212/"
] | Can it be harm for my site in manner of SEO if I will insert BR tag inside H1 tag?
```
<h1> keyword1 <br/>
keyword2 <br/>
keyword2 <br/>
</h1>
``` | It can be appropriate to use [`br`](http://www.w3.org/TR/2014/REC-html5-20141028/text-level-semantics.html#the-br-element) in heading elements. An [example](http://www.w3.org/TR/2014/REC-html5-20141028/common-idioms.html#sub-head) from the HTML5 spec:
```html
<h1>Ramones <br>
<span>Hey! Ho! Let's Go</span>
</h1>
```... |
82,319 | <p>If anyone can help, I'd be very grateful! We're getting strange domains coming up in Google webmaster tools. When I look where the links are coming from, it's either:</p>
<p>non-existent pages on our website (usually) or
some other site URL</p>
<p>I'll give some examples:</p>
<pre><code>Designer--Housewares.html?... | [
{
"answer_id": 82349,
"author": "closetnoc",
"author_id": 36029,
"author_profile": "https://webmasters.stackexchange.com/users/36029",
"pm_score": 2,
"selected": false,
"text": "<p>We get these questions a lot!!</p>\n\n<p>Make sure you have not created these links by accident by doing an... | 2015/06/17 | [
"https://webmasters.stackexchange.com/questions/82319",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/53324/"
] | If anyone can help, I'd be very grateful! We're getting strange domains coming up in Google webmaster tools. When I look where the links are coming from, it's either:
non-existent pages on our website (usually) or
some other site URL
I'll give some examples:
```
Designer--Housewares.html?node=69&rattr=API3_CATEGORY_... | We get these questions a lot!!
Make sure you have not created these links by accident by doing an audit.
You can use [ScreamingFrog](http://www.screamingfrog.co.uk/seo-spider/) or [SEO Powersuite](http://www.seopowersuite.com/) for this. You can use both in trial mode. ScreamingFrog will report on 500 pages in trial ... |
82,452 | <p>How do I figure-out what is blocking some visitors in htaccess when it's NOT the IP range, User-Agent, Referer nor anti-hotlinking? </p>
<h1>Forbid empty Referer & all other domains from hotlinking to images, Except for your domain, google, bing or other good domains</h1>
<pre><code><IfModule mod_rewrite.c... | [
{
"answer_id": 82457,
"author": "Mike -- No longer here",
"author_id": 46807,
"author_profile": "https://webmasters.stackexchange.com/users/46807",
"pm_score": 1,
"selected": false,
"text": "<p>First I would adjust the code slightly so that its more like this:</p>\n\n<pre><code>RewriteCo... | 2015/06/21 | [
"https://webmasters.stackexchange.com/questions/82452",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/-1/"
] | How do I figure-out what is blocking some visitors in htaccess when it's NOT the IP range, User-Agent, Referer nor anti-hotlinking?
Forbid empty Referer & all other domains from hotlinking to images, Except for your domain, google, bing or other good domains
===========================================================... | First I would adjust the code slightly so that its more like this:
```
RewriteCond %{HTTP_REFERER} !^(|(http(|s):\/\/))(mySite1|mySite2|ask|bing|duckduckgo|google|ixquick|msn|startpage|yahoo)\.com$ [NC,OR]
RewriteCond %{HTTP_REFERER} ^$
RewriteCond %{REQUEST_URI} ^.*\.(bmp|gif|ico|jpg|jpeg|pdf|png|svg|svgz|swf)$ [NC]
... |
82,469 | <p>Noticed a severe drop in organic rankings and traffic, after investigating what might have been the cause we have found 3 websites that have duplicated the site within their domains. When you click on the duplicated pages on these domains, they 302 redirect to Amazon.</p>
<p>We believe these sites may have been hac... | [
{
"answer_id": 82457,
"author": "Mike -- No longer here",
"author_id": 46807,
"author_profile": "https://webmasters.stackexchange.com/users/46807",
"pm_score": 1,
"selected": false,
"text": "<p>First I would adjust the code slightly so that its more like this:</p>\n\n<pre><code>RewriteCo... | 2015/06/22 | [
"https://webmasters.stackexchange.com/questions/82469",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/23156/"
] | Noticed a severe drop in organic rankings and traffic, after investigating what might have been the cause we have found 3 websites that have duplicated the site within their domains. When you click on the duplicated pages on these domains, they 302 redirect to Amazon.
We believe these sites may have been hacked, (or a... | First I would adjust the code slightly so that its more like this:
```
RewriteCond %{HTTP_REFERER} !^(|(http(|s):\/\/))(mySite1|mySite2|ask|bing|duckduckgo|google|ixquick|msn|startpage|yahoo)\.com$ [NC,OR]
RewriteCond %{HTTP_REFERER} ^$
RewriteCond %{REQUEST_URI} ^.*\.(bmp|gif|ico|jpg|jpeg|pdf|png|svg|svgz|swf)$ [NC]
... |
82,615 | <p>How can I create a numbered list containing multi line pre, source or code tags without breaking the list?</p>
<p>That is what I have been trying:</p>
<pre><code># First
# Second <source lang="CSharp">Some
Multi
Line C Sharp
Code </source>
# Trid
</code></pre>
<p>It results in something like:</p>
<p>... | [
{
"answer_id": 82616,
"author": "NinjaBearMonkey",
"author_id": 44052,
"author_profile": "https://webmasters.stackexchange.com/users/44052",
"pm_score": 1,
"selected": false,
"text": "<p>I don't think that can be done with pure wiki markup. From the <a href=\"https://www.mediawiki.org/wi... | 2015/06/26 | [
"https://webmasters.stackexchange.com/questions/82615",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/38661/"
] | How can I create a numbered list containing multi line pre, source or code tags without breaking the list?
That is what I have been trying:
```
# First
# Second <source lang="CSharp">Some
Multi
Line C Sharp
Code </source>
# Trid
```
It results in something like:
?
HTML code:
```
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="style.css">
</head>
<body>
<div class="video">
<div class="video-box">
<a class="thumbnail-link">
<img src="http://i.ytimg.com/vi_webp/67OAp3FW6D... |
82,661 | <p>My website is primarily a photo gallery presentation site where the photo thumbnails (that link to the photos) are divided into pages. To maintain compatibility for all users, I give them the option to view either a max of 100, 200, or 500 thumbnails per page by selecting an appropriate button without Javascript.</p... | [
{
"answer_id": 82691,
"author": "Zulhilmi Zainudin",
"author_id": 18329,
"author_profile": "https://webmasters.stackexchange.com/users/18329",
"pm_score": 2,
"selected": false,
"text": "<p>Something <a href=\"http://embed.plnkr.co/mklc7K8EBdSJ0JkM96IC/preview\" rel=\"nofollow\">like this... | 2015/06/29 | [
"https://webmasters.stackexchange.com/questions/82661",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/46807/"
] | My website is primarily a photo gallery presentation site where the photo thumbnails (that link to the photos) are divided into pages. To maintain compatibility for all users, I give them the option to view either a max of 100, 200, or 500 thumbnails per page by selecting an appropriate button without Javascript.
The ... | Something [like this](http://embed.plnkr.co/mklc7K8EBdSJ0JkM96IC/preview)?
HTML code:
```
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="style.css">
</head>
<body>
<div class="video">
<div class="video-box">
<a class="thumbnail-link">
<img src="http://i.ytimg.com/vi_webp/67OAp3FW6D... |
82,672 | <p>I have a question I've been struggling quite a while with it. I have a basic search engine on my website, where you can search for 4 categories (checkboxes) + a price. Instead of posting to strange url's like /q?categories[]=a&categories[]=b&price=2000-3000, I'd like them to be like:</p>
<pre><code>/search/... | [
{
"answer_id": 82673,
"author": "Preston Pierce",
"author_id": 53608,
"author_profile": "https://webmasters.stackexchange.com/users/53608",
"pm_score": 2,
"selected": false,
"text": "<p>Did a little research on this, it seems using + is a common practice when it comes to multi category U... | 2015/06/29 | [
"https://webmasters.stackexchange.com/questions/82672",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/53679/"
] | I have a question I've been struggling quite a while with it. I have a basic search engine on my website, where you can search for 4 categories (checkboxes) + a price. Instead of posting to strange url's like /q?categories[]=a&categories[]=b&price=2000-3000, I'd like them to be like:
```
/search/category-a
/search/cat... | I would consider separating the parameter and value by directories and using dashes. e.g.
```
/search/category/a-b-c/price/2000-3000/
```
I'd say the URL structure is a smaller concern than the duplication issues which may arise. Ensure you have canonical tags for handling:
```
/search/category/a-b-c/price/2000-300... |
82,708 | <p>Anywhere that I check my website I get a leverage browser catching issue because of this file:</p>
<pre><code>http://www.google-analytics.com/ga.js
</code></pre>
<p>In many questions and answers, articles people have offered to get the source of the script and serve it from my own server. Doing this is very easy b... | [
{
"answer_id": 82709,
"author": "Martijn",
"author_id": 37448,
"author_profile": "https://webmasters.stackexchange.com/users/37448",
"pm_score": 1,
"selected": false,
"text": "<p><strong>Approve? Well, they don't recommend it.</strong> </p>\n\n<p>The major downside of this is updates. I... | 2015/06/30 | [
"https://webmasters.stackexchange.com/questions/82708",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/11815/"
] | Anywhere that I check my website I get a leverage browser catching issue because of this file:
```
http://www.google-analytics.com/ga.js
```
In many questions and answers, articles people have offered to get the source of the script and serve it from my own server. Doing this is very easy but my concern is, If I do ... | I think that the most important point is that creating a local copy of that file is totally counterproductive. The reason is very simple. The file comes in two versions (`ga.js` and the older `analytics.js`) and can be served over 2 protocols (HTTP and HTTPS). This means that the browser only ever needs to keep at most... |
82,742 | <p>I have a specific SEO problem. I created two landing pages for a clients website, on Shopify.</p>
<p><code>http://www.example.com/pages/ogham-celtic-jewelry</code></p>
<p><code>http://www.example.com/pages/claddagh-ring</code></p>
<p>After a week neither is really ranking, which probably isint that surprising. I hav... | [
{
"answer_id": 82744,
"author": "dhaupin",
"author_id": 38958,
"author_profile": "https://webmasters.stackexchange.com/users/38958",
"pm_score": 0,
"selected": false,
"text": "<p>Welcome to the machine. You just need to keep experimenting with keyword strings and fill in all the SEO stuf... | 2015/07/01 | [
"https://webmasters.stackexchange.com/questions/82742",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/53755/"
] | I have a specific SEO problem. I created two landing pages for a clients website, on Shopify.
`http://www.example.com/pages/ogham-celtic-jewelry`
`http://www.example.com/pages/claddagh-ring`
After a week neither is really ranking, which probably isint that surprising. I haven't done landing pages before so I am not ... | >
> I have a specific SEO problem. I created two landing pages for a clients website,on shopify.
>
>
> <http://www.example.com/pages/ogham-celtic-jewelry>
>
>
> <http://www.example.com/pages/claddagh-ring>
>
>
> After a week neither is really ranking, which probably isn't that surprising. I haven't done landing... |
82,747 | <p>In order to boost our online-presence, my employer wants me to incorporate a FAQ on our website. It's a Wordpress-site running a premium theme, and I have a couple of options available to me.</p>
<ol>
<li><p>Do a single-page accordion-style layout with all the FAQ's on a the same site (eg www.mysite.com/faq/)</p></... | [
{
"answer_id": 82744,
"author": "dhaupin",
"author_id": 38958,
"author_profile": "https://webmasters.stackexchange.com/users/38958",
"pm_score": 0,
"selected": false,
"text": "<p>Welcome to the machine. You just need to keep experimenting with keyword strings and fill in all the SEO stuf... | 2015/07/01 | [
"https://webmasters.stackexchange.com/questions/82747",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/53762/"
] | In order to boost our online-presence, my employer wants me to incorporate a FAQ on our website. It's a Wordpress-site running a premium theme, and I have a couple of options available to me.
1. Do a single-page accordion-style layout with all the FAQ's on a the same site (eg www.mysite.com/faq/)
2. Do multiple pages ... | >
> I have a specific SEO problem. I created two landing pages for a clients website,on shopify.
>
>
> <http://www.example.com/pages/ogham-celtic-jewelry>
>
>
> <http://www.example.com/pages/claddagh-ring>
>
>
> After a week neither is really ranking, which probably isn't that surprising. I haven't done landing... |
82,753 | <p>I'm developing a site for an antiques shop, specialized in rare and ancient books.<br>
Every page for each book will have a description sheet available with several data for the item.</p>
<p>Descriptions generally include:</p>
<ul>
<li>catalog number (wich i guess can be microdata omitted)</li>
<li>book name</li>
... | [
{
"answer_id": 82744,
"author": "dhaupin",
"author_id": 38958,
"author_profile": "https://webmasters.stackexchange.com/users/38958",
"pm_score": 0,
"selected": false,
"text": "<p>Welcome to the machine. You just need to keep experimenting with keyword strings and fill in all the SEO stuf... | 2015/07/02 | [
"https://webmasters.stackexchange.com/questions/82753",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/38403/"
] | I'm developing a site for an antiques shop, specialized in rare and ancient books.
Every page for each book will have a description sheet available with several data for the item.
Descriptions generally include:
* catalog number (wich i guess can be microdata omitted)
* book name
* author
* genre
* format
* book s... | >
> I have a specific SEO problem. I created two landing pages for a clients website,on shopify.
>
>
> <http://www.example.com/pages/ogham-celtic-jewelry>
>
>
> <http://www.example.com/pages/claddagh-ring>
>
>
> After a week neither is really ranking, which probably isn't that surprising. I haven't done landing... |
82,792 | <p>After thinking for numerous hours, I'm starting to think that google discovered duplicate content in a unique way.</p>
<p>I have a website that presents photos. I have a desktop version and a mobile version. The differences between the two is that the mobile version is a slimmed down version with fewer features.</p... | [
{
"answer_id": 82795,
"author": "Ethan",
"author_id": 45289,
"author_profile": "https://webmasters.stackexchange.com/users/45289",
"pm_score": 2,
"selected": true,
"text": "<p>You're doing things exactly correct. Use 301 and there will be no problems.</p>\n\n<p>This is NOT a situation to... | 2015/07/03 | [
"https://webmasters.stackexchange.com/questions/82792",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/46807/"
] | After thinking for numerous hours, I'm starting to think that google discovered duplicate content in a unique way.
I have a website that presents photos. I have a desktop version and a mobile version. The differences between the two is that the mobile version is a slimmed down version with fewer features.
This is whe... | You're doing things exactly correct. Use 301 and there will be no problems.
This is NOT a situation to be using rel=canonical. Canonical linking is for multiple URLs with the same content. This isn't what you have, instead you're trying to move users in the proper direction.
The best case scenario is to just not show... |
82,825 | <p>There is a file in my public_html folder called <code>error.log</code> which is viewable by anyone if they just enter the URL in their browser, like: <code>example.com/error.log</code></p>
<p>I'm running Apache. My question is, how can I hide or perhaps move this <code>error.log</code> so that it isn't visible to r... | [
{
"answer_id": 82826,
"author": "MrWhite",
"author_id": 1243,
"author_profile": "https://webmasters.stackexchange.com/users/1243",
"pm_score": 0,
"selected": false,
"text": "<p>Yes, this file should not be publically accessible over HTTP. Presumably this is generated by your webhost and ... | 2015/07/04 | [
"https://webmasters.stackexchange.com/questions/82825",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/53829/"
] | There is a file in my public\_html folder called `error.log` which is viewable by anyone if they just enter the URL in their browser, like: `example.com/error.log`
I'm running Apache. My question is, how can I hide or perhaps move this `error.log` so that it isn't visible to regular users?
```
ErrorDocument 401 defau... | I prefer to have my error log outside a publicly accessible directory. You can change the location of the error log either in your virtual host configuration or via a htaccess file:
```
php_value error_log /home/path/error.log
```
Alternatively if you don't want to change its location you can prevent access like th... |
82,850 | <p>In the following scenario, example.com is my homepage. </p>
<p>I need to:</p>
<ul>
<li><p>redirect <code>www</code> to <code>non-www</code></p></li>
<li><p>redirect <code>index.html</code> to homepage</p></li>
<li><p>redirect <code>example.com/store</code> to <code>example.com</code></p></li>
</ul>
<p>This is my ... | [
{
"answer_id": 82857,
"author": "MrWhite",
"author_id": 1243,
"author_profile": "https://webmasters.stackexchange.com/users/1243",
"pm_score": 2,
"selected": false,
"text": "<pre><code>RedirectMatch 301 ^/store/$ http://example.com\n</code></pre>\n\n<blockquote>\n <p>it only redirects <... | 2015/07/05 | [
"https://webmasters.stackexchange.com/questions/82850",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/38824/"
] | In the following scenario, example.com is my homepage.
I need to:
* redirect `www` to `non-www`
* redirect `index.html` to homepage
* redirect `example.com/store` to `example.com`
This is my htaccess code
```
# Switch rewrite engine on
RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC]
Rewrit... | ```
RedirectMatch 301 ^/store/$ http://example.com
```
>
> it only redirects `example.com/store/` (with forward slash after store)
>
>
>
Which is exactly what the "forward slash after store" is saying in your `RedirectMatch` pattern. However, you should not mix `RedirectMatch` (mod\_alias) with `RewriteRule` (mo... |
82,852 | <p>Someone wants me to make them a website and she says she already has a host. She doesn't care how I make the website, but seems uncomfortable giving me the host information. Is this usual? I had assumed that if someone has a host then they would give it to the developer for development purposes; so they can develop ... | [
{
"answer_id": 82857,
"author": "MrWhite",
"author_id": 1243,
"author_profile": "https://webmasters.stackexchange.com/users/1243",
"pm_score": 2,
"selected": false,
"text": "<pre><code>RedirectMatch 301 ^/store/$ http://example.com\n</code></pre>\n\n<blockquote>\n <p>it only redirects <... | 2015/07/05 | [
"https://webmasters.stackexchange.com/questions/82852",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/53846/"
] | Someone wants me to make them a website and she says she already has a host. She doesn't care how I make the website, but seems uncomfortable giving me the host information. Is this usual? I had assumed that if someone has a host then they would give it to the developer for development purposes; so they can develop for... | ```
RedirectMatch 301 ^/store/$ http://example.com
```
>
> it only redirects `example.com/store/` (with forward slash after store)
>
>
>
Which is exactly what the "forward slash after store" is saying in your `RedirectMatch` pattern. However, you should not mix `RedirectMatch` (mod\_alias) with `RewriteRule` (mo... |
82,897 | <p>Ten hours ago I signed up for a HostGator account and uploaded my new website. I also updated my registrar's DNS info to point to HostGator's nameservers. DNS was instantly ok, the domain name pointing to the correct IP address in no time.</p>
<pre><code>$ host www.gilbertoneves.med.br
www.gilbertoneves.med.br has ... | [
{
"answer_id": 108790,
"author": "Mazharul Haq SEO",
"author_id": 72770,
"author_profile": "https://webmasters.stackexchange.com/users/72770",
"pm_score": 0,
"selected": false,
"text": "<p>My client has changed a domain old to new for re-branding purpose (2015) and we redirected (301) al... | 2015/07/06 | [
"https://webmasters.stackexchange.com/questions/82897",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/53901/"
] | Ten hours ago I signed up for a HostGator account and uploaded my new website. I also updated my registrar's DNS info to point to HostGator's nameservers. DNS was instantly ok, the domain name pointing to the correct IP address in no time.
```
$ host www.gilbertoneves.med.br
www.gilbertoneves.med.br has address 216.17... | >
> I'm worried that if I submit a new sitemap for my newdomain, it will
> get crawled without getting the link juice from the olddomain
>
>
>
Site position goes down, because Google may index your new site content and does not remove the old one **in a same time**, it take some time to understand that 301 redire... |
82,899 | <p>In my site when someone access directly the <code>domain.com</code> or any other url that does not contain country indication like <code>domain.com/contact</code>, the language content is shown based on his IP. for example if he lives in UK, he will get the included UK translated file. Likewise, if lives in Italy an... | [
{
"answer_id": 83060,
"author": "FarhadD",
"author_id": 53927,
"author_profile": "https://webmasters.stackexchange.com/users/53927",
"pm_score": 3,
"selected": false,
"text": "<p>You're better off creating a multilingual sitemap, just to avoid any source of confusion. The format you have... | 2015/07/06 | [
"https://webmasters.stackexchange.com/questions/82899",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/12673/"
] | In my site when someone access directly the `domain.com` or any other url that does not contain country indication like `domain.com/contact`, the language content is shown based on his IP. for example if he lives in UK, he will get the included UK translated file. Likewise, if lives in Italy and access directly the `do... | You're better off creating a multilingual sitemap, just to avoid any source of confusion. The format you have shown is correct.
In fact, you could even drop the hreflang declarations in your page sections and just use the declaration within the sitemap.
The Official Webmaster Tools blog explains the advantages of usi... |
82,930 | <p>I've been following facebook instructions in order to embed their "page plugin" in my website, and failing. (<a href="https://developers.facebook.com/docs/plugins/page-plugin" rel="nofollow">See instructions here.</a>)</p>
<p>Would you please take a look at my code and help me out? thanks in advance!</p>
<pre><cod... | [
{
"answer_id": 82945,
"author": "Sherwin Flight",
"author_id": 14331,
"author_profile": "https://webmasters.stackexchange.com/users/14331",
"pm_score": 0,
"selected": false,
"text": "<p>From the definition you provided it sounds like that would be fine. I don't think the 300x250 ads woul... | 2015/07/07 | [
"https://webmasters.stackexchange.com/questions/82930",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/46820/"
] | I've been following facebook instructions in order to embed their "page plugin" in my website, and failing. ([See instructions here.](https://developers.facebook.com/docs/plugins/page-plugin))
Would you please take a look at my code and help me out? thanks in advance!
```
<body>
<!-- Include the JavaScript SDK -... | >
> ...it would only serve 300x600 once, and the other two will be 300x250.
>
>
>
It's generally not a good idea to define ads at these sizes, especially if your ads are located "above the fold", meaning in the section of the page a user can see before scrolling. Additionally, you will need to have a lot of conten... |
82,951 | <p>I need some help with .htaccess redirect.</p>
<pre><code>http://www.example.de/test-music.html?p1=1&p2[test]=23
http://www.example.de/test-music.html?p1=6&p2[test3]=5
</code></pre>
<p>ALL of them need to be redirected to ...</p>
<pre><code>http://www.example.de/music/
</code></pre>
<p>... without taking ... | [
{
"answer_id": 85664,
"author": "masmrdrr",
"author_id": 56550,
"author_profile": "https://webmasters.stackexchange.com/users/56550",
"pm_score": 0,
"selected": false,
"text": "<p>Try creating different versions of your video with differential sound, frame-rate and encoding for different... | 2015/07/08 | [
"https://webmasters.stackexchange.com/questions/82951",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/53952/"
] | I need some help with .htaccess redirect.
```
http://www.example.de/test-music.html?p1=1&p2[test]=23
http://www.example.de/test-music.html?p1=6&p2[test3]=5
```
ALL of them need to be redirected to ...
```
http://www.example.de/music/
```
... without taking care of any parameters - can you help me? | There is a *lot* more to matching video than just comparing file hashes. Google developed and entire video matching system for YouTube called [ContentID](https://support.google.com/youtube/answer/2797370?hl=en-GB) which checks every video uploaded against a library of copyrighted videos.
For a simple explanation, let'... |
82,954 | <p>I have the following 503 status set:</p>
<pre><code>RedirectMatch 503 ^/(?!index\.html)
ErrorDocument 503 /index.html
Header always set Retry-After "604800"
</code></pre>
<p>I understand that this rule tells any robots that the server is down for maintenance and to check back in a week.</p>
<p>This is working per... | [
{
"answer_id": 82958,
"author": "mickburkejnr",
"author_id": 3718,
"author_profile": "https://webmasters.stackexchange.com/users/3718",
"pm_score": 0,
"selected": false,
"text": "<p>As you have done with your current rules, you need to make an allowance for any files that end in .jpg or ... | 2015/07/08 | [
"https://webmasters.stackexchange.com/questions/82954",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/53928/"
] | I have the following 503 status set:
```
RedirectMatch 503 ^/(?!index\.html)
ErrorDocument 503 /index.html
Header always set Retry-After "604800"
```
I understand that this rule tells any robots that the server is down for maintenance and to check back in a week.
This is working perfectly, but the server is failing... | Have mod\_rewrite installed and try this:
```
RewriteEngine On
RewriteCond %{REQUEST_URI} !^(.*).png [NC]
RewriteCond %{REQUEST_URI} !^(.*).jpg [NC]
RewriteCond %{REQUEST_URI} !/index.html [NC]
RewriteCond %{REQUEST_URI} !^(.*).css [NC]
RewriteRule ^(.*)$ - [R=503,L]
ErrorDocument 503 /index.html
Header always set Ret... |
82,996 | <p>I am in charge of a server that is receiving strange requests for a file that doesn't exist and it never existed and I am trying to find which account they are coming from (CentOS + Plesk)</p>
<p>The logs look like this:</p>
<pre><code>65.52.129.119 - [09/Jul/2015:16:30:35 +0100] "GET /FPURL.xml HTTP/1.1" 262ms 40... | [
{
"answer_id": 82998,
"author": "closetnoc",
"author_id": 36029,
"author_profile": "https://webmasters.stackexchange.com/users/36029",
"pm_score": 2,
"selected": false,
"text": "<p>This, at first blush, it looks like a Microsoft Hosting customer is trying to access a SharePoint file. It ... | 2015/07/09 | [
"https://webmasters.stackexchange.com/questions/82996",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/54005/"
] | I am in charge of a server that is receiving strange requests for a file that doesn't exist and it never existed and I am trying to find which account they are coming from (CentOS + Plesk)
The logs look like this:
```
65.52.129.119 - [09/Jul/2015:16:30:35 +0100] "GET /FPURL.xml HTTP/1.1" 262ms 404 272 "-" "-"
65.52.1... | This, at first blush, it looks like a Microsoft Hosting customer is trying to access a SharePoint file. It can be a simple on-line data collection effort or possibly a malware compromised computer seeking for vulnerabilities. It can go either way. There is very little information on this pattern yet to tell. I appears ... |
83,002 | <p>I have posted this question on a Google Webmasters forum with no luck.
I also called Google and spoke with a rep with no luck.</p>
<p>Here is our problem.</p>
<h3>Overview</h3>
<ul>
<li><p>Website launch for a client about a year ago</p></li>
<li><p>They did a re branding company name change and URL change</p></l... | [
{
"answer_id": 83011,
"author": "Mike -- No longer here",
"author_id": 46807,
"author_profile": "https://webmasters.stackexchange.com/users/46807",
"pm_score": 2,
"selected": false,
"text": "<p>Google likes to cache pages in search results to give users the option to view the cached page... | 2015/07/09 | [
"https://webmasters.stackexchange.com/questions/83002",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/54012/"
] | I have posted this question on a Google Webmasters forum with no luck.
I also called Google and spoke with a rep with no luck.
Here is our problem.
### Overview
* Website launch for a client about a year ago
* They did a re branding company name change and URL change
* About a month ago: we launched their new websit... | Google likes to cache pages in search results to give users the option to view the cached page in case the real site goes down.
What you can do in every page that you updated that Google still reports incorrectly is add the following HTML code between `<head>` and `</head>` of your outputted HTML code that the web bro... |
83,012 | <p>There's a lot of debate over the architecture of heading structure in html5. After reading various articles, I've come to three possible architectures that make logical sense to me, but I'm unsure which is the actual proper method of approach. I'll list them below with code examples and hopefully someone can shed so... | [
{
"answer_id": 83014,
"author": "closetnoc",
"author_id": 36029,
"author_profile": "https://webmasters.stackexchange.com/users/36029",
"pm_score": 4,
"selected": true,
"text": "<p>To begin, none of your examples have anything to do with semantics. Your question is based completely on the... | 2015/07/10 | [
"https://webmasters.stackexchange.com/questions/83012",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/54022/"
] | There's a lot of debate over the architecture of heading structure in html5. After reading various articles, I've come to three possible architectures that make logical sense to me, but I'm unsure which is the actual proper method of approach. I'll list them below with code examples and hopefully someone can shed some ... | To begin, none of your examples have anything to do with semantics. Your question is based completely on the parser model where the page is read top-to-bottom in the traditional way.
For this reason, your first example is correct. The following examples will fail to give you predictable results and can cause you serio... |
83,015 | <p>Contributing for the first time in a website project and editing an existing website. One list item looks like this:</p>
<pre><code><li>li class="public-nav hide" id="signup-nav"><a href="signup"><button class="btn btn-primary">Get Started for Free</button></a></li>
</code></p... | [
{
"answer_id": 83016,
"author": "asdofindia",
"author_id": 53630,
"author_profile": "https://webmasters.stackexchange.com/users/53630",
"pm_score": 2,
"selected": false,
"text": "<p>Remember that \"signup\" is a relative URL. It opens the URL signup relative to the URL of the page in whi... | 2015/07/10 | [
"https://webmasters.stackexchange.com/questions/83015",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/54025/"
] | Contributing for the first time in a website project and editing an existing website. One list item looks like this:
```
<li>li class="public-nav hide" id="signup-nav"><a href="signup"><button class="btn btn-primary">Get Started for Free</button></a></li>
```
As you can see, the internally stored page "signup" is re... | Remember that "signup" is a relative URL. It opens the URL signup relative to the URL of the page in which that link is in.
For example, on `example.com/` if you add `href="signup"`, it'll lead to `example.com/signup`.
But on `example.com/about/index.html` if you add the same, it'll go to `example.com/about/signup`.
... |
83,023 | <p>My Firefox and Chrome usually open PDF files very nicely, without asking and within the browser window.</p>
<p>When clicking on a link to a PDF on our own website:</p>
<ul>
<li>Firefox asks if it should download them, to see it I need to open the download history.</li>
<li>Chrome downloads it automatically, but he... | [
{
"answer_id": 83024,
"author": "Stephen Ostermiller",
"author_id": 14543,
"author_profile": "https://webmasters.stackexchange.com/users/14543",
"pm_score": 2,
"selected": false,
"text": "<p>See <a href=\"https://stackoverflow.com/questions/6293893/how-to-force-files-to-open-in-browser-i... | 2015/07/10 | [
"https://webmasters.stackexchange.com/questions/83023",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/52157/"
] | My Firefox and Chrome usually open PDF files very nicely, without asking and within the browser window.
When clicking on a link to a PDF on our own website:
* Firefox asks if it should download them, to see it I need to open the download history.
* Chrome downloads it automatically, but here as well, opening the PDF ... | See [How to force files to open in browser instead of download (pdf)?](https://stackoverflow.com/questions/6293893/how-to-force-files-to-open-in-browser-instead-of-download-pdf) which has an answer from [ColinM](https://stackoverflow.com/users/187780/colinm) that tells you exactly what the headers should be:
>
> To i... |
83,027 | <p>I recently submitted to Google 17,000 links to businesses in my database. In the past I've only ever submitted 2 or 3 hundred. </p>
<p>The sitemap has been listed in Webmaster Tools for the past five days as: Submitted but indexed still remains at pending. Is this a normal thing?</p>
| [
{
"answer_id": 83024,
"author": "Stephen Ostermiller",
"author_id": 14543,
"author_profile": "https://webmasters.stackexchange.com/users/14543",
"pm_score": 2,
"selected": false,
"text": "<p>See <a href=\"https://stackoverflow.com/questions/6293893/how-to-force-files-to-open-in-browser-i... | 2015/07/10 | [
"https://webmasters.stackexchange.com/questions/83027",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/54030/"
] | I recently submitted to Google 17,000 links to businesses in my database. In the past I've only ever submitted 2 or 3 hundred.
The sitemap has been listed in Webmaster Tools for the past five days as: Submitted but indexed still remains at pending. Is this a normal thing? | See [How to force files to open in browser instead of download (pdf)?](https://stackoverflow.com/questions/6293893/how-to-force-files-to-open-in-browser-instead-of-download-pdf) which has an answer from [ColinM](https://stackoverflow.com/users/187780/colinm) that tells you exactly what the headers should be:
>
> To i... |
83,037 | <p>I am using a book plugin to showing some contents.</p>
<p>At first all of pages except first one are hidden. But my contents are in other pages that are hidden.</p>
<p>My solution is to write all of my contents again in a <code>p</code> tag and set a position style for it that users can't see it.</p>
<pre><code>s... | [
{
"answer_id": 83040,
"author": "Alexander Gounder",
"author_id": 53922,
"author_profile": "https://webmasters.stackexchange.com/users/53922",
"pm_score": 2,
"selected": false,
"text": "<p>If you try to show content to Google and not users, you'll be trouble because that's <a href=\"http... | 2015/07/10 | [
"https://webmasters.stackexchange.com/questions/83037",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/54039/"
] | I am using a book plugin to showing some contents.
At first all of pages except first one are hidden. But my contents are in other pages that are hidden.
My solution is to write all of my contents again in a `p` tag and set a position style for it that users can't see it.
```
style="position: absolute; right: -2000p... | I found a good discussion [here](https://stackoverflow.com/questions/11599933/googlebot-and-hidden-content-inside-dynamically-shown-js-based-tabs-within-a) and I like `Zachary Schuessler` answer. I tested my page with the tool mentioned and I saw google crawlers is seeing my hidden contents. |
83,041 | <p>Is there any good reason why using <code><base href="https://example.com/"/></code> causes <a href="https://developers.google.com/structured-data/testing-tool/" rel="nofollow">structured data testing tool (SDTT)</a> errors to fly from alternate links such as <code><link rel="alternate" href="this.html"/>... | [
{
"answer_id": 118529,
"author": "elbrant",
"author_id": 93942,
"author_profile": "https://webmasters.stackexchange.com/users/93942",
"pm_score": 0,
"selected": false,
"text": "<p>I see one glaring issue: the <code><!DOCTYPE html></code> tag is the same in both instances. The top e... | 2015/07/10 | [
"https://webmasters.stackexchange.com/questions/83041",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/38958/"
] | Is there any good reason why using `<base href="https://example.com/"/>` causes [structured data testing tool (SDTT)](https://developers.google.com/structured-data/testing-tool/) errors to fly from alternate links such as `<link rel="alternate" href="this.html"/>`?
Simplistic example, try running this through it...sho... | Unfortunately, your question didn’t include the errors you saw in the SDTT. Both snippets don’t show any warnings/errors now. So I’m not sure what exactly the issue was, but I want to clear something up in case there is a misunderstanding.
### Void elements
The [`base` element](https://www.w3.org/TR/2017/REC-html52-2... |
83,063 | <p>I set up a view level filter to remove ghost referral spam where the filter field ie <code>Campaign Source</code> and <code>Filter Pattern</code> is something like <code>www.event-tracking\.com|Get-Free-Traffic-Now\.com</code>. </p>
<p><strong>Problem:</strong> However it is unable to remove <code>www.event-trackin... | [
{
"answer_id": 83094,
"author": "Carlos Escalera Alonso",
"author_id": 49561,
"author_profile": "https://webmasters.stackexchange.com/users/49561",
"pm_score": 0,
"selected": false,
"text": "<p>Try escaping all the special characters in the expression</p>\n\n<pre><code>www\\.event\\-trac... | 2015/07/11 | [
"https://webmasters.stackexchange.com/questions/83063",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/24168/"
] | I set up a view level filter to remove ghost referral spam where the filter field ie `Campaign Source` and `Filter Pattern` is something like `www.event-tracking\.com|Get-Free-Traffic-Now\.com`.
**Problem:** However it is unable to remove `www.event-tracking.com` and `Get-Free-Traffic-Now.com` although this method re... | They use a **vulnerability in Google Analytics** to make **fake visits** so the only way to stop them for now, and until Google fix it, is to make a **filter in GA** since that is the source of the problem.
Blocking them in the `.htaccess` file **is pointless** since this kind of Spam never visits your site.
Check th... |
83,076 | <p>I'm using Adobe Muse to build websites and when the phone/tablet version of a site is created, canonical tags are automatically generated that point to the desktop version of the site. The canonical tags are non-editable and non-removable.</p>
<p>If I use .htaccess to remove the file extensions, will this have a ne... | [
{
"answer_id": 83094,
"author": "Carlos Escalera Alonso",
"author_id": 49561,
"author_profile": "https://webmasters.stackexchange.com/users/49561",
"pm_score": 0,
"selected": false,
"text": "<p>Try escaping all the special characters in the expression</p>\n\n<pre><code>www\\.event\\-trac... | 2015/07/12 | [
"https://webmasters.stackexchange.com/questions/83076",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/54074/"
] | I'm using Adobe Muse to build websites and when the phone/tablet version of a site is created, canonical tags are automatically generated that point to the desktop version of the site. The canonical tags are non-editable and non-removable.
If I use .htaccess to remove the file extensions, will this have a negative imp... | They use a **vulnerability in Google Analytics** to make **fake visits** so the only way to stop them for now, and until Google fix it, is to make a **filter in GA** since that is the source of the problem.
Blocking them in the `.htaccess` file **is pointless** since this kind of Spam never visits your site.
Check th... |
83,089 | <p>I was looking through a static site I created on my local server, in my web browser, and found a curious call to an external script</p>
<pre><code><script src="https://engowe.com/ad.php?u=e38324c56607a8891ad6496ae98e66a1&c=gpupdater&p=1"></script>
</code></pre>
<p>Placed just before the closing... | [
{
"answer_id": 83079,
"author": "closetnoc",
"author_id": 36029,
"author_profile": "https://webmasters.stackexchange.com/users/36029",
"pm_score": 0,
"selected": false,
"text": "<p>There appears to be two things going on. Google may/will change the SERP link if certain conditions occur: ... | 2015/07/12 | [
"https://webmasters.stackexchange.com/questions/83089",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/23622/"
] | I was looking through a static site I created on my local server, in my web browser, and found a curious call to an external script
```
<script src="https://engowe.com/ad.php?u=e38324c56607a8891ad6496ae98e66a1&c=gpupdater&p=1"></script>
```
Placed just before the closing of `</head>` which leads to [this code](https... | You should definitely go back to the original format. And no, Google won't penalise you for that - mistakes happen and based on what you said, you aren't trying to game the algorithm or spam Google.
In fact, if you check Webmaster Tools, you should start seeing duplicate title notifications and suggestions from Googl... |
83,120 | <p>I'm managing a website that has a US section and a UK & International section. Let's say these are divided as:</p>
<ul>
<li>website.com/</li>
<li>website.com/us</li>
</ul>
<p>The website has hreflang implemented correctly as follows:</p>
<pre><code><link rel="alternate" href="https://www.website.com/us/" h... | [
{
"answer_id": 83139,
"author": "Max",
"author_id": 23156,
"author_profile": "https://webmasters.stackexchange.com/users/23156",
"pm_score": 2,
"selected": false,
"text": "<ol>\n<li><p>Yes you can use the same URL for multiple locations, John Muller from Google replied in the comments to... | 2015/07/13 | [
"https://webmasters.stackexchange.com/questions/83120",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/53927/"
] | I'm managing a website that has a US section and a UK & International section. Let's say these are divided as:
* website.com/
* website.com/us
The website has hreflang implemented correctly as follows:
```
<link rel="alternate" href="https://www.website.com/us/" hreflang="en-US" />
<link rel="alternate" href="https:... | 1. Yes you can use the same URL for multiple locations, John Muller from Google replied in the comments to a similar question here: [How should I approach sitemap.xml, hreflang and regions for my website](https://webmasters.stackexchange.com/questions/78449/how-should-i-approach-sitemap-xml-hreflang-and-regions-for-my-... |
83,123 | <pre><code>W3C Validation Errors: "The navigation role is unnecessary for element nav.
<nav role="navigation">
</code></pre>
<p>I'm having hgroup nightmare flashbacks. </p>
<p>BTW, I still use hgroup - but as a CSS Class (.hgroup).</p>
| [
{
"answer_id": 83130,
"author": "albert",
"author_id": 12241,
"author_profile": "https://webmasters.stackexchange.com/users/12241",
"pm_score": 1,
"selected": false,
"text": "<p>No, ARIA Role attributes have not been deprecated in HTML5; The element name/role name redundancy is to provid... | 2015/07/13 | [
"https://webmasters.stackexchange.com/questions/83123",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/-1/"
] | ```
W3C Validation Errors: "The navigation role is unnecessary for element nav.
<nav role="navigation">
```
I'm having hgroup nightmare flashbacks.
BTW, I still use hgroup - but as a CSS Class (.hgroup). | A few things to **note**:
Use of ARIA attributes is not deprecated in HTML, but use on native elements which have built in roles/states and properties is discouraged now as their use in general serves no purpose.
In the case cited they are **warnings** *not errors*. It is an error if a MUST requirement is not adhered ... |
83,149 | <p>So I tested my site on <a href="https://gtmetrix.com" rel="nofollow">https://gtmetrix.com</a> and it said:</p>
<pre><code>The following image(s) are missing width and/or height attributes.
</code></pre>
<p>I'm confused by this, because the images itself already have the correct width and height. So why would I wan... | [
{
"answer_id": 83150,
"author": "user29671",
"author_id": 29671,
"author_profile": "https://webmasters.stackexchange.com/users/29671",
"pm_score": 3,
"selected": false,
"text": "<blockquote>\n <p>Adding the height and width attributes to your IMG SRC HTML tag allows\n the browser to kn... | 2015/07/14 | [
"https://webmasters.stackexchange.com/questions/83149",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/43487/"
] | So I tested my site on <https://gtmetrix.com> and it said:
```
The following image(s) are missing width and/or height attributes.
```
I'm confused by this, because the images itself already have the correct width and height. So why would I want to add these attributes? | >
> Adding the height and width attributes to your IMG SRC HTML tag allows
> the browser to know how much space to leave for an image. Without
> these values, the browser gives an image no space until the image is
> loaded, which means anything surrounding the image is adjusted after
> the image has loaded.
> <ht... |
83,224 | <p>I'm have the following <em>.htaccess</em>:</p>
<pre><code>RewriteEngine on
RewriteCond %{request_filename} -f
RewriteRule ^(.*) $1 [L]
RewriteRule ^(([^/]*)+)(/([^/]{0,32})(/.+)?)?$ index.php?a=$1&q=$3 [L]
</code></pre>
<p>My links look like this: <code>/index.php?a=track&id=3</code>. And even if I ca... | [
{
"answer_id": 83213,
"author": "William",
"author_id": 43487,
"author_profile": "https://webmasters.stackexchange.com/users/43487",
"pm_score": 2,
"selected": true,
"text": "<p>If you're on a shared host and haven't setup a subdomain but have setup a wildcard in your DNS so it points to... | 2015/07/17 | [
"https://webmasters.stackexchange.com/questions/83224",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/54195/"
] | I'm have the following *.htaccess*:
```
RewriteEngine on
RewriteCond %{request_filename} -f
RewriteRule ^(.*) $1 [L]
RewriteRule ^(([^/]*)+)(/([^/]{0,32})(/.+)?)?$ index.php?a=$1&q=$3 [L]
```
My links look like this: `/index.php?a=track&id=3`. And even if I can't modify the *.htaccess* file, I would like URLs l... | If you're on a shared host and haven't setup a subdomain but have setup a wildcard in your DNS so it points to your IP and it belongs to a server with multiple websites, it will point to the first VirtualHost in the Apache configuration. |
83,338 | <p><img src="https://i.stack.imgur.com/B8kwc.png" alt="enter image description here"></p>
<p>This is an extreme problem for our marketing department. While testing a new feature on our store, someone put in a test order for $7,520,000 which has completely skewed our ability to use Google Analytics. I know already that... | [
{
"answer_id": 83330,
"author": "Double Clicked",
"author_id": 15900,
"author_profile": "https://webmasters.stackexchange.com/users/15900",
"pm_score": 1,
"selected": false,
"text": "<p>Spammy looking visits are unlikely to be due to the code on your site. A lot of website are affected b... | 2015/07/21 | [
"https://webmasters.stackexchange.com/questions/83338",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/54293/"
] | 
This is an extreme problem for our marketing department. While testing a new feature on our store, someone put in a test order for $7,520,000 which has completely skewed our ability to use Google Analytics. I know already that there's a "method" for ... | Spammy looking visits are unlikely to be due to the code on your site. A lot of website are affected by this spam traffic, usually lasting less than 10 seconds with a bounce rate around 100%.
These visits are often a traffic generation strategy to trick webmasters to look at the referral source for the visits, usuall... |
83,406 | <p>I have a website which has separate front pages for some countries.</p>
<p>If you visit <code>www.example.com</code> it will redirect you to either <code>www.example.com/uk</code> or <code>www.example.com/ie</code> or <code>www.example.com/global</code>.</p>
<p>This is OK, and incidentally is how The Guardian news... | [
{
"answer_id": 83410,
"author": "Mike -- No longer here",
"author_id": 46807,
"author_profile": "https://webmasters.stackexchange.com/users/46807",
"pm_score": 0,
"selected": false,
"text": "<blockquote>\n <p>If you visit www.example.com it will redirect you to either www.example.com/uk... | 2015/07/23 | [
"https://webmasters.stackexchange.com/questions/83406",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/17946/"
] | I have a website which has separate front pages for some countries.
If you visit `www.example.com` it will redirect you to either `www.example.com/uk` or `www.example.com/ie` or `www.example.com/global`.
This is OK, and incidentally is how The Guardian newspaper works. But I was thinking it might be bad for SEO for t... | Your question has to dimension to take into consideration.
1. handling multiple languages
2. handling duplicates
**Handling multiple languages**
Organizing language versions in subdirectories is a good strategy. For me it is best practise.
If you are able to identify which language/country your user is looking for r... |
83,433 | <p>I am switching CMS and have about 600 URLs that need to get redirected to the new scheme. The URL on the old site looks like the following on my test server:</p>
<pre><code>www.example.us/?p=100&option=com_wordpress&Itemid=619
</code></pre>
<p>The new URL scheme will exist as:</p>
<pre><code>www.example.u... | [
{
"answer_id": 83436,
"author": "MrWhite",
"author_id": 1243,
"author_profile": "https://webmasters.stackexchange.com/users/1243",
"pm_score": 3,
"selected": true,
"text": "<p>This assumes that <code>p</code>, <code>id</code> or <code>catid</code> always appears at the start of the query... | 2015/07/24 | [
"https://webmasters.stackexchange.com/questions/83433",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/54297/"
] | I am switching CMS and have about 600 URLs that need to get redirected to the new scheme. The URL on the old site looks like the following on my test server:
```
www.example.us/?p=100&option=com_wordpress&Itemid=619
```
The new URL scheme will exist as:
```
www.example.us/blog.php?p=100
```
Some old URLs use p=, ... | This assumes that `p`, `id` or `catid` always appears at the start of the query string, and that the value of this parameter is the "file" basename in the new URL, as per your code examples.
```
RewriteEngine On
RewriteCond %{QUERY_STRING} ^(p|id|catid)=(\d+)
RewriteRule ^$ /%2.php? [R=301,L]
```
The `^$` pattern on... |
83,442 | <p>I would like to purchase a basic SSL certificate, which allows me to secure a single domain (as opposed to a wildcard certificate for multiple subdomains). I was going to apply this to mail.example.com, but would I be able to simply use example.com and have the website and email use the same certificate?
Do I simply... | [
{
"answer_id": 83451,
"author": "Steve",
"author_id": 16250,
"author_profile": "https://webmasters.stackexchange.com/users/16250",
"pm_score": -1,
"selected": false,
"text": "<p>To answer your first question \"<em>would I be able to simply use example.com and have the website and email u... | 2015/07/25 | [
"https://webmasters.stackexchange.com/questions/83442",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/14071/"
] | I would like to purchase a basic SSL certificate, which allows me to secure a single domain (as opposed to a wildcard certificate for multiple subdomains). I was going to apply this to mail.example.com, but would I be able to simply use example.com and have the website and email use the same certificate?
Do I simply ch... | you are right.
1.buy a normal ssl certificate for 'yourdomain.com'
2.create a mx record without mail. suffix
```
yourdomain.com. 800 IN MX 10 yourdomain.com.
```
MX domain on the right should be equal to ssl certificate domain. That's what program checks when sending emails. It helps your mails not ending in Ju... |
83,457 | <p>I've created a reverse proxy for webmin through nginx to run webmin at [site domain]/webmin instead of port 10000 ([site domain]:10000).</p>
<p>When I go to [site domain]/webmin, the login page shows up as you'd expect-- but when I try to login, the login page simply reloads (no error message, no success). The logi... | [
{
"answer_id": 83461,
"author": "Mike -- No longer here",
"author_id": 46807,
"author_profile": "https://webmasters.stackexchange.com/users/46807",
"pm_score": 0,
"selected": false,
"text": "<p>It sounds like your web browser is naturally caching the problematic login pages and/or the he... | 2015/07/26 | [
"https://webmasters.stackexchange.com/questions/83457",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/54407/"
] | I've created a reverse proxy for webmin through nginx to run webmin at [site domain]/webmin instead of port 10000 ([site domain]:10000).
When I go to [site domain]/webmin, the login page shows up as you'd expect-- but when I try to login, the login page simply reloads (no error message, no success). The login page has... | Try this solution, it works for me well:
`/etc/webmin/config`:
```
webprefix=/webmin
webprefixnoredir=1
relative_redir=0 # pay attention on this
referer=www.examle.com
```
`/etc/webmin/miniserv.conf`:
```
cookiepath=/webmin
```
nginx config:
```
location /webmin/ {
proxy_pass http://localhost:10000/;
... |
83,459 | <p>I received an email from Google saying my site has some mobile usability
issues. The email said the following:</p>
<blockquote>
<p>We’ve found critical mobile usability issues in pages on my website.
Mobile usability errors can severely affect the user experience of
your site. Pages with mobile usability issu... | [
{
"answer_id": 83461,
"author": "Mike -- No longer here",
"author_id": 46807,
"author_profile": "https://webmasters.stackexchange.com/users/46807",
"pm_score": 0,
"selected": false,
"text": "<p>It sounds like your web browser is naturally caching the problematic login pages and/or the he... | 2015/07/26 | [
"https://webmasters.stackexchange.com/questions/83459",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/54409/"
] | I received an email from Google saying my site has some mobile usability
issues. The email said the following:
>
> We’ve found critical mobile usability issues in pages on my website.
> Mobile usability errors can severely affect the user experience of
> your site. Pages with mobile usability issues may be ranked l... | Try this solution, it works for me well:
`/etc/webmin/config`:
```
webprefix=/webmin
webprefixnoredir=1
relative_redir=0 # pay attention on this
referer=www.examle.com
```
`/etc/webmin/miniserv.conf`:
```
cookiepath=/webmin
```
nginx config:
```
location /webmin/ {
proxy_pass http://localhost:10000/;
... |
83,498 | <p>We just got a note from CloudFlare that we got reported for phishing. The link they provided was (domain name removed):</p>
<pre><code>/wp-content/plugins/scure-bank/fea7b6cabec2fd724dd2d1b4ca7e898d/thankyou.php
</code></pre>
<p>The page that is shows is:</p>
<p><a href="https://i.stack.imgur.com/wg922.png" rel="... | [
{
"answer_id": 83499,
"author": "closetnoc",
"author_id": 36029,
"author_profile": "https://webmasters.stackexchange.com/users/36029",
"pm_score": 3,
"selected": false,
"text": "<p>Wordpress is the single most hacked software on the planet and has been for a long time. It is not that the... | 2015/07/27 | [
"https://webmasters.stackexchange.com/questions/83498",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/23746/"
] | We just got a note from CloudFlare that we got reported for phishing. The link they provided was (domain name removed):
```
/wp-content/plugins/scure-bank/fea7b6cabec2fd724dd2d1b4ca7e898d/thankyou.php
```
The page that is shows is:
[](https://i.sta... | Wordpress is the single most hacked software on the planet and has been for a long time. It is not that the Wordpress programmers are doing poor work, quite the opposite. With so many plug-ins and themes, Wordpress, even with vulnerabilities within it's own code in the past, remains the most vulnerable software availab... |
83,517 | <p>I am setting a Magento multilanguage website with subfolder as suggested by many SEO and Google guideline.</p>
<p>For example:</p>
<pre><code>example.com/it (Italian default)
example.com/en (English)
example.com/fr (French)
example.com/de (German)
example.com (what to do with this?)
</code></pre>
<p>Magento m... | [
{
"answer_id": 83550,
"author": "Ankush Mahajan",
"author_id": 50214,
"author_profile": "https://webmasters.stackexchange.com/users/50214",
"pm_score": 0,
"selected": false,
"text": "<p>If your default language is /it, then make example.com/it as your default home page with italic conten... | 2015/07/28 | [
"https://webmasters.stackexchange.com/questions/83517",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/54456/"
] | I am setting a Magento multilanguage website with subfolder as suggested by many SEO and Google guideline.
For example:
```
example.com/it (Italian default)
example.com/en (English)
example.com/fr (French)
example.com/de (German)
example.com (what to do with this?)
```
Magento makes it easy using "Add Store Cod... | You have several possibilities:
### Choose one language
Choose one language and redirect. If you have a "main" language then this might be the best option.
### Automatically detect the language
Use the Accept-Language header that the browser sends and automatically redirect appropriately. Google does this for inter... |
83,575 | <p>I manage several websites, one of which is an e-commerce site with a lot of images. At the top of some product category pages, there are image links to specific products (think image banners).</p>
<p>I am curious how others handle images as links and what SEO considerations you make when doing so? Specifically, the... | [
{
"answer_id": 83578,
"author": "closetnoc",
"author_id": 36029,
"author_profile": "https://webmasters.stackexchange.com/users/36029",
"pm_score": 4,
"selected": true,
"text": "<p>From the very beginning, Google primarily utilized three perspectives when using semantics and ranking: one,... | 2015/07/30 | [
"https://webmasters.stackexchange.com/questions/83575",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/54518/"
] | I manage several websites, one of which is an e-commerce site with a lot of images. At the top of some product category pages, there are image links to specific products (think image banners).
I am curious how others handle images as links and what SEO considerations you make when doing so? Specifically, there are 2 w... | From the very beginning, Google primarily utilized three perspectives when using semantics and ranking: one, link text and value to the target page; two, the title tag of the target page; and three, the content itself. One of the interesting research results the project found was that performing a search against the ti... |
83,581 | <p>I've got an m4a file that loads properly in all browsers, except for Internet Explorer (no surprise). The error is: "Invalid source".</p>
<p>My HTML5 code looks like this:</p>
<pre><code><audio controls>
<source src="../music/music.m4a" type="audio/aac">
Your browser does not support the audio elem... | [
{
"answer_id": 83579,
"author": "nathangiesbrecht",
"author_id": 15209,
"author_profile": "https://webmasters.stackexchange.com/users/15209",
"pm_score": 0,
"selected": false,
"text": "<ol>\n<li><p>Which ever page is referenced as the canonical is the one that will show in SERP's. The ot... | 2015/07/30 | [
"https://webmasters.stackexchange.com/questions/83581",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/43487/"
] | I've got an m4a file that loads properly in all browsers, except for Internet Explorer (no surprise). The error is: "Invalid source".
My HTML5 code looks like this:
```
<audio controls>
<source src="../music/music.m4a" type="audio/aac">
Your browser does not support the audio element.
</audio>
```
I have also t... | Duplicate content is no longer determined in a linear fashion. Today, duplicate content is determined using a semantic scoring method so that near duplicate content will still be seen as duplicate. This is because spammers would simply rearrange the content to avoid content as being flagged as duplicate.
As well, n-gr... |
83,595 | <p>I try to create rich snippets for my blog posts, and after I write my articles, add images, I fill in all the data in the Rich Snippet plugin. Then I do Markup through the Webmaster Tools. (So all the data is there, Title, Author, Image etc)</p>
<p><strong>I have a question here:</strong> When I am done with the ma... | [
{
"answer_id": 83599,
"author": "Seb",
"author_id": 53376,
"author_profile": "https://webmasters.stackexchange.com/users/53376",
"pm_score": 0,
"selected": false,
"text": "<h1>The Errors</h1>\n<p>Let's have a look at the error messages.</p>\n<p><strong>1. Article Mark up</strong></p>\n<p... | 2015/07/31 | [
"https://webmasters.stackexchange.com/questions/83595",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/54540/"
] | I try to create rich snippets for my blog posts, and after I write my articles, add images, I fill in all the data in the Rich Snippet plugin. Then I do Markup through the Webmaster Tools. (So all the data is there, Title, Author, Image etc)
**I have a question here:** When I am done with the marking, I export the HTM... | It's actually pretty straightforward - the breadcrumbs error is because you marked up the last (current) element as breadcrumb. However the requirement is to be link also, as the previous breadcrumbs. You have two options:
1). Add the url property to the last element too. It will be link to the article itself, will pa... |
83,633 | <p>I added a file mysite.conf to my apache sites-available folder with the correct settings, then enabled it and reloaded apache, and it isn't working. I want to disable the default site config as defined in 000-default.conf to see if that fixes the problem.</p>
<p>To achieve this I ran:</p>
<pre><code>cd /etc/apache... | [
{
"answer_id": 83637,
"author": "closetnoc",
"author_id": 36029,
"author_profile": "https://webmasters.stackexchange.com/users/36029",
"pm_score": 4,
"selected": true,
"text": "<p>Just as a matter of explanation for future users.</p>\n\n<p>Your 000-default.conf file is a catch-all site a... | 2015/08/02 | [
"https://webmasters.stackexchange.com/questions/83633",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/11258/"
] | I added a file mysite.conf to my apache sites-available folder with the correct settings, then enabled it and reloaded apache, and it isn't working. I want to disable the default site config as defined in 000-default.conf to see if that fixes the problem.
To achieve this I ran:
```
cd /etc/apache2/sites-available/
su... | Just as a matter of explanation for future users.
Your 000-default.conf file is a catch-all site and should be left alone. It is good for security. It can be frustrating when a site configuration does not work and the default site is served. I get it. Still, leave it alone. Many people are unaware of why the default s... |
83,659 | <p>I've been reading the Terms of Service for different domain name registrars, and so far I see this worrisome indemnification theme in all of them:</p>
<p>They all seem to leave open the right for the Registrar to not be accountable if they themselves screw something up or are negligent regarding my registration. L... | [
{
"answer_id": 83660,
"author": "closetnoc",
"author_id": 36029,
"author_profile": "https://webmasters.stackexchange.com/users/36029",
"pm_score": 3,
"selected": true,
"text": "<p>This is not in case they screw something up, it indemnifies them against law suits and other claims that may... | 2015/08/03 | [
"https://webmasters.stackexchange.com/questions/83659",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/44891/"
] | I've been reading the Terms of Service for different domain name registrars, and so far I see this worrisome indemnification theme in all of them:
They all seem to leave open the right for the Registrar to not be accountable if they themselves screw something up or are negligent regarding my registration. Like if my r... | This is not in case they screw something up, it indemnifies them against law suits and other claims that may be filed against the domain name registrant (you). This is normal stuff. Any agreement for anything will indemnify the service company from anything you might do. They are not interested in secondary claims, joi... |
83,662 | <p>In my website, I have many files such <code>contact.php</code>, <code>about.html</code> etc. Right now I can call those file in my site by two methods. </p>
<p><strong>Method 1</strong>:</p>
<pre class="lang-html prettyprint-override"><code><a href="http://www.example.com/contact.php">Contact</a>
</... | [
{
"answer_id": 83663,
"author": "closetnoc",
"author_id": 36029,
"author_profile": "https://webmasters.stackexchange.com/users/36029",
"pm_score": 1,
"selected": false,
"text": "<p>Neither matter for SEO at all when you consider relative or full path URLs. </p>\n\n<p>What matters is the ... | 2015/08/03 | [
"https://webmasters.stackexchange.com/questions/83662",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/32106/"
] | In my website, I have many files such `contact.php`, `about.html` etc. Right now I can call those file in my site by two methods.
**Method 1**:
```html
<a href="http://www.example.com/contact.php">Contact</a>
```
**Method 2**:
```html
<a href="contact.php">Contact</a>
```
Which is most preferable in point of ... | There are pros and cons for using both of the options. In point of SEO however it doesn't matter.
Using relative links (Method 2 in your question) is good if you need to change the domain in later point, as it will keep your html files fully functional (if you keep the same structure of course). The con of using this ... |
83,760 | <p>I have a problem with htpasswd.</p>
<p>I get an error in error.log apache2 </p>
<blockquote>
<p>user admin: authentication failure for "/": Password Mismatch</p>
</blockquote>
<p>Content of my htaccess file:</p>
<pre><code># Set Access Restrictions
AuthType Basic
AuthName "admin"
AuthUserFile ".htpasswd"
requ... | [
{
"answer_id": 83764,
"author": "Jordan Neustrom",
"author_id": 54676,
"author_profile": "https://webmasters.stackexchange.com/users/54676",
"pm_score": 1,
"selected": false,
"text": "<p>Make sure that you are including the entire path for <code>AuthUserFile</code>. I would suggest that ... | 2015/08/05 | [
"https://webmasters.stackexchange.com/questions/83760",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/52590/"
] | I have a problem with htpasswd.
I get an error in error.log apache2
>
> user admin: authentication failure for "/": Password Mismatch
>
>
>
Content of my htaccess file:
```
# Set Access Restrictions
AuthType Basic
AuthName "admin"
AuthUserFile ".htpasswd"
require valid-user
```
and content of my htpasswd
`... | From your comment I take it that you just created a plain text password. This will not work for Apache, as Apache expects the password in .htpasswd to be hashed by the MD5 algorithm.
There are several tools available online for generating .htpasswd files, but the easiest might be the one that comes with Apache, it's ... |
83,791 | <p>I had a separate mobile site uploaded so as to make Google happy. My big problem is that I had a desktop page that was once showing in the top 3 results on Google, and now it and its mobile alternative are showing up on the 3rd page or worse.</p>
<p>My structure is as follows. The desktop file is www.myserver.com/p... | [
{
"answer_id": 83796,
"author": "nathangiesbrecht",
"author_id": 15209,
"author_profile": "https://webmasters.stackexchange.com/users/15209",
"pm_score": 2,
"selected": false,
"text": "<p>1) Your PHP redirect is great. <a href=\"https://developers.google.com/webmasters/mobile-sites/mobil... | 2015/08/06 | [
"https://webmasters.stackexchange.com/questions/83791",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/54720/"
] | I had a separate mobile site uploaded so as to make Google happy. My big problem is that I had a desktop page that was once showing in the top 3 results on Google, and now it and its mobile alternative are showing up on the 3rd page or worse.
My structure is as follows. The desktop file is www.myserver.com/pellet-calc... | 1) Your PHP redirect is great. [Google's own documentation](https://developers.google.com/webmasters/mobile-sites/mobile-seo/configurations/separate-urls) recommends a 302 redirect, which is what PHP's `header('Location:')` function defaults to.
2) You could bump the max-width parameter for your media queries up to 73... |
83,808 | <p>I need to add a domain/IP record to my hosts file on a CentOS box running WHM/cPanel, so that a domain which has no public DNS is routed to the correct IP address.</p>
<p>I've done this on my macbook but I'm unsure of the process on cPanel. </p>
<p>When I nano <code>/etc/hosts</code> I see the following:</p>
<pr... | [
{
"answer_id": 83820,
"author": "nathangiesbrecht",
"author_id": 15209,
"author_profile": "https://webmasters.stackexchange.com/users/15209",
"pm_score": 0,
"selected": false,
"text": "<p>Yes, you can safely add entries to the hosts file. The only thing you might need to consider is that... | 2015/08/07 | [
"https://webmasters.stackexchange.com/questions/83808",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/54741/"
] | I need to add a domain/IP record to my hosts file on a CentOS box running WHM/cPanel, so that a domain which has no public DNS is routed to the correct IP address.
I've done this on my macbook but I'm unsure of the process on cPanel.
When I nano `/etc/hosts` I see the following:
```
# Automatically generated by OnA... | It is perfectly acceptable to update `/etc/hosts` in cPanel/WHM.
As a rule of thumb, incase of an update which may change the file (unlikely, cPanel doesn't tend to touch it after the initial install phase) run this command to take a backup.
```
# cp /etc/hosts /etc/hosts.bak
```
This will copy your hosts file to a... |
83,879 | <p>As per my Google Analytics data, most people on my website come from: </p>
<pre><code>m.facebook.com / referral
</code></pre>
<p>Are these people coming to the website from the Facebook iOS/Android app or m.facebook.com or both?</p>
| [
{
"answer_id": 83885,
"author": "Shawn",
"author_id": 54813,
"author_profile": "https://webmasters.stackexchange.com/users/54813",
"pm_score": 0,
"selected": false,
"text": "<p>for alexa</p>\n\n<p>firstly you need to install alexa toolbar on the browser that yuo frequently use\nand then ... | 2015/08/10 | [
"https://webmasters.stackexchange.com/questions/83879",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/54819/"
] | As per my Google Analytics data, most people on my website come from:
```
m.facebook.com / referral
```
Are these people coming to the website from the Facebook iOS/Android app or m.facebook.com or both? | Alexa, SimilarWeb, ContextWeb, Compete and the like are quite literally *useless* if the site in question is doing less than 250k uniques per month.
On 2 of the sites I own, which I can see in Analytics are doing 100k-150k uniques per month, these third party tools say I'm doing anywhere from 25k-250k uniques per mont... |
83,884 | <p>I get tons of url with "undefined" added at the end of url, consisting about 20% of my pageview. I tried to check the troubling script source and can't find it. Tried some solutions but none of them are working. Lastly now i'm trying to send url with "undefined" string to redirect 204 using htaccess</p>
<p>is this ... | [
{
"answer_id": 83890,
"author": "MrWhite",
"author_id": 1243,
"author_profile": "https://webmasters.stackexchange.com/users/1243",
"pm_score": 4,
"selected": true,
"text": "<p>In order to match \"undefined\" at the <em>end</em> of the URL-path you need the regex pattern <code>undefined$<... | 2015/08/10 | [
"https://webmasters.stackexchange.com/questions/83884",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/54822/"
] | I get tons of url with "undefined" added at the end of url, consisting about 20% of my pageview. I tried to check the troubling script source and can't find it. Tried some solutions but none of them are working. Lastly now i'm trying to send url with "undefined" string to redirect 204 using htaccess
is this correct?
... | In order to match "undefined" at the *end* of the URL-path you need the regex pattern `undefined$`. The pattern `^undefined$` (which you've used in your question) matches the exact URL "undefined", which is never going to match, unless the request is for `http://example.com/undefined`.
This directive should go at the ... |
83,922 | <p>I have the following three domains:</p>
<ol>
<li><code>example1.com</code> (Disallow) </li>
<li><code>example2.com</code> (Disallow) </li>
<li><code>example3.com</code> (allow) </li>
</ol>
<p>All domain points to same folder which is <code>public_html</code>. </p>
<p>How to disallow search engines from crawling... | [
{
"answer_id": 83924,
"author": "MrWhite",
"author_id": 1243,
"author_profile": "https://webmasters.stackexchange.com/users/1243",
"pm_score": 3,
"selected": false,
"text": "<p>You need to conditionally serve a different robots.txt file based on which domain/host has been accessed. On Ap... | 2015/08/12 | [
"https://webmasters.stackexchange.com/questions/83922",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/54863/"
] | I have the following three domains:
1. `example1.com` (Disallow)
2. `example2.com` (Disallow)
3. `example3.com` (allow)
All domain points to same folder which is `public_html`.
How to disallow search engines from crawling pages on the first two domains? | You need to conditionally serve a different robots.txt file based on which domain/host has been accessed. On Apache you can do this in .htaccess:
```
RewriteEngine On
RewriteCond %{HTTP_HOST} ^(example1\.com|example2\.com)$
RewriteRule ^robots\.txt$ /robots-disallow.txt [L]
```
This is specific to your example, wher... |
83,945 | <p>If I test my website with Google PageSpeed, I get a lower score if I test mydomain.com than if I test www.mydomain.com.</p>
<p>In the first case, Google complains my server took too much time to respond.</p>
<p>I use page/database caching on the server to speed up the site and basically pretty much all the wordpre... | [
{
"answer_id": 83947,
"author": "Mike -- No longer here",
"author_id": 46807,
"author_profile": "https://webmasters.stackexchange.com/users/46807",
"pm_score": 3,
"selected": true,
"text": "<p>You're much better off doing a redirect from non-www to www. There is no need for canonical and... | 2015/08/12 | [
"https://webmasters.stackexchange.com/questions/83945",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/43482/"
] | If I test my website with Google PageSpeed, I get a lower score if I test mydomain.com than if I test www.mydomain.com.
In the first case, Google complains my server took too much time to respond.
I use page/database caching on the server to speed up the site and basically pretty much all the wordpress website is sto... | You're much better off doing a redirect from non-www to www. There is no need for canonical and no need for Javascript.
If you have apache with mod\_rewrite installed, then in the main apache configuration file, you can add these lines:
```
RewriteEngine On
RewriteCond %{HTTP_HOST} ^example\.com$ [NC]
RewriteRule ^(.... |
83,972 | <p>I have a product box that is encapsulated in a hyperlink so that the entire box is clickable. Within this box I have text about the product (e.g. product name, price, etc). However, as the text is within the link box, it is not selectable by hand. Do crawlers see this text when they view the site, or should it be ou... | [
{
"answer_id": 96049,
"author": "Chris Rutherfurd",
"author_id": 60702,
"author_profile": "https://webmasters.stackexchange.com/users/60702",
"pm_score": 1,
"selected": false,
"text": "<p>The crawler will still see the content encapsulated within the link and index it appropriately as it... | 2015/08/13 | [
"https://webmasters.stackexchange.com/questions/83972",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/52040/"
] | I have a product box that is encapsulated in a hyperlink so that the entire box is clickable. Within this box I have text about the product (e.g. product name, price, etc). However, as the text is within the link box, it is not selectable by hand. Do crawlers see this text when they view the site, or should it be outsi... | The crawler will still see the content encapsulated within the link and index it appropriately as it is valid markup and is standards compliant. As a side note there is no difference between indexing a div with text encapsulated within a link and a simple word or a short number of words encapsulated within a div as the... |
84,033 | <p>After moving vbulletin to another server some characters like " ' got converted to characters like †for example: don't appears as don’t </p>
<p>New posts don't seem to use these weird characters.</p>
<p>Can you recommend what way can I take to replace these weird characters with the correct ones? I.e Should I... | [
{
"answer_id": 84040,
"author": "Tim Fountain",
"author_id": 1426,
"author_profile": "https://webmasters.stackexchange.com/users/1426",
"pm_score": 1,
"selected": false,
"text": "<p>Your new server is sending back a Content-Type header that gives the charset as <strong>ISO-8859-1</strong... | 2015/08/14 | [
"https://webmasters.stackexchange.com/questions/84033",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/54968/"
] | After moving vbulletin to another server some characters like " ' got converted to characters like †for example: don't appears as don’t
New posts don't seem to use these weird characters.
Can you recommend what way can I take to replace these weird characters with the correct ones? I.e Should I write a SQL query... | Your new server is sending back a Content-Type header that gives the charset as **ISO-8859-1**, here's a sample response:
```
Cache-Control:private
Connection:Keep-Alive
Content-Encoding:gzip
Content-Length:13693
Content-Type:text/html; charset=ISO-8859-1
Date:Fri, 14 Aug 2015 17:49:07 GMT
Keep-Alive:timeout=5, max=10... |
84,042 | <p>I received an alert from Google Webmaster Tools a couple weeks ago that stated:</p>
<p>"Google systems have recently detected an issue with your homepage that affects how well our algorithms render and index your content. Specifically, Googlebot cannot access your JavaScript and/or CSS files because of restrictions... | [
{
"answer_id": 100218,
"author": "Chris Rutherfurd",
"author_id": 60702,
"author_profile": "https://webmasters.stackexchange.com/users/60702",
"pm_score": 1,
"selected": false,
"text": "<p>When this sort of issue arises it is important to note that search engines don't crawl your website... | 2015/08/14 | [
"https://webmasters.stackexchange.com/questions/84042",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/41751/"
] | I received an alert from Google Webmaster Tools a couple weeks ago that stated:
"Google systems have recently detected an issue with your homepage that affects how well our algorithms render and index your content. Specifically, Googlebot cannot access your JavaScript and/or CSS files because of restrictions in your r... | When this sort of issue arises it is important to note that search engines don't crawl your website in real time. Depending on the size and what the search engine classes as the importance of your site your site may be re-indexed anywhere from every few hours (for extremely large sites and very high value sites such as... |
84,055 | <p>For a very long time I've been trying to make use of microformats, microdata, and general markup enhancements for SEO purposes. Lately structured data is really starting to "take" and I would like to unquestionably do it right this time. </p>
<p>I'm creating a page that displays an artist's work (digital art) and i... | [
{
"answer_id": 84064,
"author": "coolshatul",
"author_id": 38385,
"author_profile": "https://webmasters.stackexchange.com/users/38385",
"pm_score": 2,
"selected": false,
"text": "<p>May be this example will help you</p>\n\n<pre><code> <div itemscope itemtype=\"http://schema.org/Visu... | 2015/08/15 | [
"https://webmasters.stackexchange.com/questions/84055",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/43738/"
] | For a very long time I've been trying to make use of microformats, microdata, and general markup enhancements for SEO purposes. Lately structured data is really starting to "take" and I would like to unquestionably do it right this time.
I'm creating a page that displays an artist's work (digital art) and it contains... | May be this example will help you
```
<div itemscope itemtype="http://schema.org/VisualArtwork">
<link itemprop="sameAs" href="http://rdf.freebase.com/rdf/m.0439_q" />
<h1 itemprop="name" lang="fr">La trahison des images </h1>
<p>
A <span itemprop="artform">painting</span> also known as
... |
84,058 | <p>In our Wiki Installation (internal) we often post links. For the first time I have now this message: </p>
<pre><code>The text you wanted to save was blocked by the spam filter.
This is probably caused by a link to a blacklisted external site.
The following text is what triggered our spam filter: uservoice.com
</co... | [
{
"answer_id": 84064,
"author": "coolshatul",
"author_id": 38385,
"author_profile": "https://webmasters.stackexchange.com/users/38385",
"pm_score": 2,
"selected": false,
"text": "<p>May be this example will help you</p>\n\n<pre><code> <div itemscope itemtype=\"http://schema.org/Visu... | 2015/08/14 | [
"https://webmasters.stackexchange.com/questions/84058",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/38661/"
] | In our Wiki Installation (internal) we often post links. For the first time I have now this message:
```
The text you wanted to save was blocked by the spam filter.
This is probably caused by a link to a blacklisted external site.
The following text is what triggered our spam filter: uservoice.com
```
I mean userv... | May be this example will help you
```
<div itemscope itemtype="http://schema.org/VisualArtwork">
<link itemprop="sameAs" href="http://rdf.freebase.com/rdf/m.0439_q" />
<h1 itemprop="name" lang="fr">La trahison des images </h1>
<p>
A <span itemprop="artform">painting</span> also known as
... |
84,071 | <p>I want a specific URL to not contribute pageviews Google Analytics default reports, but I don't want to use a filter because as I understand it, once I filter out the data, It's lost forever and I can't consult it in the future.</p>
<p>Applying segmentation is no good because it filters out entire sessions or users... | [
{
"answer_id": 84064,
"author": "coolshatul",
"author_id": 38385,
"author_profile": "https://webmasters.stackexchange.com/users/38385",
"pm_score": 2,
"selected": false,
"text": "<p>May be this example will help you</p>\n\n<pre><code> <div itemscope itemtype=\"http://schema.org/Visu... | 2015/08/15 | [
"https://webmasters.stackexchange.com/questions/84071",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/54993/"
] | I want a specific URL to not contribute pageviews Google Analytics default reports, but I don't want to use a filter because as I understand it, once I filter out the data, It's lost forever and I can't consult it in the future.
Applying segmentation is no good because it filters out entire sessions or users who visit... | May be this example will help you
```
<div itemscope itemtype="http://schema.org/VisualArtwork">
<link itemprop="sameAs" href="http://rdf.freebase.com/rdf/m.0439_q" />
<h1 itemprop="name" lang="fr">La trahison des images </h1>
<p>
A <span itemprop="artform">painting</span> also known as
... |
84,091 | <p>When you don't have an <code>index.html</code>, most web servers will show a list of files in the directory.</p>
<p>Can I get preferably lighttpd (but Apache as a backup) to do show a file's MD5/SHA1 (along with standard file size, date) with no (or minimal) other programs involved? If so, how? (Debian on a very ver... | [
{
"answer_id": 84093,
"author": "Simon Hayter",
"author_id": 20604,
"author_profile": "https://webmasters.stackexchange.com/users/20604",
"pm_score": 3,
"selected": true,
"text": "<p>Apache and Lighthttpd both have a directory listing mod that you need to enable, often by default these a... | 2015/08/16 | [
"https://webmasters.stackexchange.com/questions/84091",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/55016/"
] | When you don't have an `index.html`, most web servers will show a list of files in the directory.
Can I get preferably lighttpd (but Apache as a backup) to do show a file's MD5/SHA1 (along with standard file size, date) with no (or minimal) other programs involved? If so, how? (Debian on a very very low RAM VPS is the... | Apache and Lighthttpd both have a directory listing mod that you need to enable, often by default these are disabled for security reasons. You can enable indexing by doing the following:
*[Lighthttp](http://redmine.lighttpd.net/projects/1/wiki/Docs_ModDirlisting)*
To enable directory listings globally:
```
dir-listi... |
84,125 | <p>I use apache 2.4.10, and I can't use personal error pages.</p>
<p>I changed <code>/etc/apache2/conf-available/localized-error-pages.conf</code> and added :</p>
<pre><code>ErrorDocument 404 /404.html
</code></pre>
<p>and created the file <code>/var/www/404.html</code> with the short string <code>404test</code> ins... | [
{
"answer_id": 84160,
"author": "William Harvey",
"author_id": 54969,
"author_profile": "https://webmasters.stackexchange.com/users/54969",
"pm_score": 1,
"selected": false,
"text": "<p>Roll back your changes in <code>/etc/apache2/conf-available/localized-error-pages.conf</code>, then us... | 2015/08/17 | [
"https://webmasters.stackexchange.com/questions/84125",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/55045/"
] | I use apache 2.4.10, and I can't use personal error pages.
I changed `/etc/apache2/conf-available/localized-error-pages.conf` and added :
```
ErrorDocument 404 /404.html
```
and created the file `/var/www/404.html` with the short string `404test` inside.
However, when I relaunch apache, I get
>
> Not Found
>
>... | Roll back your changes in `/etc/apache2/conf-available/localized-error-pages.conf`, then use `.htaccess` to create a custom 404 page with the following:
```
ErrorDocument 404 /404.html
```
If that fails then try adding the full path to the `404.html` document. |
84,196 | <p>So I have a blog on Tumblr I use with my own domain name. I started it to try out how can I SEO it on my own money so I can learn new stuff. So far so good. </p>
<p>As I started to use HTML edit mode on Tumblr I noticed that it does not use UTF8 to my best understanding. </p>
<p>In Rich Text mode I write: </p>
<p... | [
{
"answer_id": 84197,
"author": "Stephen Ostermiller",
"author_id": 14543,
"author_profile": "https://webmasters.stackexchange.com/users/14543",
"pm_score": 2,
"selected": false,
"text": "<p>Tumblr does use UTF-8. Here is a Chinese blog on Tumblr. They need UTF-8 to display the Chine... | 2015/08/19 | [
"https://webmasters.stackexchange.com/questions/84196",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/51958/"
] | So I have a blog on Tumblr I use with my own domain name. I started it to try out how can I SEO it on my own money so I can learn new stuff. So far so good.
As I started to use HTML edit mode on Tumblr I noticed that it does not use UTF8 to my best understanding.
In Rich Text mode I write:
```
"méltán"
```
afte... | (I would have written this as a comment but I still don't have the ability to)
After trying it out on various edit modes, the output is always the same `méltán` in the source code though it renders as proper letters in the browser.
Search engines treat é, ė, ę as e, same for á, ą as a and etc. So probab... |
84,207 | <p>In Google Webmaster Tools, "https" is one of my top content words.</p>
<p>Clicking on the keyword, I see this is because "https" appears 160 times in my sitemap (but no where else on my site).</p>
<p>My sitemap consists of 160 entries that look like this:</p>
<pre><code><url>
<loc>
https://www.myurl.c... | [
{
"answer_id": 100215,
"author": "Chris Rutherfurd",
"author_id": 60702,
"author_profile": "https://webmasters.stackexchange.com/users/60702",
"pm_score": 1,
"selected": false,
"text": "<p>The issue here is the way that the term <strong>sitemap</strong> has been used in webmastery to mea... | 2015/08/19 | [
"https://webmasters.stackexchange.com/questions/84207",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/53282/"
] | In Google Webmaster Tools, "https" is one of my top content words.
Clicking on the keyword, I see this is because "https" appears 160 times in my sitemap (but no where else on my site).
My sitemap consists of 160 entries that look like this:
```
<url>
<loc>
https://www.myurl.com/descriptive-page-title/2
</loc>
<last... | The issue here is the way that the term **sitemap** has been used in webmastery to mean two different but similar things and this I think is where the confusion may lie.
The sitemap.xml file should not be linked to through a hyperlink on your website. The purpose of the sitemap.xml file is to list every page on your s... |
84,227 | <p><strong>The disclaimer:</strong> I've looked around for this for a while and didn't find anything - I'm guessing it's a common question and I just don't know how to ask it so sorry about this (almost certainly) being a duplicate.</p>
<p><strong>OK, here's the problem:</strong> So I have a shared server (through Arv... | [
{
"answer_id": 84251,
"author": "Steven Huang",
"author_id": 55159,
"author_profile": "https://webmasters.stackexchange.com/users/55159",
"pm_score": 0,
"selected": false,
"text": "<p>Next time when this happens, you can circumvent the proxy cache and see what's on your server directly. ... | 2015/08/20 | [
"https://webmasters.stackexchange.com/questions/84227",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/55139/"
] | **The disclaimer:** I've looked around for this for a while and didn't find anything - I'm guessing it's a common question and I just don't know how to ask it so sorry about this (almost certainly) being a duplicate.
**OK, here's the problem:** So I have a shared server (through Arvixe) and I recently updated my site ... | While I certainly wouldn't consider it best practice, nor appropriate to do this without informing the customer, it is possible that your hosting provider, if they also manage your domain name and DNS settings, could have moved your website to different server either temporarily or permanently in order to keep your web... |
84,249 | <p>I'm using Universal Analytics tracking code and would like to start tracking click events for one of the buttons. I added the <code>ga('send'...)</code> on click event via jQuery. Do I need to make any changes to the actual Universal Analytics tracking snippet? </p>
| [
{
"answer_id": 84250,
"author": "nyuen",
"author_id": 43974,
"author_profile": "https://webmasters.stackexchange.com/users/43974",
"pm_score": 3,
"selected": true,
"text": "<p>No, you don't need to make any changes. I'm assuming you are invoking the library and creating the tracker throu... | 2015/08/21 | [
"https://webmasters.stackexchange.com/questions/84249",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/49596/"
] | I'm using Universal Analytics tracking code and would like to start tracking click events for one of the buttons. I added the `ga('send'...)` on click event via jQuery. Do I need to make any changes to the actual Universal Analytics tracking snippet? | No, you don't need to make any changes. I'm assuming you are invoking the library and creating the tracker through the standard method.
Your code should look something like this:
```
<button onclick="ga('send', 'event', 'your_category', 'your_action', 'your_label');">
```
With jQuery, placing an event listener on t... |
84,268 | <p>As my question states i want to avoid duplicate Title and H1 tags on my website.</p>
<p>My pages are like this</p>
<pre><code>example.com/rock-music-list-1/
...
example.com/rock-music-list-9/
</code></pre>
<p>On each page there is a pagination system that allow users to go back and forth.</p>
<pre><code> [<] ... | [
{
"answer_id": 84270,
"author": "dhaupin",
"author_id": 38958,
"author_profile": "https://webmasters.stackexchange.com/users/38958",
"pm_score": 3,
"selected": true,
"text": "<p>Duplicates like these are a thing of the past if you have set up proper schemas/relations/canonicals in regard... | 2015/08/21 | [
"https://webmasters.stackexchange.com/questions/84268",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/55167/"
] | As my question states i want to avoid duplicate Title and H1 tags on my website.
My pages are like this
```
example.com/rock-music-list-1/
...
example.com/rock-music-list-9/
```
On each page there is a pagination system that allow users to go back and forth.
```
[<] [1] [2] ... [8] [9] [>]
```
So on each of the... | Duplicates like these are a thing of the past if you have set up proper schemas/relations/canonicals in regards to pagination: <https://support.google.com/webmasters/answer/1663744?hl=en>
Note this too from the bottom of that article:
>
> rel="next" and rel="prev" are orthogonal concepts to rel="canonical".
>
>
> ... |
84,275 | <p>Until recently, my website was following proper semantic standards with H1 tags before H2 and H3 tags.</p>
<p>Now, on my site I was asked to put an advertisement of a festival for the owner at the top of the page before any page content.</p>
<p>The advertisement itself coding wise contains a DIV tag and in that co... | [
{
"answer_id": 84283,
"author": "Andrés Navarro",
"author_id": 47060,
"author_profile": "https://webmasters.stackexchange.com/users/47060",
"pm_score": 0,
"selected": false,
"text": "<p>Use CSS, copy the class you're currently applying to H3 and then reproduce it in a custom class and ap... | 2015/08/21 | [
"https://webmasters.stackexchange.com/questions/84275",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/46807/"
] | Until recently, my website was following proper semantic standards with H1 tags before H2 and H3 tags.
Now, on my site I was asked to put an advertisement of a festival for the owner at the top of the page before any page content.
The advertisement itself coding wise contains a DIV tag and in that contains an H3 tag ... | One option is to put the advert at the end of your HTML (probably just before `</body>`) and position it at the top with CSS.
Something along the lines of
```
#advertisement {
position: absolute;
top: 0;
height: 120px;
}
body {
padding-top: 120px;
}
```
It will probably need more than that but that ... |
84,285 | <p>2–3 months has passed since my domain and hosting expired on my old site. There were almost 10 posts on my previous (expired) blog.</p>
<p>May I reuse my old post/article on my new site? Is there any issue with Google or SEO in general if I reuse my old post.</p>
| [
{
"answer_id": 84283,
"author": "Andrés Navarro",
"author_id": 47060,
"author_profile": "https://webmasters.stackexchange.com/users/47060",
"pm_score": 0,
"selected": false,
"text": "<p>Use CSS, copy the class you're currently applying to H3 and then reproduce it in a custom class and ap... | 2015/08/22 | [
"https://webmasters.stackexchange.com/questions/84285",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/55184/"
] | 2–3 months has passed since my domain and hosting expired on my old site. There were almost 10 posts on my previous (expired) blog.
May I reuse my old post/article on my new site? Is there any issue with Google or SEO in general if I reuse my old post. | One option is to put the advert at the end of your HTML (probably just before `</body>`) and position it at the top with CSS.
Something along the lines of
```
#advertisement {
position: absolute;
top: 0;
height: 120px;
}
body {
padding-top: 120px;
}
```
It will probably need more than that but that ... |
84,288 | <p>I have 3 pages with similar text content.</p>
<p>For example</p>
<ul>
<li><code>/hardwell/top-songs/</code></li>
<li><code>/hardwell/latest-songs/</code></li>
<li><code>/hardwell/similar-djs/</code></li>
</ul>
<p>The main text content of the page is the biography on the top. It is the same for all the 3 pages. But t... | [
{
"answer_id": 84283,
"author": "Andrés Navarro",
"author_id": 47060,
"author_profile": "https://webmasters.stackexchange.com/users/47060",
"pm_score": 0,
"selected": false,
"text": "<p>Use CSS, copy the class you're currently applying to H3 and then reproduce it in a custom class and ap... | 2015/08/22 | [
"https://webmasters.stackexchange.com/questions/84288",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/44766/"
] | I have 3 pages with similar text content.
For example
* `/hardwell/top-songs/`
* `/hardwell/latest-songs/`
* `/hardwell/similar-djs/`
The main text content of the page is the biography on the top. It is the same for all the 3 pages. But the main content of the page is different, even though it is not text-heavy.
Wo... | One option is to put the advert at the end of your HTML (probably just before `</body>`) and position it at the top with CSS.
Something along the lines of
```
#advertisement {
position: absolute;
top: 0;
height: 120px;
}
body {
padding-top: 120px;
}
```
It will probably need more than that but that ... |
84,303 | <p>As I shift many URL's on my site from non-friendly to friendly, I came across an old URL that was used for testing that google later ended up scanning but now I no longer use the URL. Its in the unfriendly form like this:</p>
<pre><code>http://example.com/something.php?something=something&
</code></pre>
<p>In ... | [
{
"answer_id": 84304,
"author": "Simon Hayter",
"author_id": 20604,
"author_profile": "https://webmasters.stackexchange.com/users/20604",
"pm_score": 6,
"selected": true,
"text": "<p><em>Why 410 gone?</em></p>\n\n<p>Since the page once existed the correct header status return would be <a... | 2015/08/23 | [
"https://webmasters.stackexchange.com/questions/84303",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/46807/"
] | As I shift many URL's on my site from non-friendly to friendly, I came across an old URL that was used for testing that google later ended up scanning but now I no longer use the URL. Its in the unfriendly form like this:
```
http://example.com/something.php?something=something&
```
In the past, that URL matched ano... | *Why 410 gone?*
Since the page once existed the correct header status return would be [410 gone](http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.4.11), this will inform Google and other search engines to drop the page from its index. You should avoid using status [400 bad request](http://www.w3.org/Protoc... |
84,311 | <p>According to woorank.com seo tools, I read that its not best practice for a website to not have a custom 404 error page. But here's why I don't have it on a domain.</p>
<p>Currently I and one other person manages the contents of the domain, which includes generating and removing URLs automatically.</p>
<p>For exam... | [
{
"answer_id": 84312,
"author": "closetnoc",
"author_id": 36029,
"author_profile": "https://webmasters.stackexchange.com/users/36029",
"pm_score": 2,
"selected": true,
"text": "<p>A 404 or 410 is fine for any page or URL that does not exist. You do not have to mix the two- you can chose ... | 2015/08/24 | [
"https://webmasters.stackexchange.com/questions/84311",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/46807/"
] | According to woorank.com seo tools, I read that its not best practice for a website to not have a custom 404 error page. But here's why I don't have it on a domain.
Currently I and one other person manages the contents of the domain, which includes generating and removing URLs automatically.
For example, Say the site... | A 404 or 410 is fine for any page or URL that does not exist. You do not have to mix the two- you can chose just one.
If the page is gone, then a 410 is certainly appropriate, however, a 404 is automatic (as well as traditional as a result) and fine too. Just know that Google, for example, will try for a number of tim... |
84,335 | <p>Google Webmaster Tools shows a lot of duplicate content in the following pages:</p>
<ul>
<li><code>www.example.com/example</code></li>
<li><code>www.example.com/example/</code></li>
</ul>
<p>I do NOT offer two versions of any page on my website, when you type <code>example.com/example</code> you are REDIRECTED to ... | [
{
"answer_id": 84347,
"author": "Mike -- No longer here",
"author_id": 46807,
"author_profile": "https://webmasters.stackexchange.com/users/46807",
"pm_score": 2,
"selected": false,
"text": "<p>On an apache server with mod_rewrite installed, you can add this code to your httpd.conf (main... | 2015/08/24 | [
"https://webmasters.stackexchange.com/questions/84335",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/55229/"
] | Google Webmaster Tools shows a lot of duplicate content in the following pages:
* `www.example.com/example`
* `www.example.com/example/`
I do NOT offer two versions of any page on my website, when you type `example.com/example` you are REDIRECTED to `example.com/example/`. However, Webmaster Tools shows both versions... | On an apache server with mod\_rewrite installed, you can add this code to your httpd.conf (main apache configuration file) and restart apache gracefully.
```
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_URI} ^(.*)/$ [NC]
RewriteRule ^(.*)$ %1 [NC,R=301,... |
84,404 | <p>I've seen that it is OK to have <code><img alt="Company name" src="path..."></code> in, for example, <code>h1</code> tag and still look like "Company name" (like tekst) in search engines.</p>
<p>My question is can we use it to replace only one word in sentence and still keep looking as one sentence in search ... | [
{
"answer_id": 84405,
"author": "grg",
"author_id": 43638,
"author_profile": "https://webmasters.stackexchange.com/users/43638",
"pm_score": 2,
"selected": false,
"text": "<p>Yes, that is the purpose of the alt tag on images: to provide alternate text if the image can't be read, in this ... | 2015/08/26 | [
"https://webmasters.stackexchange.com/questions/84404",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/55290/"
] | I've seen that it is OK to have `<img alt="Company name" src="path...">` in, for example, `h1` tag and still look like "Company name" (like tekst) in search engines.
My question is can we use it to replace only one word in sentence and still keep looking as one sentence in search engine?
Like this:
```
<h1>
Meet t... | Yes, that is the purpose of the alt tag on images: to provide alternate text if the image can't be read, in this case by a search engine.
You can see this in action by looking at the text-only view of the Google cache of the page: the sentence looks normal and integrates the content of the alt attribute. |
84,436 | <p>My website is a website for sharing studying materials between students for the Israeli "Bagrut" exam.</p>
<p>I hate URLs that are built from numbers that don't mean anything so I've been using URL slugs.</p>
<p>My website has already organized each subject into a hierarchy of:</p>
<pre><code>subject > cateogr... | [
{
"answer_id": 84441,
"author": "MrWhite",
"author_id": 1243,
"author_profile": "https://webmasters.stackexchange.com/users/1243",
"pm_score": 2,
"selected": false,
"text": "<p>The main reason for using \"URL slugs\" is usability. Making the URL readable and easier to remember (and perha... | 2015/08/27 | [
"https://webmasters.stackexchange.com/questions/84436",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/55322/"
] | My website is a website for sharing studying materials between students for the Israeli "Bagrut" exam.
I hate URLs that are built from numbers that don't mean anything so I've been using URL slugs.
My website has already organized each subject into a hierarchy of:
```
subject > cateogry > subcategory
```
So natura... | You want to keep URLs as short and simple as you can. Short URLs are easier to write down on paper and easier to type in as well.
This URL...
```
http://www.example.com/subject/history_a/nationalism-israel-other-nations/characteristics-nationalism-national-movements-europe-19th-century/12
```
...is probably the 3rd... |
84,442 | <p>I have a web server that has to meet PCI compliance requirements. Their latest round of policy changes have removed support for Safari, after having removed support for Windows XP based IE clients. The code below works great to send users of compliant browsers to the SSL site, but fails to identify Safari for some r... | [
{
"answer_id": 84445,
"author": "MrWhite",
"author_id": 1243,
"author_profile": "https://webmasters.stackexchange.com/users/1243",
"pm_score": 1,
"selected": false,
"text": "<p>Your logic appears to be reversed... you need to remove the <code>OR</code> flag at the end of the first <code>... | 2015/08/27 | [
"https://webmasters.stackexchange.com/questions/84442",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/55326/"
] | I have a web server that has to meet PCI compliance requirements. Their latest round of policy changes have removed support for Safari, after having removed support for Windows XP based IE clients. The code below works great to send users of compliant browsers to the SSL site, but fails to identify Safari for some reas... | Your logic appears to be reversed... you need to remove the `OR` flag at the end of the first `RewriteCond` directive. This looks like it should be an implicit `AND`:
```
RewriteCond %{HTTP_USER_AGENT} !Version/[1-5]
RewriteCond %{HTTP_USER_AGENT} !MSIE\ ([6-8])
```
In other words... if it's not Safari *and* it's no... |
84,444 | <p>I am trying to find out something about this tag:</p>
<pre><code><META NAME="ROBOTS" CONTENT="NOINDEX, NOFOLLOW">
</code></pre>
<p>If I have a dynamic page like these</p>
<ol>
<li><p><code>example.com/product.aspx?ProductID=123</code></p></li>
<li><p><code>example.com/product.aspx?ProductID=456</code></p></... | [
{
"answer_id": 84447,
"author": "MrWhite",
"author_id": 1243,
"author_profile": "https://webmasters.stackexchange.com/users/1243",
"pm_score": 2,
"selected": false,
"text": "<p>If you \"dynamically add that meta tag\" for only the first URL then it will not affect <em>indexing</em> of th... | 2015/08/27 | [
"https://webmasters.stackexchange.com/questions/84444",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/55328/"
] | I am trying to find out something about this tag:
```
<META NAME="ROBOTS" CONTENT="NOINDEX, NOFOLLOW">
```
If I have a dynamic page like these
1. `example.com/product.aspx?ProductID=123`
2. `example.com/product.aspx?ProductID=456`
If I dynamically add that meta tag for URL #1, will it affect crawling of URL #2?
T... | If you "dynamically add that meta tag" for only the first URL then it will not affect *indexing* of the second.
Whilst it might be the same file (`product.aspx`) that processes both requests, they are two different URLs. |
84,481 | <p>To redirect non-www to www we often see this in .htaccess:</p>
<pre><code>RewriteEngine on
RewriteCond %{HTTP_HOST} !^www\.example\.com [NC]
RewriteRule ^(.*) http://www.example.com/%{REQUEST_URI} [R=301,NE,L]
</code></pre>
<p>The problem is when we also have subdomains: <code>http://wiki.example.com</c... | [
{
"answer_id": 84482,
"author": "MrWhite",
"author_id": 1243,
"author_profile": "https://webmasters.stackexchange.com/users/1243",
"pm_score": 2,
"selected": false,
"text": "<p>I don't think you can make it completely <em>generic</em>, since you'll need to make exceptions for your subdom... | 2015/08/28 | [
"https://webmasters.stackexchange.com/questions/84481",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/55372/"
] | To redirect non-www to www we often see this in .htaccess:
```
RewriteEngine on
RewriteCond %{HTTP_HOST} !^www\.example\.com [NC]
RewriteRule ^(.*) http://www.example.com/%{REQUEST_URI} [R=301,NE,L]
```
The problem is when we also have subdomains: `http://wiki.example.com` will be redirected to `http://ww... | I personnaly use this:
```
RewriteEngine on
RewriteCond %{HTTP_HOST} !\..+\.
RewriteRule (.*) http://www.%{HTTP_HOST}/$1 [R=301,L]
```
It checks if there is NOT 2 dots in the domain name. This is very similar to what w3d proposed, I just find it more readable.
And as w3d stated, it is impossible to have a fully gen... |
84,508 | <p>I have an image file that contains several sentences of text and an illustration.</p>
<p>How can I inform a search engine about the contents of the text in my image?</p>
<p>I can't use the alt attribute as the text in the image is longer that the maximum words limit that search engines allow for the attribute.</p>... | [
{
"answer_id": 84509,
"author": "grg",
"author_id": 43638,
"author_profile": "https://webmasters.stackexchange.com/users/43638",
"pm_score": 3,
"selected": true,
"text": "<p>If you have access to the source then you could consider using SVG, that way Google can read the text. – from Sim... | 2015/08/30 | [
"https://webmasters.stackexchange.com/questions/84508",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/35439/"
] | I have an image file that contains several sentences of text and an illustration.
How can I inform a search engine about the contents of the text in my image?
I can't use the alt attribute as the text in the image is longer that the maximum words limit that search engines allow for the attribute. | If you have access to the source then you could consider using SVG, that way Google can read the text. – from Simon Hayter in comments
If you just want the text indexed for search engines and don't care about accessibility, then you can add a caption to the image in the sitemap:
```
<image:image>
<image:loc>https... |
84,602 | <p>Let's say that I buy <strong>example.com</strong> domain from GoDaddy who is authorized to sell domains under <strong>.com</strong> and I would like to use my own DNS servers for zone <strong>example.com</strong>. What does the GoDaddy technically do if they use BIND as a DNS server? Do they simply create a zone fil... | [
{
"answer_id": 84607,
"author": "closetnoc",
"author_id": 36029,
"author_profile": "https://webmasters.stackexchange.com/users/36029",
"pm_score": -1,
"selected": false,
"text": "<p>To answer your question directly: Yes. You described it correctly.</p>\n\n<p>However, I am addressing prim... | 2015/09/02 | [
"https://webmasters.stackexchange.com/questions/84602",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/46458/"
] | Let's say that I buy **example.com** domain from GoDaddy who is authorized to sell domains under **.com** and I would like to use my own DNS servers for zone **example.com**. What does the GoDaddy technically do if they use BIND as a DNS server? Do they simply create a zone file for **example.com** and use similar NS r... | No. If you use your own DNS servers, they don't create a new zone.
What they do is:
* tell the registry that you have registered the domain name, providing information about you (usually by pointing back to their own whois servers, but that varies from TLD to TLD), though this is sometimes mitigates by the use of pri... |
84,639 | <p>How would I change the URL from</p>
<p>from: <code>example.com/games.php?id=27</code></p>
<p>to: <code>website.com/games/271/game-name-here</code></p>
<p>So far I have this in .htaccess:</p>
<pre><code>RewriteEngine on
RewriteRule ^games/([0-9]+)/?$ games.php?id=$1 [NC,L]
RewriteRule ^(.*).aspx$ $1.php
RewriteRu... | [
{
"answer_id": 84643,
"author": "Community",
"author_id": -1,
"author_profile": "https://webmasters.stackexchange.com/users/-1",
"pm_score": 0,
"selected": false,
"text": "<p>Basically you need to do two things :</p>\n\n<ol>\n<li><code>.htaccess</code> to decode the url and send it to ab... | 2015/09/03 | [
"https://webmasters.stackexchange.com/questions/84639",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/55522/"
] | How would I change the URL from
from: `example.com/games.php?id=27`
to: `website.com/games/271/game-name-here`
So far I have this in .htaccess:
```
RewriteEngine on
RewriteRule ^games/([0-9]+)/?$ games.php?id=$1 [NC,L]
RewriteRule ^(.*).aspx$ $1.php
RewriteRule ^(.*).ashx$ $1.php
Options -Indexes
<Files 403.shtml>
... | As I understand, you want requests for the following URL `website.com/games/271/game-name-here` to be handled by games.php
For this, you may use a simpler rule.
```
RewriteRule ^games/(.*)$ /games.php?var=$1 [L]
```
This will send all requests with /games/ to games.php. For e.g.
`/games/271/game-name-here` will g... |
84,677 | <p>I just start using Google Webmasters tool. When I add a domain with or without <code>www</code>, there will be a message from google saying I need to add the other to improve the 'exposure'. If I do this, there will be two properties (with and without <code>www</code>), which are basically the same website. Then Goo... | [
{
"answer_id": 84684,
"author": "Aakash",
"author_id": 45105,
"author_profile": "https://webmasters.stackexchange.com/users/45105",
"pm_score": 3,
"selected": true,
"text": "<blockquote>\n <ol>\n <li>Why can't these two properties be merged into one?</li>\n </ol>\n</blockquote>\n\n<p>... | 2015/09/03 | [
"https://webmasters.stackexchange.com/questions/84677",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/46631/"
] | I just start using Google Webmasters tool. When I add a domain with or without `www`, there will be a message from google saying I need to add the other to improve the 'exposure'. If I do this, there will be two properties (with and without `www`), which are basically the same website. Then Google instructs me to set a... | >
> 1. Why can't these two properties be merged into one?
>
>
>
Technically, <http://www.example.com> is not an alias of <http://example.com> or vice-versa. You can show completely different things on www and non-www versions. However, most websites use them interchangeably and webmasters prefer one over the other... |
84,683 | <p>I'm using jQuery on several of my websites and although I use a CDN to serve it, it just doesn't make sense for visitor to download jQuery each time. jQuery must be the world's most widely used JavaScript framework - wouldn't it make more sense if browsers just have it installed by default?</p>
<p>In that way milli... | [
{
"answer_id": 84685,
"author": "Nick",
"author_id": 7198,
"author_profile": "https://webmasters.stackexchange.com/users/7198",
"pm_score": 6,
"selected": false,
"text": "<p>If you serve jQuery from a popular CDN such as Google's <a href=\"https://developers.google.com/speed/libraries/#j... | 2015/09/04 | [
"https://webmasters.stackexchange.com/questions/84683",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/23478/"
] | I'm using jQuery on several of my websites and although I use a CDN to serve it, it just doesn't make sense for visitor to download jQuery each time. jQuery must be the world's most widely used JavaScript framework - wouldn't it make more sense if browsers just have it installed by default?
In that way millions of tim... | If you serve jQuery from a popular CDN such as Google's [Hosted Libraries](https://developers.google.com/speed/libraries/#jquery) or [cdnjs](https://cdnjs.com/), it won't be redownloaded if your visitor has been on a site that referenced it from the same source (as long as the cached version has not expired).
jQuery i... |
84,687 | <p>I have registered a domain name (let's call it <code>example.com.au</code>) through GoDaddy and have an active email account using the gmail servers (<code>info@example.com.au</code>). The gmail setup process automatically set my DNS records so that mail service is handled by their servers and it works well.</p>
<p... | [
{
"answer_id": 84700,
"author": "Chaque",
"author_id": 55588,
"author_profile": "https://webmasters.stackexchange.com/users/55588",
"pm_score": 0,
"selected": false,
"text": "<p>You can choose not transfer your DNS to your webhost. To keep your current email configuration, you only need ... | 2015/09/04 | [
"https://webmasters.stackexchange.com/questions/84687",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/55572/"
] | I have registered a domain name (let's call it `example.com.au`) through GoDaddy and have an active email account using the gmail servers (`info@example.com.au`). The gmail setup process automatically set my DNS records so that mail service is handled by their servers and it works well.
I now have a website on ecoweb ... | It's good that you're being very cautious.
Keep your Name Server configuration to where it's at. You should just create an A-Record and point it to your IP address (217.199.187.200).
The mail configuration is a different type of record called "MX". You don't want to change those in this case.
So, in your GoDaddy DNS... |
84,753 | <p>Our MediaWIki 1.25 server was running <em>without</em> <code>$wgSecureLogin</code>. The installer did not copy the setting from <code>DefaultLogin.php</code>, and the setting was <em>not</em> secure by default. (Related WikiMedia bug T111135: <a href="https://phabricator.wikimedia.org/T111135" rel="nofollow">LocalSe... | [
{
"answer_id": 84756,
"author": "Martijn",
"author_id": 37448,
"author_profile": "https://webmasters.stackexchange.com/users/37448",
"pm_score": 0,
"selected": false,
"text": "<p>Can you perform a query?</p>\n\n<pre><code>UPDATE the_table SET password='UserNeedsToResetPassword';\n</code>... | 2015/09/07 | [
"https://webmasters.stackexchange.com/questions/84753",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/-1/"
] | Our MediaWIki 1.25 server was running *without* `$wgSecureLogin`. The installer did not copy the setting from `DefaultLogin.php`, and the setting was *not* secure by default. (Related WikiMedia bug T111135: [LocalSettings.php lacks wgSecureLogin, wgCookieHttpOnly and wgCookieSecure](https://phabricator.wikimedia.org/T1... | You can force a password change by running
```
UPDATE user SET user_password_expires = '19990101000000';
```
(This is not the same as a password reset as it will accept the old password one time. Less secure, more forgiving.)
If you cannot be bothered to look up the DB password, you can just use [`maintenance/sql.p... |
84,757 | <p>I want a rewrite rule that redirects everything to <code>https://</code> <strong>AND</strong> <code>www</code>.</p>
<p>For example <code>http://example.com</code> should be going to <code>https://www.example.com</code></p>
<p>This is what I have:</p>
<pre><code>RewriteEngine On
RewriteCond %{SERVER_PORT} !=443
Re... | [
{
"answer_id": 84766,
"author": "MrWhite",
"author_id": 1243,
"author_profile": "https://webmasters.stackexchange.com/users/1243",
"pm_score": 3,
"selected": false,
"text": "<p>Your conditions are implicitly AND'd and your second condition will always be true (unless you have other domai... | 2015/09/07 | [
"https://webmasters.stackexchange.com/questions/84757",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/55659/"
] | I want a rewrite rule that redirects everything to `https://` **AND** `www`.
For example `http://example.com` should be going to `https://www.example.com`
This is what I have:
```
RewriteEngine On
RewriteCond %{SERVER_PORT} !=443
RewriteCond %{HTTP_HOST} ^(www\.)?example\.com$ [NC]
RewriteRule ^(.*)$ "https\:\/\/www... | I found the solution.
Without [HSTS](https://en.wikipedia.org/wiki/HTTP_Strict_Transport_Security) (single redirect):
```
RewriteCond %{HTTP_HOST} !^www\.
RewriteRule .* https://www.%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
RewriteCond %{HTTPS} off
RewriteRule .* https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
```
With [HS... |
84,761 | <p>In Google Search Console, in Search Analytics, it only lets you download 999 lines of data.</p>
<p>How do I download all queries from Google Search Analytics in Google Search Console?</p>
| [
{
"answer_id": 84781,
"author": "Max",
"author_id": 23156,
"author_profile": "https://webmasters.stackexchange.com/users/23156",
"pm_score": 2,
"selected": false,
"text": "<p>Using just the web interface you can only ever get the top 1000 keywords.</p>\n\n<p>However if you use the Search... | 2015/09/07 | [
"https://webmasters.stackexchange.com/questions/84761",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/33887/"
] | In Google Search Console, in Search Analytics, it only lets you download 999 lines of data.
How do I download all queries from Google Search Analytics in Google Search Console? | If you are not good with programming you can use api explorer on the end of the page:
<https://developers.google.com/apis-explorer/#p/webmasters/v3/>
If you are good with code here is example how to do it
```
#!/usr/bin/python
import httplib2
from apiclient import errors
from apiclient.discovery import build
from... |
84,772 | <p>Which of the following sentence is better for SEO <code>-</code> or <code>()</code> to describe sub-contents?</p>
<pre><code>Ru Ba Ru Feat Diljit - Dj Hans - 48Kbps.mp3
</code></pre>
<p>URL: <code>/music/view/25577946?download=Ru-Ba-Ru-Feat-Diljit---Dj-Hans---48Kbps.mp3</code></p>
<p>or </p>
<pre><code>Ru Ba Ru... | [
{
"answer_id": 84773,
"author": "Andrew Lott",
"author_id": 23812,
"author_profile": "https://webmasters.stackexchange.com/users/23812",
"pm_score": 1,
"selected": false,
"text": "<p>It's probably negligible if you use Microdata tags around it. The <a href=\"https://schema.org/MusicRecor... | 2015/09/07 | [
"https://webmasters.stackexchange.com/questions/84772",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/54787/"
] | Which of the following sentence is better for SEO `-` or `()` to describe sub-contents?
```
Ru Ba Ru Feat Diljit - Dj Hans - 48Kbps.mp3
```
URL: `/music/view/25577946?download=Ru-Ba-Ru-Feat-Diljit---Dj-Hans---48Kbps.mp3`
or
```
Ru Ba Ru Feat Diljit (Dj Hans) (48Kbps).mp3
```
URL:`/music/view/25577946?download=R... | If you must use an unfriendly URL, I'd go with:
`/music/view/25577946?download=Ru-Ba-Ru-Feat-Diljit---Dj-Hans---48Kbps.mp3`
However, I'd change it to:
```
/music/view/25577946?download=Ru-Ba-Ru-Feat-Diljit-Dj-Hans-48Kbps.mp3
```
Just to keep things cleaner, I would recommend instead is friendly URLs in this kind o... |
84,793 | <p>I have a blog as part of my site. The address of the blog is <code>../blog.php</code>. If you go to <code>blog.php</code> you will see the most recent blog entry and there will be links to other entries. The links to other entries will be the same PHP page but there is a query string which tells the page to show the... | [
{
"answer_id": 84773,
"author": "Andrew Lott",
"author_id": 23812,
"author_profile": "https://webmasters.stackexchange.com/users/23812",
"pm_score": 1,
"selected": false,
"text": "<p>It's probably negligible if you use Microdata tags around it. The <a href=\"https://schema.org/MusicRecor... | 2015/09/08 | [
"https://webmasters.stackexchange.com/questions/84793",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/55690/"
] | I have a blog as part of my site. The address of the blog is `../blog.php`. If you go to `blog.php` you will see the most recent blog entry and there will be links to other entries. The links to other entries will be the same PHP page but there is a query string which tells the page to show the content for another blog... | If you must use an unfriendly URL, I'd go with:
`/music/view/25577946?download=Ru-Ba-Ru-Feat-Diljit---Dj-Hans---48Kbps.mp3`
However, I'd change it to:
```
/music/view/25577946?download=Ru-Ba-Ru-Feat-Diljit-Dj-Hans-48Kbps.mp3
```
Just to keep things cleaner, I would recommend instead is friendly URLs in this kind o... |
84,795 | <p>In robots.txt:</p>
<pre><code># robotstxt.org
User-agent: *
sitemap: https://s3.amazonaws.com/my-bucket/sitemaps/sitemap.xml
sitemap: https://s3.amazonaws.com/my-bucket/sitemaps/videositemap.xml
sitemap: https://s3.amazonaws.com/my-bucket/sitemaps/imagesitemap.xml
sitemap: https://s3.amazonaws.com/my-bucket/sitemap... | [
{
"answer_id": 84773,
"author": "Andrew Lott",
"author_id": 23812,
"author_profile": "https://webmasters.stackexchange.com/users/23812",
"pm_score": 1,
"selected": false,
"text": "<p>It's probably negligible if you use Microdata tags around it. The <a href=\"https://schema.org/MusicRecor... | 2015/09/08 | [
"https://webmasters.stackexchange.com/questions/84795",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/49160/"
] | In robots.txt:
```
# robotstxt.org
User-agent: *
sitemap: https://s3.amazonaws.com/my-bucket/sitemaps/sitemap.xml
sitemap: https://s3.amazonaws.com/my-bucket/sitemaps/videositemap.xml
sitemap: https://s3.amazonaws.com/my-bucket/sitemaps/imagesitemap.xml
sitemap: https://s3.amazonaws.com/my-bucket/sitemaps/newssitemap.... | If you must use an unfriendly URL, I'd go with:
`/music/view/25577946?download=Ru-Ba-Ru-Feat-Diljit---Dj-Hans---48Kbps.mp3`
However, I'd change it to:
```
/music/view/25577946?download=Ru-Ba-Ru-Feat-Diljit-Dj-Hans-48Kbps.mp3
```
Just to keep things cleaner, I would recommend instead is friendly URLs in this kind o... |
84,838 | <p>Is there a comparison between 4096 Bit RSA-Key and a 2048 Bit RSA-Key? I'd like to know what impact on performance it has, if I'm choosing a 4096-Bit key for ssl-encryption. Is there any info which says, how much more CPU usage will be required if a 4096 bit key is used instead of a 2048 bit one?</p>
| [
{
"answer_id": 100647,
"author": "Tom Brossman",
"author_id": 11962,
"author_profile": "https://webmasters.stackexchange.com/users/11962",
"pm_score": 3,
"selected": false,
"text": "<p>Use <a href=\"https://www.openssl.org/docs/man1.0.2/apps/speed.html\" rel=\"noreferrer\">OpenSSL's <cod... | 2015/09/09 | [
"https://webmasters.stackexchange.com/questions/84838",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/6801/"
] | Is there a comparison between 4096 Bit RSA-Key and a 2048 Bit RSA-Key? I'd like to know what impact on performance it has, if I'm choosing a 4096-Bit key for ssl-encryption. Is there any info which says, how much more CPU usage will be required if a 4096 bit key is used instead of a 2048 bit one? | Use [OpenSSL's `speed` command](https://www.openssl.org/docs/man1.0.2/apps/speed.html) to benchmark the two types and compare results. Here's an example command to run on the server to compare only the key types and sizes you mention:
`openssl speed rsa2048 rsa4096`
For reference, here are some benchmark results from... |
84,907 | <p>All the hosted websites on my VPS stopped working yesterday. I have not changed any settings since a week. The websites result in an ERR_CONNECTION_REFUSED.</p>
<p>In my time zone, the websites stopped working at 2015-9-10 somewhere between 15:00 and 16:30.</p>
<p>Though the plesk panel is still working. There is ... | [
{
"answer_id": 85251,
"author": "frijj2k",
"author_id": 56102,
"author_profile": "https://webmasters.stackexchange.com/users/56102",
"pm_score": 3,
"selected": false,
"text": "<p>I had the exact same problem (well symptoms at least)...</p>\n\n<p>To fix the issue, I executed the following... | 2015/09/11 | [
"https://webmasters.stackexchange.com/questions/84907",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/55795/"
] | All the hosted websites on my VPS stopped working yesterday. I have not changed any settings since a week. The websites result in an ERR\_CONNECTION\_REFUSED.
In my time zone, the websites stopped working at 2015-9-10 somewhere between 15:00 and 16:30.
Though the plesk panel is still working. There is no error messag... | I had the exact same problem (well symptoms at least)...
To fix the issue, I executed the following commands:
```
/usr/local/psa/admin/sbin/nginxmng --disable
/usr/local/psa/admin/sbin/httpdmng --reconfigure-all
```
Hope this helps. :) |
84,916 | <p>I would like my current URLs:</p>
<pre><code>http://example.com/files/528/Rabba%20Ho%20-%20Falak%20Shabir%20Song.html
</code></pre>
<p>To look cleaner like this:</p>
<pre><code>http://example.com/files/528/Rabba_Ho_-_Falak_Shabir_Song.html
</code></pre>
<p>This is my current <em>.htaccess</em> file:</p>
<pre><c... | [
{
"answer_id": 84918,
"author": "Stephen Ostermiller",
"author_id": 14543,
"author_profile": "https://webmasters.stackexchange.com/users/14543",
"pm_score": 2,
"selected": false,
"text": "<p>Here is a similar question on StackOverflow: <a href=\"https://stackoverflow.com/questions/127968... | 2015/09/11 | [
"https://webmasters.stackexchange.com/questions/84916",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/55797/"
] | I would like my current URLs:
```
http://example.com/files/528/Rabba%20Ho%20-%20Falak%20Shabir%20Song.html
```
To look cleaner like this:
```
http://example.com/files/528/Rabba_Ho_-_Falak_Shabir_Song.html
```
This is my current *.htaccess* file:
```
RewriteRule ^category/([^/]*)/([^/]*)\.html$ /index.php?pid=$1&... | Here is a similar question on StackOverflow: [mod\_rewrite: replace underscores with dashes](https://stackoverflow.com/questions/1279681/mod-rewrite-replace-underscores-with-dashes)
I've modified the answer to replace spaces (decoded %20) with underscore. It works by recursively applying a rewrite rule as long as ther... |
84,955 | <p>How do third party applications and PageRank checking websites check for the PageRank number? Does Google provide this rank number with an API or can I retrieve it by entering something into the search box? I would like to make a simple script to record my page rank and work with it as a variable and I prefer to use... | [
{
"answer_id": 84967,
"author": "Mike",
"author_id": 55845,
"author_profile": "https://webmasters.stackexchange.com/users/55845",
"pm_score": 4,
"selected": true,
"text": "<p>After reading comments to my question and a lot of searching I found the answer. To retrieve Google Page Rank, a ... | 2015/09/13 | [
"https://webmasters.stackexchange.com/questions/84955",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/55845/"
] | How do third party applications and PageRank checking websites check for the PageRank number? Does Google provide this rank number with an API or can I retrieve it by entering something into the search box? I would like to make a simple script to record my page rank and work with it as a variable and I prefer to use on... | After reading comments to my question and a lot of searching I found the answer. To retrieve Google Page Rank, a query against one of Google's sub-domain <http://toolbarqueries.google.com> can be done. This sub-domain is actually only one of the ways I have found it may be done.
The basic query syntax is in this form... |
84,978 | <p>I've read a tonne of questions on this and tried a few solutions, but I'm just not getting the results I want.</p>
<p>I'm currently using:</p>
<pre><code>RewriteEngine on
RewriteCond %{HTTP_HOST} ^cp\.example\.net
RewriteRule ^(.*)$ http://example.net/gamepanel/public/$1 [L,NC,QSA]
</code></pre>
<p>Which doesn't ... | [
{
"answer_id": 84981,
"author": "James",
"author_id": 55870,
"author_profile": "https://webmasters.stackexchange.com/users/55870",
"pm_score": 2,
"selected": true,
"text": "<p>After more digging, associating the sub domain with my directory was the better way to do this:</p>\n\n<pre><cod... | 2015/09/14 | [
"https://webmasters.stackexchange.com/questions/84978",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/55870/"
] | I've read a tonne of questions on this and tried a few solutions, but I'm just not getting the results I want.
I'm currently using:
```
RewriteEngine on
RewriteCond %{HTTP_HOST} ^cp\.example\.net
RewriteRule ^(.*)$ http://example.net/gamepanel/public/$1 [L,NC,QSA]
```
Which doesn't quite work as intended. When I na... | After more digging, associating the sub domain with my directory was the better way to do this:
```
<VirtualHost *:80>
ServerName cp.example.net
DocumentRoot /var/www/gamepanel/public
<Directory /var/www/gamepanel/public>
Options -Indexes
</Directory>
</VirtualHost>
``` |