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
28,402
<p>I have a website with url like that :</p> <pre><code>www.xxxxxx.com/card/wow/20-euros </code></pre> <p>In term of SEO is it better to use slash or hyphen?</p> <pre><code>www.xxxxxx.com/card-wow-20-euros </code></pre> <p>Even though it will be trickier with hyphen to route correctly with only hyphen ...</p> <p>O...
[ { "answer_id": 28403, "author": "David K.", "author_id": 9123, "author_profile": "https://webmasters.stackexchange.com/users/9123", "pm_score": 6, "selected": true, "text": "<p>General rule of thumb is, the closer you are to your root domain, the better. It is said, that Google weights s...
2012/04/11
[ "https://webmasters.stackexchange.com/questions/28402", "https://webmasters.stackexchange.com", "https://webmasters.stackexchange.com/users/13947/" ]
I have a website with url like that : ``` www.xxxxxx.com/card/wow/20-euros ``` In term of SEO is it better to use slash or hyphen? ``` www.xxxxxx.com/card-wow-20-euros ``` Even though it will be trickier with hyphen to route correctly with only hyphen ... Or it doesn't matter?
General rule of thumb is, the closer you are to your root domain, the better. It is said, that Google weights subfolders in descending order. For example: ``` www.xxxxxx.com/card/wow/20-euros 2 .1 /3 /4 /5 5 ``` That basically means, that your domain gets the highest rankingpower for its word(s), follow...
28,411
<p>I have a domain, registered at company A. In the domain manager panel at this company I can edit DNS records of my domain, including MX records. That's understandable. I changed them.</p> <p>But, the website which uses this domain is at company B. This comapany also has DNS records manager! It looks like it overwri...
[ { "answer_id": 28403, "author": "David K.", "author_id": 9123, "author_profile": "https://webmasters.stackexchange.com/users/9123", "pm_score": 6, "selected": true, "text": "<p>General rule of thumb is, the closer you are to your root domain, the better. It is said, that Google weights s...
2012/04/11
[ "https://webmasters.stackexchange.com/questions/28411", "https://webmasters.stackexchange.com", "https://webmasters.stackexchange.com/users/6456/" ]
I have a domain, registered at company A. In the domain manager panel at this company I can edit DNS records of my domain, including MX records. That's understandable. I changed them. But, the website which uses this domain is at company B. This comapany also has DNS records manager! It looks like it overwrites whatev...
General rule of thumb is, the closer you are to your root domain, the better. It is said, that Google weights subfolders in descending order. For example: ``` www.xxxxxx.com/card/wow/20-euros 2 .1 /3 /4 /5 5 ``` That basically means, that your domain gets the highest rankingpower for its word(s), follow...
28,416
<p>Can someone help to query <code>Google analytics</code> to track a specific user behavior and usage pattern? </p> <p>Currently I pass user id’s to GA as </p> <pre><code>_setCustomVar(2, 'id', id, 1); </code></pre> <p>This is session based. </p> <p>But I am yet to master how I can utilize this to view usage pa...
[ { "answer_id": 28418, "author": "Ewan Heming", "author_id": 5718, "author_profile": "https://webmasters.stackexchange.com/users/5718", "pm_score": 3, "selected": true, "text": "<p>You could probably use <a href=\"http://support.google.com/googleanalytics/bin/answer.py?hl=en&amp;answer=10...
2012/04/11
[ "https://webmasters.stackexchange.com/questions/28416", "https://webmasters.stackexchange.com", "https://webmasters.stackexchange.com/users/10216/" ]
Can someone help to query `Google analytics` to track a specific user behavior and usage pattern? Currently I pass user id’s to GA as ``` _setCustomVar(2, 'id', id, 1); ``` This is session based. But I am yet to master how I can utilize this to view usage pattern & behavior for the passed id. Say, I need to und...
You could probably use [Advanced Segments](http://support.google.com/googleanalytics/bin/answer.py?hl=en&answer=108040) to filter the reports based on your custom variable. However, unfortunately I think you actually might be [breaking the Google Analytics privacy policy](http://www.google.com/analytics/tos.html) by pa...
28,446
<p>what is the best way to write long seo-friendly titles in sidebars?</p> <pre><code>&lt;h3 title="My long title, the very seo one"&gt;Menu&lt;/h3&gt; OR: &lt;h3&gt;My long title, the very seo one&lt;/h3&gt; // hidden via css &lt;div class="title"&gt;Menu&lt;/div&gt; </code></pre> <p>what else? thanks!</p>
[ { "answer_id": 28447, "author": "John Conde", "author_id": 1253, "author_profile": "https://webmasters.stackexchange.com/users/1253", "pm_score": 3, "selected": true, "text": "<p>FYI, if you're hiding that <code>&lt;h3&gt;</code> via CSS in a live site that's called cloaking and will get...
2012/04/12
[ "https://webmasters.stackexchange.com/questions/28446", "https://webmasters.stackexchange.com", "https://webmasters.stackexchange.com/users/14391/" ]
what is the best way to write long seo-friendly titles in sidebars? ``` <h3 title="My long title, the very seo one">Menu</h3> OR: <h3>My long title, the very seo one</h3> // hidden via css <div class="title">Menu</div> ``` what else? thanks!
FYI, if you're hiding that `<h3>` via CSS in a live site that's called cloaking and will get you banned if you get caught by the search engines doing that. Your first example is the proper way to do it as that is what the `title` attribute is for. It allows you to provide extra text that gives the user more informatio...
28,514
<p>I've recently been going through our 404 logs and we have a number of urls which look like this turning up:-</p> <pre><code>http://www.makejusticework.org.uk/%2B%255BPLM=0%255D%2BGET%2Bhttp:/www.makejusticework.org.uk/%2B%255B0,51217,54078%255D%2B-%253E%2B%255BN%255D%2BPOST%2Bhttp:/www.makejusticework.org.uk/media/...
[ { "answer_id": 28515, "author": "Chris Wiegman", "author_id": 14694, "author_profile": "https://webmasters.stackexchange.com/users/14694", "pm_score": 1, "selected": false, "text": "<p>Most likely it is a bot looking for vulnerabilities in your site. Some plugins and themes could allow u...
2012/04/15
[ "https://webmasters.stackexchange.com/questions/28514", "https://webmasters.stackexchange.com", "https://webmasters.stackexchange.com/users/13606/" ]
I've recently been going through our 404 logs and we have a number of urls which look like this turning up:- ``` http://www.makejusticework.org.uk/%2B%255BPLM=0%255D%2BGET%2Bhttp:/www.makejusticework.org.uk/%2B%255B0,51217,54078%255D%2B-%253E%2B%255BN%255D%2BPOST%2Bhttp:/www.makejusticework.org.uk/media/roma-hoopers-j...
This is some sort of comment-spam or possibly a hack attempt, but it's rather difficult to find out what it's trying to do. If it's a hack attempt, it could be a probe in which many thousands of sites are hit with the same type of attempted exploit, and only those that show promise are followed up. To analyse this URL...
28,533
<p>So apparently hiding content using "display: none" is bad for SEO and seen by googlebot as being deceptive. This according to a lot of the posts I read online and questions even on this site.</p> <p>But what if I hide keyword rich text using javascript? A jquery example:</p> <pre><code>$(function() { $('#keywor...
[ { "answer_id": 28534, "author": "toomanyairmiles", "author_id": 12685, "author_profile": "https://webmasters.stackexchange.com/users/12685", "pm_score": 2, "selected": false, "text": "<p>It's only deceptive if there is no decent reason for it - Google examines html, javascript, and jQuer...
2012/04/15
[ "https://webmasters.stackexchange.com/questions/28533", "https://webmasters.stackexchange.com", "https://webmasters.stackexchange.com/users/14641/" ]
So apparently hiding content using "display: none" is bad for SEO and seen by googlebot as being deceptive. This according to a lot of the posts I read online and questions even on this site. But what if I hide keyword rich text using javascript? A jquery example: ``` $(function() { $('#keywordRichTextContainer')....
It's not the technique, it the *reason* why you're doing it that matters. Based on your question you're clearly doing this to manipulate your search rankings. So whether you use JavaScript or CSS it's still cloaking and still against the terms of service of the search engines. Cloaking gets you banned if you get caught...
28,538
<p>I have a website at <code>mydomain.com</code> that uses Analytics.</p> <p>I have a blog that resides at <code>mydomain.com/blog/</code>, which also uses Analytics</p> <p>They are on different profiles. The main site uses something like:</p> <p><code>_gaq.push(['_setAccount', 'UA-XXXXXXXX-6']);</code></p> <p>Whil...
[ { "answer_id": 28534, "author": "toomanyairmiles", "author_id": 12685, "author_profile": "https://webmasters.stackexchange.com/users/12685", "pm_score": 2, "selected": false, "text": "<p>It's only deceptive if there is no decent reason for it - Google examines html, javascript, and jQuer...
2012/04/16
[ "https://webmasters.stackexchange.com/questions/28538", "https://webmasters.stackexchange.com", "https://webmasters.stackexchange.com/users/14707/" ]
I have a website at `mydomain.com` that uses Analytics. I have a blog that resides at `mydomain.com/blog/`, which also uses Analytics They are on different profiles. The main site uses something like: `_gaq.push(['_setAccount', 'UA-XXXXXXXX-6']);` While the blog uses: ``` _gaq.push(['_setAccount', 'UA-XXXXXXXX-7']...
It's not the technique, it the *reason* why you're doing it that matters. Based on your question you're clearly doing this to manipulate your search rankings. So whether you use JavaScript or CSS it's still cloaking and still against the terms of service of the search engines. Cloaking gets you banned if you get caught...
28,549
<p>I'm a newbie webmaster. I've got a domain and a site... and no clue about the web (I'm OK with files and programs... ) I got a message from google that my site is a possible phishing site, with a link the the suspect page:</p> <pre><code> http://www.mydomain.com/~phishers/Paypal/us/Confirm.php </code></pre> <p>ne...
[ { "answer_id": 28551, "author": "danlefree", "author_id": 1064, "author_profile": "https://webmasters.stackexchange.com/users/1064", "pm_score": 2, "selected": false, "text": "<p>If you do not recognize the username after the tilde, this is most likely an instance of a phisher exploiting...
2012/04/16
[ "https://webmasters.stackexchange.com/questions/28549", "https://webmasters.stackexchange.com", "https://webmasters.stackexchange.com/users/14715/" ]
I'm a newbie webmaster. I've got a domain and a site... and no clue about the web (I'm OK with files and programs... ) I got a message from google that my site is a possible phishing site, with a link the the suspect page: ``` http://www.mydomain.com/~phishers/Paypal/us/Confirm.php ``` needless to say, I didn't pu...
If you do not recognize the username after the tilde, this is most likely an instance of a phisher exploiting a hosting provider's lax [mod\_userdir](http://httpd.apache.org/docs/2.0/mod/mod_userdir.html) configuration (in conjunction with a reverse lookup of domains hosted on the server) - contact your hosting provide...
28,554
<p>The following rule in my <code>.htaccess</code> works just fine for routing calls to <code>index.php</code>:</p> <pre><code>RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^(.*)$ index.php [QSA,L] </code></pre> <p>However, this does <strong>not</strong> work when running on a temporary URL like <c...
[ { "answer_id": 28568, "author": "Ilmari Karonen", "author_id": 12578, "author_profile": "https://webmasters.stackexchange.com/users/12578", "pm_score": 2, "selected": true, "text": "<p>As far as I know, there's no reliable way to detect what the <code>RewriteBase</code> should be. If th...
2012/04/16
[ "https://webmasters.stackexchange.com/questions/28554", "https://webmasters.stackexchange.com", "https://webmasters.stackexchange.com/users/14087/" ]
The following rule in my `.htaccess` works just fine for routing calls to `index.php`: ``` RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^(.*)$ index.php [QSA,L] ``` However, this does **not** work when running on a temporary URL like `http://example.com/~test/`. In such a case, the .htaccess fil...
As far as I know, there's no reliable way to detect what the `RewriteBase` should be. If there were, there would be no need for [the kluge that `RewriteBase` is](http://httpd.apache.org/docs/current/mod/mod_rewrite.html#rewritebase), as mod\_rewrite could just detect the correct base automatically.
28,564
<p>We look after a low volume website which has a contact us form which looks like this:</p> <pre><code>&lt;form method="post" action="http://www.*****.com/cgi-bin/contact.cgi"&gt; </code></pre> <p>Starting a few weeks ago, every few days we receive an empty form submission. No subject, no nothing. They must be bypas...
[ { "answer_id": 28565, "author": "John Conde", "author_id": 1253, "author_profile": "https://webmasters.stackexchange.com/users/1253", "pm_score": 3, "selected": true, "text": "<p>Someone is probably trying to abuse the form and may be succeeding. They're probably trying to send spam thro...
2012/04/17
[ "https://webmasters.stackexchange.com/questions/28564", "https://webmasters.stackexchange.com", "https://webmasters.stackexchange.com/users/1588/" ]
We look after a low volume website which has a contact us form which looks like this: ``` <form method="post" action="http://www.*****.com/cgi-bin/contact.cgi"> ``` Starting a few weeks ago, every few days we receive an empty form submission. No subject, no nothing. They must be bypassing the submit button and hitti...
Someone is probably trying to abuse the form and may be succeeding. They're probably trying to send spam through it and judging by the fact that they can submit an empty form they may be succeeding without your knowledge. There should be server side code in place to catch empty form submissions and throw a friendly err...
28,569
<p>I am just curious, why would a windows 7 desktop, installed with ie8, have Tablet PC 2.0 in its user agent string. </p> <pre><code>Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C; Tablet PC 2.0) Mozilla/...
[ { "answer_id": 28570, "author": "John Conde", "author_id": 1253, "author_profile": "https://webmasters.stackexchange.com/users/1253", "pm_score": 2, "selected": false, "text": "<p>Browser manufacturers like to cram unecessary information into their user-agent strings for a variety of rea...
2012/04/17
[ "https://webmasters.stackexchange.com/questions/28569", "https://webmasters.stackexchange.com", "https://webmasters.stackexchange.com/users/14032/" ]
I am just curious, why would a windows 7 desktop, installed with ie8, have Tablet PC 2.0 in its user agent string. ``` Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C; Tablet PC 2.0) Mozilla/4.0 (compatibl...
This looks to me like a Media Center PC with the [tablet edition](http://windows.microsoft.com/en-GB/windows7/products/features/tablet-pc) of Windows 7 or Windows 2008 Server R2 installed (Both Identify as NT 6.1). [Hardware like this](http://www.amazon.co.uk/10-2-Windows-Tablet-PC-Processor/dp/B004D6R9T2) shows up wit...
28,606
<p>I ran across <a href="http://thomasgriffinmedia.com/blog/2010/11/how-to-leverage-browser-caching-in-wordpress-via-htaccess/" rel="nofollow">these suggested htaccess edits</a>. Is this a good practice? Is this something I should implement on my wordpress site?:</p> <pre><code>&lt;IfModule mod_expires.c&gt; ExpiresAc...
[ { "answer_id": 28607, "author": "John Conde", "author_id": 1253, "author_profile": "https://webmasters.stackexchange.com/users/1253", "pm_score": 3, "selected": true, "text": "<p>This is definitely good practice. Having the browser cache pages and resources is a great way to speed up pag...
2012/04/17
[ "https://webmasters.stackexchange.com/questions/28606", "https://webmasters.stackexchange.com", "https://webmasters.stackexchange.com/users/14767/" ]
I ran across [these suggested htaccess edits](http://thomasgriffinmedia.com/blog/2010/11/how-to-leverage-browser-caching-in-wordpress-via-htaccess/). Is this a good practice? Is this something I should implement on my wordpress site?: ``` <IfModule mod_expires.c> ExpiresActive On ExpiresByType image/jpg "access plus 1...
This is definitely good practice. Having the browser cache pages and resources is a great way to speed up page loading as well as reduce bandwidth usage on your server. I recommend checking out [Google's PageSpeed](https://developers.google.com/pagespeed/) for more tips on how to improve the performance of your web pa...
28,620
<p>I have a site that contains the following characteristics:</p> <ul> <li>Header is defined by code my team controls on subdomain B and is loaded via iframe</li> <li>Body is defined by third-party code and platform on subdomain A and is the parent page</li> <li>Footer is defined by code my team controls on subdomain B...
[ { "answer_id": 29660, "author": "Julian Walmsley", "author_id": 15417, "author_profile": "https://webmasters.stackexchange.com/users/15417", "pm_score": 0, "selected": false, "text": "<p>I'm not sure this is possible with the current version of Google Analytics and is perhaps a suggestio...
2012/04/18
[ "https://webmasters.stackexchange.com/questions/28620", "https://webmasters.stackexchange.com", "https://webmasters.stackexchange.com/users/4629/" ]
I have a site that contains the following characteristics: * Header is defined by code my team controls on subdomain B and is loaded via iframe * Body is defined by third-party code and platform on subdomain A and is the parent page * Footer is defined by code my team controls on subdomain B and is loaded via iframe ...
I'd honestly have to question the complexity of the setup you're proposing, it won't help the usability of the site overall and you'd be downloading the script three times for no good reason. Include files were developed for precisely this reason and would strongly advise you to reconsider your plan. Secondly you're b...
28,642
<p>I need to set up a SPF record to allow an alternative IP address to send our newsletter emails. The main IP hosting the site still needs to be allowed to send email also.</p> <p>Would the following work?</p> <pre><code>v=spf1 mx ip4:_MAINSITE_ mx:mail._MAINSITEDOMAIN_ ip4:_ALTIP_ -all </code></pre>
[ { "answer_id": 28870, "author": "Angelo Cork", "author_id": 14615, "author_profile": "https://webmasters.stackexchange.com/users/14615", "pm_score": 2, "selected": false, "text": "<p>I recently had to do something similar and I found a SPF record wizard hosted on microsoft.com but the re...
2012/04/19
[ "https://webmasters.stackexchange.com/questions/28642", "https://webmasters.stackexchange.com", "https://webmasters.stackexchange.com/users/14748/" ]
I need to set up a SPF record to allow an alternative IP address to send our newsletter emails. The main IP hosting the site still needs to be allowed to send email also. Would the following work? ``` v=spf1 mx ip4:_MAINSITE_ mx:mail._MAINSITEDOMAIN_ ip4:_ALTIP_ -all ```
I recently had to do something similar and I found a SPF record wizard hosted on microsoft.com but the resource got removed or moved. See the comment by vaer-k for an alternative.
28,653
<p>I read the answers in this question, but they still leave my question open: <a href="https://webmasters.stackexchange.com/questions/2272/does-google-cache-robots-txt">Does Google cache robots.txt?</a></p> <p>I didn't find a way in the Google Webmaster Tools to invoke a re-download of my <em>robots.txt</em>.</p> <p...
[ { "answer_id": 28654, "author": "John Conde", "author_id": 1253, "author_profile": "https://webmasters.stackexchange.com/users/1253", "pm_score": 4, "selected": true, "text": "<p>You can't make them re-download your robots.txt when you want them to. Google will re-crawl it and use the ne...
2012/04/19
[ "https://webmasters.stackexchange.com/questions/28653", "https://webmasters.stackexchange.com", "https://webmasters.stackexchange.com/users/12189/" ]
I read the answers in this question, but they still leave my question open: [Does Google cache robots.txt?](https://webmasters.stackexchange.com/questions/2272/does-google-cache-robots-txt) I didn't find a way in the Google Webmaster Tools to invoke a re-download of my *robots.txt*. Through some error, my *robots.txt...
You can't make them re-download your robots.txt when you want them to. Google will re-crawl it and use the new data whenever they feel it is appropriate for your site. They tend to crawl it regularly so I wouldn't expect it to take long for your updated file to be found and your pages re-crawled and re-indexed. Keep in...
28,690
<p>I know that http caching and sending 304 response is to save some bandwidth and of course some load time.</p> <p>However in my web site there are about 40 css stylesheet files and 20 javascript files (don't ask me why)</p> <p>I know that would be a great idea to combine most of them into one and reduce HTTP reques...
[ { "answer_id": 28692, "author": "john", "author_id": 660, "author_profile": "https://webmasters.stackexchange.com/users/660", "pm_score": 0, "selected": false, "text": "<p>Yes, read this detailed article/video: <a href=\"https://developers.google.com/speed/articles/caching\" rel=\"nofoll...
2012/04/20
[ "https://webmasters.stackexchange.com/questions/28690", "https://webmasters.stackexchange.com", "https://webmasters.stackexchange.com/users/14805/" ]
I know that http caching and sending 304 response is to save some bandwidth and of course some load time. However in my web site there are about 40 css stylesheet files and 20 javascript files (don't ask me why) I know that would be a great idea to combine most of them into one and reduce HTTP requests. However my q...
The best way is to set a max-age directive in the cache-control header. Specifically: ``` Cache-control: public,max-age=2592000 ``` 2592000 is the number of seconds you wish the file to be cached for (in this example it is 30 days ie 60x60x24x30). Do note however, that many users visit websites with empty caches, s...
28,702
<p>I would like to be able to make an offline version of a MediaWiki site on a weekly basis.</p> <p>The <a href="http://www.mediawiki.org/wiki/Extension%3aDumpHTML">DumpHTML</a> extension actually does what I want, as it dumps all articles and media files, but I can't see any index of all the articles it have dumped, ...
[ { "answer_id": 28703, "author": "paulmorriss", "author_id": 1643, "author_profile": "https://webmasters.stackexchange.com/users/1643", "pm_score": 4, "selected": true, "text": "<p>You could use a webcrawler tool which will save the site as HTML files. All the links will be converted, so ...
2012/04/20
[ "https://webmasters.stackexchange.com/questions/28702", "https://webmasters.stackexchange.com", "https://webmasters.stackexchange.com/users/14435/" ]
I would like to be able to make an offline version of a MediaWiki site on a weekly basis. The [DumpHTML](http://www.mediawiki.org/wiki/Extension%3aDumpHTML) extension actually does what I want, as it dumps all articles and media files, but I can't see any index of all the articles it have dumped, so I can't navigate i...
You could use a webcrawler tool which will save the site as HTML files. All the links will be converted, so you can open the main page, say, and then click on links and get to all the site. There are a number of these tools available. I use [wget](http://www.gnu.org/software/wget/), which is command line based and has...
28,733
<p>I have a php web application that allows file uploads to a specific directory.</p> <p>I would like to prevent the execution of any file that is uploaded into that directory whether it is ASP, PHP, or anything else that may be supported by IIS. I'm already blocking the upload of asp and php files at the application ...
[ { "answer_id": 28744, "author": "LazyOne", "author_id": 8354, "author_profile": "https://webmasters.stackexchange.com/users/8354", "pm_score": 4, "selected": true, "text": "<p>First of all -- this really depends on your server configuration -- if such modifications are allowed to be perf...
2012/04/20
[ "https://webmasters.stackexchange.com/questions/28733", "https://webmasters.stackexchange.com", "https://webmasters.stackexchange.com/users/14834/" ]
I have a php web application that allows file uploads to a specific directory. I would like to prevent the execution of any file that is uploaded into that directory whether it is ASP, PHP, or anything else that may be supported by IIS. I'm already blocking the upload of asp and php files at the application layer, but...
First of all -- this really depends on your server configuration -- if such modifications are allowed to be performed on directory level (section is not locked on parent/server level). **In order to disable execution of specific file extension yo need to know the handler name** that is responsible for this. On each sy...
28,779
<p>I have recently started a site. it's not even 5 months old. The site's major content is images. When naming the images, I am using google's adword tool. I am able to see keywords with most and least searches, highest and lowest competition etc etc. But what I'm not sure of is how to choose amontg these keywords, the...
[ { "answer_id": 28807, "author": "David K.", "author_id": 9123, "author_profile": "https://webmasters.stackexchange.com/users/9123", "pm_score": 3, "selected": true, "text": "<p>Easy:</p>\n\n<p><strong>one's with most searches or the one's with least</strong></p>\n\n<pre><code>--&gt; the ...
2012/04/22
[ "https://webmasters.stackexchange.com/questions/28779", "https://webmasters.stackexchange.com", "https://webmasters.stackexchange.com/users/8448/" ]
I have recently started a site. it's not even 5 months old. The site's major content is images. When naming the images, I am using google's adword tool. I am able to see keywords with most and least searches, highest and lowest competition etc etc. But what I'm not sure of is how to choose amontg these keywords, the ...
Easy: **one's with most searches or the one's with least** ``` --> the more searches the better ``` but still, this is up to you. better rank high on a low search keyword with less competition, than not rank at all for a high volume keyword ... **"one's with least competition or most"** ``` --> the least competit...
28,832
<p>I have a client that is insisting there is a method to send a URL automatically to Google to get it indexed quickly.</p> <p>Here are <a href="http://support.google.com/webmasters/bin/answer.py?hl=en&amp;answer=34397" rel="nofollow">the methods I know of</a> to tell Google about your site for indexing: 1. Link to it...
[ { "answer_id": 28834, "author": "toomanyairmiles", "author_id": 12685, "author_profile": "https://webmasters.stackexchange.com/users/12685", "pm_score": 3, "selected": false, "text": "<p>If you sign up an verify the site with Google Webmaster Tools you can <a href=\"http://support.google...
2012/04/23
[ "https://webmasters.stackexchange.com/questions/28832", "https://webmasters.stackexchange.com", "https://webmasters.stackexchange.com/users/5089/" ]
I have a client that is insisting there is a method to send a URL automatically to Google to get it indexed quickly. Here are [the methods I know of](http://support.google.com/webmasters/bin/answer.py?hl=en&answer=34397) to tell Google about your site for indexing: 1. Link to it from another site already in the Google...
If you sign up an verify the site with Google Webmaster Tools you can [submit a sitemap](http://support.google.com/webmasters/bin/answer.py?hl=en&answer=156184). It's a [simple XML format](http://www.sitemaps.org/) and pretty easy to generate each time your site is updated, this allows you to quickly submit large numbe...
28,849
<p>I am an amateur to SEO. I have a new site recently and submitted the site map to GWT. But after several weeks. I found when I search my domain in google. The site map also appears to be one of the links in the search result.</p> <p>How could I prevent if from showing up in the search result?</p>
[ { "answer_id": 28850, "author": "BluesRockAddict", "author_id": 14900, "author_profile": "https://webmasters.stackexchange.com/users/14900", "pm_score": -1, "selected": false, "text": "<p>Two things:</p>\n\n<ol>\n<li><p>You should delete sitemap from your account using Webmaster Tools (S...
2012/04/17
[ "https://webmasters.stackexchange.com/questions/28849", "https://webmasters.stackexchange.com", "https://webmasters.stackexchange.com/users/14764/" ]
I am an amateur to SEO. I have a new site recently and submitted the site map to GWT. But after several weeks. I found when I search my domain in google. The site map also appears to be one of the links in the search result. How could I prevent if from showing up in the search result?
**Stop Google indexing sitemap using HTACCESS** In my honest opinion the best method stopping Google indexing sitemaps by using the htaccess since technically robots.txt is a denying access while noinded is readable yet won't index. ``` <IfModule mod_rewrite.c> <Files sitemap.xml> Header set X-Robots-Tag "...
28,866
<p>I recently updated the <code>.htaccess</code> of my site to redirect from <code>http://www.</code> to <code>http://</code>.</p> <p>It all works fine but now I've made some changes to my site and uploaded a new <code>sitemap.xml</code> to Google Search Console (formerly Google Webmaster Tools). I'm getting the follo...
[ { "answer_id": 28861, "author": "Su'", "author_id": 4502, "author_profile": "https://webmasters.stackexchange.com/users/4502", "pm_score": 2, "selected": false, "text": "<p>The in-application report was removed last year, and <a href=\"http://analytics.blogspot.com/2011/03/evolution-of-a...
2012/04/24
[ "https://webmasters.stackexchange.com/questions/28866", "https://webmasters.stackexchange.com", "https://webmasters.stackexchange.com/users/14905/" ]
I recently updated the `.htaccess` of my site to redirect from `http://www.` to `http://`. It all works fine but now I've made some changes to my site and uploaded a new `sitemap.xml` to Google Search Console (formerly Google Webmaster Tools). I'm getting the following message: > > "We encountered an error while try...
The in-application report was removed last year, and [was replaced with an e-mail newsletter](http://analytics.blogspot.com/2011/03/evolution-of-analytics-benchmarking.html) sent directly to you (which is no longer being sent since June 2012). You ~~have~~ had to [allow data sharing](http://support.google.com/analytics...
28,868
<p>Since few monts a client website is attacked by bots. I've changed the website source (now wordpress last version), try to clean but bot find hole in sécurity ...</p> <p>After bot action i can find .htaccess files on the website with this inside:</p> <pre><code>ErrorDocument 400 http://**********.ru/upday/index.ph...
[ { "answer_id": 28869, "author": "John Conde", "author_id": 1253, "author_profile": "https://webmasters.stackexchange.com/users/1253", "pm_score": 3, "selected": false, "text": "<p>You need to completely remove every file from your website and do a fresh install of Wordpress. The odds are...
2012/04/24
[ "https://webmasters.stackexchange.com/questions/28868", "https://webmasters.stackexchange.com", "https://webmasters.stackexchange.com/users/13811/" ]
Since few monts a client website is attacked by bots. I've changed the website source (now wordpress last version), try to clean but bot find hole in sécurity ... After bot action i can find .htaccess files on the website with this inside: ``` ErrorDocument 400 http://**********.ru/upday/index.php ErrorDocument 401 h...
> > **Basic Security Steps** > > > Since Wordpress is so popular there are a lot of [drive by hacks](http://wordpress.org/tags/malware) knocking around taking advantage of flaws in basic security. All Wordpress users should take the following basic and easy steps to protect themselves:- * Do not use wp\_ as the d...
28,875
<p>I just set up HTTPS on my server, and I have an issue with redirect permanent.</p> <p>Example: <code>http://example.com/index.html</code> redirects me to <code>http://www.example.comindex.html</code>.</p> <p>The <code>/</code> (tail ending slash) is missing and I can't figure out how to fix it.</p> <p>It works with ...
[ { "answer_id": 32685, "author": "Anthony Hatzopoulos", "author_id": 17132, "author_profile": "https://webmasters.stackexchange.com/users/17132", "pm_score": 2, "selected": false, "text": "<p>Change to this and try it, notice only two VirtualHost</p>\n<pre><code>&lt;VirtualHost *:80&gt;\n...
2012/04/24
[ "https://webmasters.stackexchange.com/questions/28875", "https://webmasters.stackexchange.com", "https://webmasters.stackexchange.com/users/14913/" ]
I just set up HTTPS on my server, and I have an issue with redirect permanent. Example: `http://example.com/index.html` redirects me to `http://www.example.comindex.html`. The `/` (tail ending slash) is missing and I can't figure out how to fix it. It works with `http://www.example.com/index.html`. Here is my `http...
Change to this and try it, notice only two VirtualHost ``` <VirtualHost *:80> ServerName example.com ServerAlias *.example.com Redirect permanent / https://www.example.com/ </VirtualHost> <VirtualHost *:443> DocumentRoot /var/www/example/ ServerName www.example.com SSLEngine on SSLCertificateFile ssl.cr...
28,969
<p>Can an HTTPS request be redirected to an HTTP request in Apache? If so, how?</p>
[ { "answer_id": 28970, "author": "David Yell", "author_id": 1304, "author_profile": "https://webmasters.stackexchange.com/users/1304", "pm_score": 3, "selected": false, "text": "<p>Yes it can, and you'll want to use an Apache htaccess file to rewrite the request. It will need to be config...
2012/04/26
[ "https://webmasters.stackexchange.com/questions/28969", "https://webmasters.stackexchange.com", "https://webmasters.stackexchange.com/users/4778/" ]
Can an HTTPS request be redirected to an HTTP request in Apache? If so, how?
Yes it can, and you'll want to use an Apache htaccess file to rewrite the request. It will need to be configured in your VHost config if you are using one so that you can match on the port, as Apache doesn't know what https is in htaccess. ``` RewriteCond %{SERVER_PORT} ^443$ RewriteRule ^(.*)$ http://example.com/$1 [...
28,998
<p>I have a site that allows people to look up words that "Start with" or "End with" a certain set of characters. I am trying to figure out how to get off on the right foot with search engines and I was wondering:</p> <p>Is it better to have URLs that appear to be unique pages? For example:</p> <pre><code>mySite.co...
[ { "answer_id": 28995, "author": "Chords", "author_id": 12233, "author_profile": "https://webmasters.stackexchange.com/users/12233", "pm_score": 6, "selected": true, "text": "<p>You can exclude the hostname sending data to your profile by setting up an exclude filter. </p>\n\n<p>Alternati...
2012/04/27
[ "https://webmasters.stackexchange.com/questions/28998", "https://webmasters.stackexchange.com", "https://webmasters.stackexchange.com/users/831/" ]
I have a site that allows people to look up words that "Start with" or "End with" a certain set of characters. I am trying to figure out how to get off on the right foot with search engines and I was wondering: Is it better to have URLs that appear to be unique pages? For example: ``` mySite.com/StartsWith/pred ``` ...
You can exclude the hostname sending data to your profile by setting up an exclude filter. Alternatively, it might be better if you set up just an include filter for your own hostname to ensure you don't see anything like that in the future. [Google Analytics Filters](http://support.google.com/analytics/bin/answer.p...
29,023
<p>It seems that the HTML 5 <code>&lt;section&gt;</code> tag doesn't really add much beyond a <code>&lt;div&gt;</code> tag. Why should I use it, especially as it will not be compatible with anything below IE9?</p>
[ { "answer_id": 29031, "author": "danlefree", "author_id": 1064, "author_profile": "https://webmasters.stackexchange.com/users/1064", "pm_score": 3, "selected": true, "text": "<p>The <a href=\"http://www.whatwg.org/specs/web-apps/current-work/multipage/sections.html#the-section-element\" ...
2012/04/27
[ "https://webmasters.stackexchange.com/questions/29023", "https://webmasters.stackexchange.com", "https://webmasters.stackexchange.com/users/14998/" ]
It seems that the HTML 5 `<section>` tag doesn't really add much beyond a `<div>` tag. Why should I use it, especially as it will not be compatible with anything below IE9?
The [HTML5 Living Standard](http://www.whatwg.org/specs/web-apps/current-work/multipage/sections.html#the-section-element) describes a `section` as: ``` ... a thematic grouping of content, typically with a heading ... ``` Consider an electronics product's page on an e-commerce site, for example, in which you list a ...
29,033
<p>Today while trying to start apache server I received an error:</p> <pre><code>Apr_sockaddr_info_get() Failed </code></pre> <p>I would like to get opinions / answers to resolve this issue.</p> <p>I would like to know what exactly is wrong with my current setup and what are correct steps I need to take to resolve i...
[ { "answer_id": 33160, "author": "Anthony Hatzopoulos", "author_id": 17132, "author_profile": "https://webmasters.stackexchange.com/users/17132", "pm_score": 3, "selected": false, "text": "<p>Fix your hosts file at <code>/etc/hosts</code>.</p>\n\n<p>1) From command line type <code>hostnam...
2012/04/27
[ "https://webmasters.stackexchange.com/questions/29033", "https://webmasters.stackexchange.com", "https://webmasters.stackexchange.com/users/15005/" ]
Today while trying to start apache server I received an error: ``` Apr_sockaddr_info_get() Failed ``` I would like to get opinions / answers to resolve this issue. I would like to know what exactly is wrong with my current setup and what are correct steps I need to take to resolve it. Just to start apache server I...
Fix your hosts file at `/etc/hosts`. 1) From command line type `hostname` to get your hostname. Example output might be `example.com` 2) Edit `/etc/hosts` and change the lines to match your hostname. Example: ``` ::1 localhost.example.com localhost 127.0.0.1 localhost.example.com localhost 192.168.1.104 ...
29,038
<p>I'll get right to it because this will be long.</p> <p>I've built a WordPress site for a client on a new domain name and 301 redirected his 3 other domains to point to it. Then, I learn that he has a database associated with his site that his clients need to access. I had not noticed this, but it is there. </p> ...
[ { "answer_id": 29037, "author": "JonathanMumm", "author_id": 15011, "author_profile": "https://webmasters.stackexchange.com/users/15011", "pm_score": 3, "selected": false, "text": "<p>Falsifying the information would give them grounds to revoke the domain. You must meet the \"Canadian Pr...
2012/04/28
[ "https://webmasters.stackexchange.com/questions/29038", "https://webmasters.stackexchange.com", "https://webmasters.stackexchange.com/users/15007/" ]
I'll get right to it because this will be long. I've built a WordPress site for a client on a new domain name and 301 redirected his 3 other domains to point to it. Then, I learn that he has a database associated with his site that his clients need to access. I had not noticed this, but it is there. Logging into the...
Falsifying the information would give them grounds to revoke the domain. You must meet the "Canadian Presence Requirements" to own a .CA domain. There are ways of legally buying a .CA domain without being a citizen of Canada though. [Linked is a full list](http://support.easydns.com/canpresence.php3), some of the excl...
29,060
<p>I had an epiphany earlier when reading codinghorror. On a content website (blog/forum/website) the basic things rarely change if at all. So I was wondering if there was a way to cache them and only re-download if something changes?</p> <p>I guess there's two questions here:</p> <ol> <li>Do browsers cache CSS/Javas...
[ { "answer_id": 29064, "author": "toomanyairmiles", "author_id": 12685, "author_profile": "https://webmasters.stackexchange.com/users/12685", "pm_score": 3, "selected": true, "text": "<p>You can use your .htaccess file achieve this. FYI This is exactly what programs like YSlow! and Google...
2012/04/28
[ "https://webmasters.stackexchange.com/questions/29060", "https://webmasters.stackexchange.com", "https://webmasters.stackexchange.com/users/8957/" ]
I had an epiphany earlier when reading codinghorror. On a content website (blog/forum/website) the basic things rarely change if at all. So I was wondering if there was a way to cache them and only re-download if something changes? I guess there's two questions here: 1. Do browsers cache CSS/Javascript, if so how lon...
You can use your .htaccess file achieve this. FYI This is exactly what programs like YSlow! and Google page speed tell you to do when they talk about setting far future expiration dates for static media. I use the following code, which sets the cache expiration date to 2099, removes entity tags and enables gzip. Googl...
29,063
<p>Is it possible to embed a youtube video and hide video display and just show the player controls? That would be sufficient for playing songs.</p> <p>(I know, it would be a waste of bandwidth ;-) ...)</p>
[ { "answer_id": 29064, "author": "toomanyairmiles", "author_id": 12685, "author_profile": "https://webmasters.stackexchange.com/users/12685", "pm_score": 3, "selected": true, "text": "<p>You can use your .htaccess file achieve this. FYI This is exactly what programs like YSlow! and Google...
2012/04/28
[ "https://webmasters.stackexchange.com/questions/29063", "https://webmasters.stackexchange.com", "https://webmasters.stackexchange.com/users/13238/" ]
Is it possible to embed a youtube video and hide video display and just show the player controls? That would be sufficient for playing songs. (I know, it would be a waste of bandwidth ;-) ...)
You can use your .htaccess file achieve this. FYI This is exactly what programs like YSlow! and Google page speed tell you to do when they talk about setting far future expiration dates for static media. I use the following code, which sets the cache expiration date to 2099, removes entity tags and enables gzip. Googl...
29,135
<p>StatCounter shows yesterday as seeing 10,611 unique visitors to my site.</p> <p>I wrote a script that counted the number of unique IP addresses in yesterday's Apache access log. It counted 14,190 unique IP addresses.</p> <p>Why is there the discrepancy? I would understand a small number of IP addresses would maybe...
[ { "answer_id": 29146, "author": "Mohammad Ali Akbari", "author_id": 4675, "author_profile": "https://webmasters.stackexchange.com/users/4675", "pm_score": 1, "selected": false, "text": "<p>many reason can cause this mismatch, for example:</p>\n\n<ol>\n<li>you use server-side counter whic...
2012/04/30
[ "https://webmasters.stackexchange.com/questions/29135", "https://webmasters.stackexchange.com", "https://webmasters.stackexchange.com/users/9244/" ]
StatCounter shows yesterday as seeing 10,611 unique visitors to my site. I wrote a script that counted the number of unique IP addresses in yesterday's Apache access log. It counted 14,190 unique IP addresses. Why is there the discrepancy? I would understand a small number of IP addresses would maybe be for crawlers ...
Providing initial explanation re difference between server-side stats and online stats for the benefit of other users: Apache access log analyses all the traffic **to your server**. StatCounter tracks all the visits **to your site**. Your server gets **a lot more** traffic than your site, because server traffic incl...
29,159
<p>when we create a hyperlink on a website or cms, why does it default to on hover red with a text decoration of underline? Is there a specific SEO reasoning behind an on hover red hyperlink? </p> <p>I have been told many times to force the style of the hyperlinks to match the design, so that means changing the css fo...
[ { "answer_id": 29160, "author": "toomanyairmiles", "author_id": 12685, "author_profile": "https://webmasters.stackexchange.com/users/12685", "pm_score": 4, "selected": true, "text": "<p>There should be a section in your site's style sheet that looks something like</p>\n\n<pre><code>a:hov...
2012/05/01
[ "https://webmasters.stackexchange.com/questions/29159", "https://webmasters.stackexchange.com", "https://webmasters.stackexchange.com/users/14211/" ]
when we create a hyperlink on a website or cms, why does it default to on hover red with a text decoration of underline? Is there a specific SEO reasoning behind an on hover red hyperlink? I have been told many times to force the style of the hyperlinks to match the design, so that means changing the css for `visited...
There should be a section in your site's style sheet that looks something like ``` a:hover { color: red; text-decoration: underline; } ``` You simply have to change these values to one's that match your design. As to SEO, search engines do not take into account elements of visual design, unless you deliberately [tr...
29,259
<p>The target is to provide the proper semantic for a page that briefly lists existent articles.</p> <p>At the moment my idea is the following:</p> <pre><code>&lt;body&gt; &lt;article&gt; &lt;header&gt; &lt;h1&gt;Latest Articles&lt;/h1&gt; &lt;/header&gt; &lt;article&gt; &lt;header&gt; ...
[ { "answer_id": 29260, "author": "Florian Margaine", "author_id": 13650, "author_profile": "https://webmasters.stackexchange.com/users/13650", "pm_score": 2, "selected": false, "text": "<p>Alright, I stole this from html5doctors.</p>\n\n<p><img src=\"https://html5doctor.com/downloads/h5d-...
2012/05/01
[ "https://webmasters.stackexchange.com/questions/29259", "https://webmasters.stackexchange.com", "https://webmasters.stackexchange.com/users/15166/" ]
The target is to provide the proper semantic for a page that briefly lists existent articles. At the moment my idea is the following: ``` <body> <article> <header> <h1>Latest Articles</h1> </header> <article> <header> <h1><a href="/article-1">First Article's Heading</a></h1> ...
Frankly, I'd do it exactly the same as I would in HTML4. ``` <body> <h1>Latest Articles</h1> <h2><a href="/article-1">First Article's Heading</a></h2> <p>First article's brief description.</p> <h2><a href="/article-2">Second Article's Heading</a></h2> <p>Second article's brief description.</p> ...
29,362
<p>I tried to validate my css code using W3C tidy and the w3c website is showing me the error that </p> <blockquote> <p>Value Error : font / is not a font-family value : 11px / 14px "Trebuchet MS",sans-serif</p> </blockquote> <p>So what's wrong with it, earlier it was not a code error, I even copied some similar ...
[ { "answer_id": 29363, "author": "toomanyairmiles", "author_id": 12685, "author_profile": "https://webmasters.stackexchange.com/users/12685", "pm_score": 1, "selected": false, "text": "<p>It looks like you're trying to validate a CSS3 property in a CSS2 validator. Switch the validator pro...
2012/05/05
[ "https://webmasters.stackexchange.com/questions/29362", "https://webmasters.stackexchange.com", "https://webmasters.stackexchange.com/users/15206/" ]
I tried to validate my css code using W3C tidy and the w3c website is showing me the error that > > Value Error : font / is not a font-family value : 11px / 14px > "Trebuchet MS",sans-serif > > > So what's wrong with it, earlier it was not a code error, I even copied some similar code from professional blogger ...
This seems to be a bug that just crept in into the W3C CSS Validator. It has been reported on the validator’s discussion list: <http://lists.w3.org/Archives/Public/www-validator-css/2012May/0003.html> Recently, there have been bugs especially in font-related CSS rules in the validator, since its code has been renewed ...
29,459
<p>Is there a free script which I can use to:</p> <p>Share some PDF with my partners. But i need the user to reach only those PDFs which they have privileges for. So I need:</p> <ul> <li>login script with registration (i will make the registration if need. So registration function will public)</li> <li>every user sho...
[ { "answer_id": 29581, "author": "BelgianAlien", "author_id": 15362, "author_profile": "https://webmasters.stackexchange.com/users/15362", "pm_score": 2, "selected": false, "text": "<p>I would recommend using Google Docs for this.</p>\n\n<p>In broad strokes:\nIf you insist on creating thi...
2012/05/08
[ "https://webmasters.stackexchange.com/questions/29459", "https://webmasters.stackexchange.com", "https://webmasters.stackexchange.com/users/15266/" ]
Is there a free script which I can use to: Share some PDF with my partners. But i need the user to reach only those PDFs which they have privileges for. So I need: * login script with registration (i will make the registration if need. So registration function will public) * every user should have their own member ar...
I would recommend using Google Docs for this. In broad strokes: If you insist on creating this feature yourself, you would need to store your user info (user ID, Password, etc) in a table in a database. Then you'd need a second table which has the info on the PDF files (link, name, which user ID's have access to it...
29,467
<p>The recent PHP CGI flaw exposed (CVE-2012-1823) has me wondering if some of the legacy sites that I've inherited might be vulnerable. (see <a href="http://phys.org/news/2012-05-php-group-vulnerability.html" rel="nofollow">Physorg article</a>)</p> <p>Does anybody know of a means to externally scan your websites to s...
[ { "answer_id": 29471, "author": "Jeremy", "author_id": 15275, "author_profile": "https://webmasters.stackexchange.com/users/15275", "pm_score": 3, "selected": true, "text": "<p>Asides from going through each site manually using the vulnerable query string</p>\n\n<pre><code>http://localho...
2012/05/08
[ "https://webmasters.stackexchange.com/questions/29467", "https://webmasters.stackexchange.com", "https://webmasters.stackexchange.com/users/10810/" ]
The recent PHP CGI flaw exposed (CVE-2012-1823) has me wondering if some of the legacy sites that I've inherited might be vulnerable. (see [Physorg article](http://phys.org/news/2012-05-php-group-vulnerability.html)) Does anybody know of a means to externally scan your websites to see if they might be running a PHP se...
Asides from going through each site manually using the vulnerable query string ``` http://localhost/index.php?-s ``` You could write a script to query an array of URLs and just load the page and search for ``` <?php ``` Seems like a waste to me since if all the sites are on the same server you will only need to ...
29,505
<p>In the SDL Tridion 2011 content management system, when editing a component in a rich text field (RTF) I noticed pressing enter results in different HTML tags in the source.</p> <p>I think it's based on browser since I get <code>&lt;div&gt;</code> with Chrome. How do I make sure I get <code>&lt;p&gt;</code> tags in...
[ { "answer_id": 29506, "author": "Chris Summers", "author_id": 15310, "author_profile": "https://webmasters.stackexchange.com/users/15310", "pm_score": 3, "selected": false, "text": "<p>We have exactly the same issue - this is based on specific browser behavior. I have found Fire Fox, IE ...
2012/04/25
[ "https://webmasters.stackexchange.com/questions/29505", "https://webmasters.stackexchange.com", "https://webmasters.stackexchange.com/users/15311/" ]
In the SDL Tridion 2011 content management system, when editing a component in a rich text field (RTF) I noticed pressing enter results in different HTML tags in the source. I think it's based on browser since I get `<div>` with Chrome. How do I make sure I get `<p>` tags in all browsers? **Update:** SDL Tridion 2011...
We have exactly the same issue - this is based on specific browser behavior. I have found Fire Fox, IE and Chrome to all give different results. If memory serves well: * IE gives `<p>` tags * Fire Fox gives a double `<br/>` * Chrome uses a `<div/>` tag I have a ticket filed with Customer Support about this, but as of...
29,587
<p>I am using webspace hosted on IIS 7.5 (according to phpinfo() ). Currently, I am enabling directory listings for a directory and all its subdirectories by placing a web.config like</p> <pre><code>&lt;location path="."&gt; &lt;system.webServer&gt; &lt;directoryBrowse enabled="false" /&gt; &lt;/system.w...
[ { "answer_id": 29592, "author": "MrWhite", "author_id": 1243, "author_profile": "https://webmasters.stackexchange.com/users/1243", "pm_score": 3, "selected": true, "text": "<p>If this works in a similar way to Apache, then you could simply create an index.php file (or whatever your direc...
2012/05/11
[ "https://webmasters.stackexchange.com/questions/29587", "https://webmasters.stackexchange.com", "https://webmasters.stackexchange.com/users/10565/" ]
I am using webspace hosted on IIS 7.5 (according to phpinfo() ). Currently, I am enabling directory listings for a directory and all its subdirectories by placing a web.config like ``` <location path="."> <system.webServer> <directoryBrowse enabled="false" /> </system.webServer> </location> ``` in it. ...
If this works in a similar way to Apache, then you could simply create an index.php file (or whatever your directory index file is) in the directory that you don't want to see a directory listing.
29,616
<p>I noticed that in the "Speed Dial" feature of Opera, some sites will display their logo as preview image, while other sites just a screenshot of how the site looks when you add it to speed dial. I don't know for sure but I think Chrome has the same behavior.</p> <p>Stackoverflow for example has the logo :D</p> <p>...
[ { "answer_id": 29617, "author": "toomanyairmiles", "author_id": 12685, "author_profile": "https://webmasters.stackexchange.com/users/12685", "pm_score": 4, "selected": true, "text": "<p>After the release of Barracuda Opera uses the <code>&lt;link rel=”icon”&gt;</code> or <code>&lt;link r...
2012/05/12
[ "https://webmasters.stackexchange.com/questions/29616", "https://webmasters.stackexchange.com", "https://webmasters.stackexchange.com/users/15386/" ]
I noticed that in the "Speed Dial" feature of Opera, some sites will display their logo as preview image, while other sites just a screenshot of how the site looks when you add it to speed dial. I don't know for sure but I think Chrome has the same behavior. Stackoverflow for example has the logo :D So how do I make ...
After the release of Barracuda Opera uses the `<link rel=”icon”>` or `<link rel="apple-touch-icon">` meta in the site's header to find the logo, but it will only show in Opera if the attached image is wider than 114px. In stackoverflow's case the code looks like this:- ``` <link rel="apple-touch-icon" href="http://cd...
29,633
<p>I just want to setup a local server on my pc. I have WAMP installed. Now, for test, I wrote www.google.com www.google.temp in <strong>hosts</strong> file, in location <strong>C:\WINDOWS\system32\drivers\etc</strong>. But, when I am loading www.google.temp, it's not loading anything. Actually, I want to make my ...
[ { "answer_id": 29634, "author": "ionFish", "author_id": 13612, "author_profile": "https://webmasters.stackexchange.com/users/13612", "pm_score": 3, "selected": true, "text": "<p>You want to set up the hosts file like this: (Note: wildcards are not supported)</p>\n\n<pre><code>#the hash m...
2012/05/12
[ "https://webmasters.stackexchange.com/questions/29633", "https://webmasters.stackexchange.com", "https://webmasters.stackexchange.com/users/15138/" ]
I just want to setup a local server on my pc. I have WAMP installed. Now, for test, I wrote www.google.com www.google.temp in **hosts** file, in location **C:\WINDOWS\system32\drivers\etc**. But, when I am loading www.google.temp, it's not loading anything. Actually, I want to make my folder C:/wamp/www/test to load ...
You want to set up the hosts file like this: (Note: wildcards are not supported) ``` #the hash marks make the system ignore the text here, you can make comments 127.0.0.1 www.google.com 127.0.0.1 google.com ``` You will not be able to visit google.com anymore, so I recommend something like this: ``` #dev server 127...
29,641
<p>I have a PHP file, index.php, that is set as the index file for my site. If someone wants to pull up a value for <code>a</code>, as an example, then they would type <code>http://www.website.com/?value=a</code>. Is it possible to set up a redirect so that the user just has to type in <code>http://www.website.com/a</c...
[ { "answer_id": 29642, "author": "Jack Humphries", "author_id": 10099, "author_profile": "https://webmasters.stackexchange.com/users/10099", "pm_score": 1, "selected": false, "text": "<p>I set a RedirectMatch with the pattern <code>/(.*)</code> to <code>second.example.com/?a=$1</code>. It...
2012/05/13
[ "https://webmasters.stackexchange.com/questions/29641", "https://webmasters.stackexchange.com", "https://webmasters.stackexchange.com/users/10099/" ]
I have a PHP file, index.php, that is set as the index file for my site. If someone wants to pull up a value for `a`, as an example, then they would type `http://www.website.com/?value=a`. Is it possible to set up a redirect so that the user just has to type in `http://www.website.com/a`? I tried setting up a redirect ...
I'm not sure if this is possible with [mod\_alias](http://httpd.apache.org/docs/current/mod/mod_alias.html), but it certainly can be done with [mod\_rewrite](http://httpd.apache.org/docs/current/mod/mod_rewrite.html). As [walker suggests](https://webmasters.stackexchange.com/a/29647), it's probably more user-friendly t...
29,710
<p>I have read all the articles but still must be doing something wrong... I modified the httpd-vhosts.conf file to access the project I am working on... I have tried many different configurations and none work. My apache service will not start (I am on Windows 7)... any ideas would be helpful - here is the code I adde...
[ { "answer_id": 29712, "author": "Erdogan", "author_id": 15445, "author_profile": "https://webmasters.stackexchange.com/users/15445", "pm_score": 2, "selected": false, "text": "<p>First;</p>\n\n<p>add port to your ServerName</p>\n\n<pre><code>&lt; VirtualHost *:80 &gt; \n DocumentRoot...
2012/05/14
[ "https://webmasters.stackexchange.com/questions/29710", "https://webmasters.stackexchange.com", "https://webmasters.stackexchange.com/users/15444/" ]
I have read all the articles but still must be doing something wrong... I modified the httpd-vhosts.conf file to access the project I am working on... I have tried many different configurations and none work. My apache service will not start (I am on Windows 7)... any ideas would be helpful - here is the code I added t...
First; add port to your ServerName ``` < VirtualHost *:80 > DocumentRoot C:/server/htdocs ServerName localhost:80 < /VirtualHost > ``` Second Chance, give a different name to ServerName and add the ServerName to the windows hosts file, this is located in “C:\windows\system32\drivers\etc\hosts”. Open ...
29,718
<p>Most of the server space vendors have two type of product:</p> <ol> <li><p>They say this much space inside that you can park/add NUMBER OF domain</p></li> <li><p>Here also that much space inside that you can only park/add ONE domain but you can have number of subdomains.</p></li> </ol> <p>So now in option 2:</p> ...
[ { "answer_id": 29719, "author": "Liam Kenneth", "author_id": 15452, "author_profile": "https://webmasters.stackexchange.com/users/15452", "pm_score": 3, "selected": false, "text": "<p>If xyz.com &amp; demo1.abc.com are both indexed in to google, one of them will be harmed for duplicate c...
2012/05/15
[ "https://webmasters.stackexchange.com/questions/29718", "https://webmasters.stackexchange.com", "https://webmasters.stackexchange.com/users/13920/" ]
Most of the server space vendors have two type of product: 1. They say this much space inside that you can park/add NUMBER OF domain 2. Here also that much space inside that you can only park/add ONE domain but you can have number of subdomains. So now in option 2: I have parked one main domain as `abc.com`. I have ...
If xyz.com & demo1.abc.com are both indexed in to google, one of them will be harmed for duplicate content. but if one of them is a 301 redirect then everything will be fine.
29,720
<p>I'm working on web projects. My scenario is I have two web applications running on one single web server (Apache). Due to my company policy, they ask me to put both of them on SSL (Port #443), no other way round.</p> <p>Here is where I have a question coming up on my mind. As far as I understand, we can only have o...
[ { "answer_id": 29726, "author": "Zhaph - Ben Duguid", "author_id": 60, "author_profile": "https://webmasters.stackexchange.com/users/60", "pm_score": 3, "selected": true, "text": "<p>It looks like this is possible, provided all the required pieces of the puzzle are in place.</p>\n\n<p>Ac...
2012/05/15
[ "https://webmasters.stackexchange.com/questions/29720", "https://webmasters.stackexchange.com", "https://webmasters.stackexchange.com/users/15453/" ]
I'm working on web projects. My scenario is I have two web applications running on one single web server (Apache). Due to my company policy, they ask me to put both of them on SSL (Port #443), no other way round. Here is where I have a question coming up on my mind. As far as I understand, we can only have one applica...
It looks like this is possible, provided all the required pieces of the puzzle are in place. According to the Tech Republic article [Configure Apache to support multiple SSL sites on a single IP address](http://www.techrepublic.com/blog/opensource/configure-apache-to-support-multiple-ssl-sites-on-a-single-ip-address/9...
29,723
<p>Since the <code>Google Analytics</code> snippet is available in the source code of the page (e.g. below is stackexchange's)</p> <pre><code> &lt;script type="text/javascript"&gt;var _gaq=_gaq||[];_gaq.push(['_setAccount','UA-5620270-24']); _gaq.push(['_setDomainName','.stackexchange.com']); _gaq.pu...
[ { "answer_id": 29728, "author": "toomanyairmiles", "author_id": 12685, "author_profile": "https://webmasters.stackexchange.com/users/12685", "pm_score": 2, "selected": false, "text": "<p>So far as I understand it the tag is locked to traffic from a domain/subdomain or group of domains un...
2012/05/15
[ "https://webmasters.stackexchange.com/questions/29723", "https://webmasters.stackexchange.com", "https://webmasters.stackexchange.com/users/8848/" ]
Since the `Google Analytics` snippet is available in the source code of the page (e.g. below is stackexchange's) ``` <script type="text/javascript">var _gaq=_gaq||[];_gaq.push(['_setAccount','UA-5620270-24']); _gaq.push(['_setDomainName','.stackexchange.com']); _gaq.push(['_setCustomVar', 2, 'accoun...
there currently aren't any safeguards in place, and while uncommon people can spam your account, for example, if they hold a grudge. If you are spammed you cannot remove this data. It is best to put in place a precautionary filter, selecting 'include only' and 'traffic from the domains' and setting this to your domain...
29,800
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="https://webmasters.stackexchange.com/questions/26467/refactoring-large-old-css-files">Refactoring large/old CSS files</a> </p> </blockquote> <p>Wondering if anyone knows of a product that would help you to "see" all the css styles currently defin...
[ { "answer_id": 29804, "author": "Antonio Bakula", "author_id": 4599, "author_profile": "https://webmasters.stackexchange.com/users/4599", "pm_score": 2, "selected": false, "text": "<p>Use <a href=\"http://getfirebug.com/\" rel=\"nofollow noreferrer\">Firebug</a>, look at the html tab and...
2012/05/17
[ "https://webmasters.stackexchange.com/questions/29800", "https://webmasters.stackexchange.com", "https://webmasters.stackexchange.com/users/2907/" ]
> > **Possible Duplicate:** > > [Refactoring large/old CSS files](https://webmasters.stackexchange.com/questions/26467/refactoring-large-old-css-files) > > > Wondering if anyone knows of a product that would help you to "see" all the css styles currently defined on a page. For example... Say I'm working on a ...
Use [Firebug](http://getfirebug.com/), look at the html tab and there you will have css rules for current markup element, here is a screenshot : ![enter image description here](https://i.stack.imgur.com/OWM9T.png)
29,813
<p>I need to add this values to my htaccess:</p> <pre><code>suhosin.request.max_vars = 8000 suhosin.post.max_vars = 8000 </code></pre> <p>If I just add them like that I get an <strong>Internal Server Error</strong> </p> <p>Which is the right way to include them?</p> <p><img src="https://i.stack.imgur.com/zkXL9.png"...
[ { "answer_id": 29815, "author": "Justin Pearce", "author_id": 10412, "author_profile": "https://webmasters.stackexchange.com/users/10412", "pm_score": 4, "selected": true, "text": "<p>The problem is that Apache doesn't know what to do with those values, hence the internal server error. Y...
2012/05/17
[ "https://webmasters.stackexchange.com/questions/29813", "https://webmasters.stackexchange.com", "https://webmasters.stackexchange.com/users/14598/" ]
I need to add this values to my htaccess: ``` suhosin.request.max_vars = 8000 suhosin.post.max_vars = 8000 ``` If I just add them like that I get an **Internal Server Error** Which is the right way to include them? ![enter image description here](https://i.stack.imgur.com/zkXL9.png)
The problem is that Apache doesn't know what to do with those values, hence the internal server error. You need to change the lines to the following: ``` php_value suhosin.post.max_vars 8000 php_value suhosin.request.max_vars 8000 ``` The `php_value` causes the setting to be passed along to PHP. If you were setting ...
29,829
<p>Can I make a Google +1 button +1 a specific URL - e.g. my front page, <a href="http://www.givingwhatwecan.org/" rel="nofollow">http://www.givingwhatwecan.org/</a> - rather than the URL the button's on? I've <a href="http://www.nicheprofitclassroom.com/blog/google-1/" rel="nofollow">read</a> that you can do this by p...
[ { "answer_id": 29840, "author": "Su'", "author_id": 4502, "author_profile": "https://webmasters.stackexchange.com/users/4502", "pm_score": 4, "selected": true, "text": "<p>Your code snippet does not match the one over at NicheProfit. (Though it does match the <em>description</em>, which ...
2012/05/17
[ "https://webmasters.stackexchange.com/questions/29829", "https://webmasters.stackexchange.com", "https://webmasters.stackexchange.com/users/5653/" ]
Can I make a Google +1 button +1 a specific URL - e.g. my front page, <http://www.givingwhatwecan.org/> - rather than the URL the button's on? I've [read](http://www.nicheprofitclassroom.com/blog/google-1/) that you can do this by putting that URL between the g:plusone tags like so: ``` <g:plusone>http://www.givingwha...
Your code snippet does not match the one over at NicheProfit. (Though it does match the *description*, which is inaccurate.) The custom URL is added as an href attribute on the `g:plusone` element: ``` <g:plusone href="http://www.example.com/"></g:plusone> ``` Alternately, just use [Google's code generator](http://...
29,883
<p>I am having EXTREME bot problems on the some of my websites within my hosting account. The bots utilize over 98% of my CPU resources and 99% of my bandwidth for my entire hosting account. These bots are generating over <strong>1 GB of traffic per hour</strong> for my sites. The real human traffic for all of these si...
[ { "answer_id": 29884, "author": "web_bod", "author_id": 15534, "author_profile": "https://webmasters.stackexchange.com/users/15534", "pm_score": 2, "selected": false, "text": "<p>You could set your script to throw a 404 error based on the user agent string provided by the bots - they'll ...
2012/05/18
[ "https://webmasters.stackexchange.com/questions/29883", "https://webmasters.stackexchange.com", "https://webmasters.stackexchange.com/users/15535/" ]
I am having EXTREME bot problems on the some of my websites within my hosting account. The bots utilize over 98% of my CPU resources and 99% of my bandwidth for my entire hosting account. These bots are generating over **1 GB of traffic per hour** for my sites. The real human traffic for all of these sites is **less th...
If `rss2html.php` is not being used directly by the client (that is, if it's PHP always using it rather than it being a link or something), then forget trying to block bots. All you really have to do is define a constant or something in the main page, then `include` the other script. In the other script, check whether ...
29,898
<p>I have created a virtual sever as below for my site:<br> <img src="https://i.stack.imgur.com/Yh3ye.jpg" alt="enter image description here"></p> <p>I've specified the folder and domain name:</p> <p><img src="https://i.stack.imgur.com/U5Qea.jpg" alt="enter image description here"></p> <p>And I created a master zone...
[ { "answer_id": 29926, "author": "ndrix", "author_id": 15549, "author_profile": "https://webmasters.stackexchange.com/users/15549", "pm_score": 0, "selected": false, "text": "<p>Is that your real apache conf snippet (with example.com instead of your real domain name)? If so, change the e...
2012/05/19
[ "https://webmasters.stackexchange.com/questions/29898", "https://webmasters.stackexchange.com", "https://webmasters.stackexchange.com/users/11779/" ]
I have created a virtual sever as below for my site: ![enter image description here](https://i.stack.imgur.com/Yh3ye.jpg) I've specified the folder and domain name: ![enter image description here](https://i.stack.imgur.com/U5Qea.jpg) And I created a master zone for the domain, and NS1 and NS2 has been set for the...
It was all OK, but the problem was that Bind server hadn't been started. I couldn't gain any success in webmin so I switched to Kloxo and now everything works like a charm.
29,944
<p>I have a website which still shows old robots.txt in the google webmaster tools.</p> <pre><code>User-agent: * Disallow: / </code></pre> <p>Which is blocking Googlebot. I have removed old file updated new robots.txt file with almost full access &amp; uploaded it yesterday but it is still showing me the old version...
[ { "answer_id": 29945, "author": "Sherwin Flight", "author_id": 14331, "author_profile": "https://webmasters.stackexchange.com/users/14331", "pm_score": 0, "selected": false, "text": "<p>Usually Google checks regularly for changes to your robots.txt file.</p>\n\n<p>If you sign up for a Go...
2012/05/21
[ "https://webmasters.stackexchange.com/questions/29944", "https://webmasters.stackexchange.com", "https://webmasters.stackexchange.com/users/15564/" ]
I have a website which still shows old robots.txt in the google webmaster tools. ``` User-agent: * Disallow: / ``` Which is blocking Googlebot. I have removed old file updated new robots.txt file with almost full access & uploaded it yesterday but it is still showing me the old version of robots.txt Latest updated c...
This is from Google Webmaster Developers site <https://developers.google.com/webmasters/control-crawl-index/docs/faq> > > How long will it take for changes in my robots.txt file to affect my > search results? > > > First, the cache of the robots.txt file must be refreshed (we > generally cache the contents for up...
30,032
<p>Is <code>xmlns</code> appropriate in HTML5?</p> <pre><code>&lt;!DOCTYPE html&gt; &lt;html xmlns="http://www.w3.org/1999/xhtml"&gt; ... &lt;/html&gt; </code></pre> <p>Also, which is preferred, <code>&lt;!DOCTYPE html&gt;</code> or <code>&lt;!doctype html&gt;</code>?</p>
[ { "answer_id": 30034, "author": "Yohann", "author_id": 15612, "author_profile": "https://webmasters.stackexchange.com/users/15612", "pm_score": 3, "selected": false, "text": "<p>According to <a href=\"http://dev.w3.org/html5/html-author/\">HTML5 Reference</a>, <code>xmlns</code> is relev...
2012/05/22
[ "https://webmasters.stackexchange.com/questions/30032", "https://webmasters.stackexchange.com", "https://webmasters.stackexchange.com/users/10884/" ]
Is `xmlns` appropriate in HTML5? ``` <!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml"> ... </html> ``` Also, which is preferred, `<!DOCTYPE html>` or `<!doctype html>`?
The HTML5 drafts are partly rather complicated and abstract. But on the basis of somewhat vague statements in them as well as the <http://validator.w3.org> behavior (which can be expected to reflect the intentions of the authors of HTML5 drafts, the answers seem to be: The `xmlns` attribute is allowed but not required...
30,136
<p>Is it possible to set custom page url parameter (named <strong>utmp</strong> in request), when tracking events with Google Analytics?</p> <p>I have set custom url for tracking pages ['_trackPageview', 'www.my.url.com/...'] But that does not have effect for events.</p>
[ { "answer_id": 30174, "author": "HESO", "author_id": 15714, "author_profile": "https://webmasters.stackexchange.com/users/15714", "pm_score": -1, "selected": false, "text": "<p>Read the <a href=\"https://developers.google.com/analytics/devguides/collection/gajs/eventTrackerGuide?hl=es\" ...
2012/05/25
[ "https://webmasters.stackexchange.com/questions/30136", "https://webmasters.stackexchange.com", "https://webmasters.stackexchange.com/users/10058/" ]
Is it possible to set custom page url parameter (named **utmp** in request), when tracking events with Google Analytics? I have set custom url for tracking pages ['\_trackPageview', 'www.my.url.com/...'] But that does not have effect for events.
You can use this: ``` _gaq.push(['_set', 'page', '/mypage']); _gaq.push(['_trackPageview']); ``` where `/mypage` is your virtual URL. Make sure you set the page before `_trackPageview`.
30,165
<p>We have a constantly changing list of IPs that needs to be filtered out of google analytics, is there some API, or way to fetch the list of IPs to be included in a Google Analytics filter?</p>
[ { "answer_id": 30184, "author": "toomanyairmiles", "author_id": 12685, "author_profile": "https://webmasters.stackexchange.com/users/12685", "pm_score": 1, "selected": true, "text": "<p>Sadly, no , although this would be a great feature though. The best thing you can do is block ranges o...
2012/05/26
[ "https://webmasters.stackexchange.com/questions/30165", "https://webmasters.stackexchange.com", "https://webmasters.stackexchange.com/users/14547/" ]
We have a constantly changing list of IPs that needs to be filtered out of google analytics, is there some API, or way to fetch the list of IPs to be included in a Google Analytics filter?
Sadly, no , although this would be a great feature though. The best thing you can do is block ranges of IP, you can do this with the following format:- ``` 192.168.0.1 to 192.168.0.255 ``` Regex's to ``` ^192\.168\.0\.([1-9]|[1-9][0-9]|1([0-9][0-9])|2([0-4][0-9]|5[0-5]))$ ``` Google have an IP [range generation t...
30,190
<p>If I have lots of images appearing tumblr blogs, the sort of tumblogs with very little text just reams and reams of images for people to browse through. If my image is embeded in their site like this :</p> <pre><code>&lt;a href="http://example.com" target="blank"&gt; &lt;img src="example.com/cat.jpg" alt="cute cat...
[ { "answer_id": 30199, "author": "Mike Hudson", "author_id": 4461, "author_profile": "https://webmasters.stackexchange.com/users/4461", "pm_score": 4, "selected": true, "text": "<p>Yes, the ALTernate attribute acts as 'anchor text' for links that contain images.</p>\n\n<p>A recent test fo...
2012/05/27
[ "https://webmasters.stackexchange.com/questions/30190", "https://webmasters.stackexchange.com", "https://webmasters.stackexchange.com/users/14905/" ]
If I have lots of images appearing tumblr blogs, the sort of tumblogs with very little text just reams and reams of images for people to browse through. If my image is embeded in their site like this : ``` <a href="http://example.com" target="blank"> <img src="example.com/cat.jpg" alt="cute cat"/> </a> ``` so the ...
Yes, the ALTernate attribute acts as 'anchor text' for links that contain images. A recent test found both Bing and Google indexed/ranked ALT attribute values: <http://www.webmasterworld.com/google/4265397.htm> Also, you need to consider that Google operates functionally like the lowest common browsing denominator (l...
30,209
<p>I'm trying to achieve quite simple task actually.</p> <p>I bind application to a port, I enable SSLEngine at each VirtualHost entry for that port. Everything works beside one thing: if you type url that starts with HTTP://, not HTTPS://, you get the Bad Request error hinting you to use HTTPS:// request scheme. So t...
[ { "answer_id": 30210, "author": "Bruno", "author_id": 11628, "author_profile": "https://webmasters.stackexchange.com/users/11628", "pm_score": 2, "selected": true, "text": "<p>Apache Httpd, like most servers, doesn't support using the same port for two different protocols (HTTP and SSL/T...
2012/05/27
[ "https://webmasters.stackexchange.com/questions/30209", "https://webmasters.stackexchange.com", "https://webmasters.stackexchange.com/users/15724/" ]
I'm trying to achieve quite simple task actually. I bind application to a port, I enable SSLEngine at each VirtualHost entry for that port. Everything works beside one thing: if you type url that starts with HTTP://, not HTTPS://, you get the Bad Request error hinting you to use HTTPS:// request scheme. So the real qu...
Apache Httpd, like most servers, doesn't support using the same port for two different protocols (HTTP and SSL/TLS here). Doing so would require the server to be able to detect the protocol based on the content of the initial request: whether it's looks like an HTTP request or if it's an SSL/TLS Client Hello message. ...
30,226
<p>In an eCommerce site, I have products that can be under more than 1 category, this causes multiple URLs for the same product. The reason being, is that if a user clicks on category A then on product A the breadcrumb trail shows a link back to category A.</p> <p>The only issue is, in order to ensure that the breadcr...
[ { "answer_id": 30227, "author": "Digital Lightcraft", "author_id": 15631, "author_profile": "https://webmasters.stackexchange.com/users/15631", "pm_score": 2, "selected": false, "text": "<p>I would do something similar (breadcrumbs are really only for the user, not for search.) I would ...
2012/05/28
[ "https://webmasters.stackexchange.com/questions/30226", "https://webmasters.stackexchange.com", "https://webmasters.stackexchange.com/users/1587/" ]
In an eCommerce site, I have products that can be under more than 1 category, this causes multiple URLs for the same product. The reason being, is that if a user clicks on category A then on product A the breadcrumb trail shows a link back to category A. The only issue is, in order to ensure that the breadcrumb truly ...
This is a problem because it potentially will cause duplicate content issues with Google. But you can just use [canonical URLs](http://googlewebmastercentral.blogspot.com/2009/02/specify-your-canonical.html) to indicate the one URL you want to represent that page. That easily solves the problem.
30,234
<p><em>I have quite a lot of issues I'd like to hear your opinion on, so I hope I'll manage to explain it well enough. I should also note that I'm beginner equipped only with the knowledge of HTML and CSS so although I'm almost sure that there is a simple solution using powerful PHP, <strong>it won't help me</strong>.<...
[ { "answer_id": 30240, "author": "ionFish", "author_id": 13612, "author_profile": "https://webmasters.stackexchange.com/users/13612", "pm_score": 5, "selected": true, "text": "<p>The reason we use <code>index.html</code> or <code>home.html</code> or derivitives thereof, is because the web...
2012/05/28
[ "https://webmasters.stackexchange.com/questions/30234", "https://webmasters.stackexchange.com", "https://webmasters.stackexchange.com/users/15742/" ]
*I have quite a lot of issues I'd like to hear your opinion on, so I hope I'll manage to explain it well enough. I should also note that I'm beginner equipped only with the knowledge of HTML and CSS so although I'm almost sure that there is a simple solution using powerful PHP, **it won't help me**.* Let's say that I ...
The reason we use `index.html` or `home.html` or derivitives thereof, is because the webserver software *itself* actually looks for that and serves it. For example: This is INVALID: (www-directory) ``` /var/www/ |_blog.html |_blog/ |_math.html |_page2.html |_page3.html |_(...) ``` This will in fact get serv...
30,266
<p>I need to (permanent) redirect all of the following:</p> <ol> <li><code>www.example.com</code></li> <li><code>www.example.com/folder</code></li> <li><code>sub.example.com</code></li> <li><code>sub.example.com/folder</code></li> </ol> <p>Basically, all URLs that are reachable without being intended to: <code>www.ne...
[ { "answer_id": 30270, "author": "sam", "author_id": 14905, "author_profile": "https://webmasters.stackexchange.com/users/14905", "pm_score": 0, "selected": false, "text": "<p>To redirect all files on your domain use this in your <em>.htaccess</em> file if you are on a UNIX web server:</p...
2012/05/29
[ "https://webmasters.stackexchange.com/questions/30266", "https://webmasters.stackexchange.com", "https://webmasters.stackexchange.com/users/14437/" ]
I need to (permanent) redirect all of the following: 1. `www.example.com` 2. `www.example.com/folder` 3. `sub.example.com` 4. `sub.example.com/folder` Basically, all URLs that are reachable without being intended to: `www.new-example.com`, I want to do this within Apache and using the `mod_rewrite` module via the `.h...
Put this in your *.htaccess*: ``` RewriteEngine On RewriteCond %{HTTP_HOST} !^www\.example\.com[NC] RewriteRule ^(.*)$ http://www.example.com%{REQUEST_URI} [R=301,L] ``` [**Source**](https://mathiasbynens.be/notes/no-www-redirects) Note that this `.htaccess` should, of course, apply to the old domain. Usually in si...
30,271
<p>This problem has never occurred in the past (i have tried this many times) but this time,</p> <p>ALL virtual hosts defined in the virtual-hosts.conf file in the apache installation directory direct the browser to the apache server documentRoot directory.</p> <p>I am using windows 7 with the latest version of apach...
[ { "answer_id": 30281, "author": "ionFish", "author_id": 13612, "author_profile": "https://webmasters.stackexchange.com/users/13612", "pm_score": 1, "selected": false, "text": "<p>This may be all there is to it, but at the <strong>VERY</strong> beginning of that config file, put this line...
2012/05/29
[ "https://webmasters.stackexchange.com/questions/30271", "https://webmasters.stackexchange.com", "https://webmasters.stackexchange.com/users/10422/" ]
This problem has never occurred in the past (i have tried this many times) but this time, ALL virtual hosts defined in the virtual-hosts.conf file in the apache installation directory direct the browser to the apache server documentRoot directory. I am using windows 7 with the latest version of apache. These are the...
This may be all there is to it, but at the **VERY** beginning of that config file, put this line: ``` Listen 80 ``` This tells Apache to actually listen for requests on port 80, and should help it work with the `NameVirtualHost` directive. ALSO!!! You have a typo on line 33: ``` <Directory "D:/wwwroot/b/public"s> ...
30,296
<p>I'm using a tool to generate the <em>sitemap.xml</em> file for me, it started to crawl my website, got the pages and all images, but when exporting it, I review the XML (to make sure nothing is wrong) and I noticed that the images in my website are wrapped in URL tags (I think it should be in image tags).<br> See th...
[ { "answer_id": 30302, "author": "Anagio", "author_id": 10527, "author_profile": "https://webmasters.stackexchange.com/users/10527", "pm_score": 3, "selected": true, "text": "<p>That doesn't look correct for images being listed in a sitemap, I would use another sitemap generator. The exam...
2012/05/30
[ "https://webmasters.stackexchange.com/questions/30296", "https://webmasters.stackexchange.com", "https://webmasters.stackexchange.com/users/15748/" ]
I'm using a tool to generate the *sitemap.xml* file for me, it started to crawl my website, got the pages and all images, but when exporting it, I review the XML (to make sure nothing is wrong) and I noticed that the images in my website are wrapped in URL tags (I think it should be in image tags). See this: `<url...
That doesn't look correct for images being listed in a sitemap, I would use another sitemap generator. The example below is from [Google's Webmaster Central blog post about adding images to your sitemap](http://googlewebmastercentral.blogspot.com/2010/04/adding-images-to-your-sitemaps.html) ``` <?xml version="1.0" enc...
30,301
<p>I'm using a framework to create my website(codeigniter) by default the urls are like this:<code>mysite.com/index.php?/etc/etc/etc</code>.<br> And I'm trying to remove the <code>index.php?</code>, I tried to remove it by doing this(didn't work): </p> <pre><code>RewriteEngine on RewriteCond %{REQUEST_FILENAME} !-f R...
[ { "answer_id": 30305, "author": "Anagio", "author_id": 10527, "author_profile": "https://webmasters.stackexchange.com/users/10527", "pm_score": 1, "selected": false, "text": "<p>Is your <code>.htaccess</code> file working at all? If no are you on a Linux or Windows server at GoDaddy? If ...
2012/05/30
[ "https://webmasters.stackexchange.com/questions/30301", "https://webmasters.stackexchange.com", "https://webmasters.stackexchange.com/users/15748/" ]
I'm using a framework to create my website(codeigniter) by default the urls are like this:`mysite.com/index.php?/etc/etc/etc`. And I'm trying to remove the `index.php?`, I tried to remove it by doing this(didn't work): ``` RewriteEngine on RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d Rew...
I ran into this issue a few weeks ago. Even with mods to my `.htaccess` file, I was never able to accomplish the `rewrite` with a site being hosted on GoDaddy. They have a 'manual' way of doing it through their Control Panel which ended up working for me. <http://support.godaddy.com/help/article/5120/redirect-urls-wi...
30,335
<p>Does multiple same keywords in meta description cause keyword stuffing? ie.</p> <pre><code>&lt;meta name="description" content="I love milk, milk makes me laugh all the time, laugh milk seems to be the most lovable milk, milk laughs at me and makes me love milk" /&gt; </code></pre>
[ { "answer_id": 30336, "author": "John Conde", "author_id": 1253, "author_profile": "https://webmasters.stackexchange.com/users/1253", "pm_score": 3, "selected": true, "text": "<p>All that does is hurt you even if it isn't keyword stuffing. </p>\n\n<ol>\n<li>Since the meta description isn...
2012/05/30
[ "https://webmasters.stackexchange.com/questions/30335", "https://webmasters.stackexchange.com", "https://webmasters.stackexchange.com/users/15105/" ]
Does multiple same keywords in meta description cause keyword stuffing? ie. ``` <meta name="description" content="I love milk, milk makes me laugh all the time, laugh milk seems to be the most lovable milk, milk laughs at me and makes me love milk" /> ```
All that does is hurt you even if it isn't keyword stuffing. 1. Since the meta description isn't used for ranking it's pointless. 2. Google tends to use the meta description as the snippet shown in their search results. If they used yours it would look spammy and cause users not to click on your link. That's obviousl...
30,338
<p>I am using Apache's mod_rewrite to redirect mobile users to my mobile site based on their http_user_agent. However not all pages have a mobile equivalent. Also mobile pages end in .html and "full" pages end in .shtml.</p> <p>Here is some pseudo code.</p> <p>Does the user have a certain HTTP_USER_AGENT?</p> <p>Is ...
[ { "answer_id": 30543, "author": "DisgruntledGoat", "author_id": 233, "author_profile": "https://webmasters.stackexchange.com/users/233", "pm_score": 1, "selected": false, "text": "<p>This is not possible using htaccess alone. You would need to serve a PHP page that does the checking and ...
2012/05/30
[ "https://webmasters.stackexchange.com/questions/30338", "https://webmasters.stackexchange.com", "https://webmasters.stackexchange.com/users/10843/" ]
I am using Apache's mod\_rewrite to redirect mobile users to my mobile site based on their http\_user\_agent. However not all pages have a mobile equivalent. Also mobile pages end in .html and "full" pages end in .shtml. Here is some pseudo code. Does the user have a certain HTTP\_USER\_AGENT? Is there a mobile page...
You **CAN** check for the existence of a resource identified by an HTTP URL using mod\_rewrite See example below: ``` RewriteCond %{HTTP_USER_AGENT} "android|blackberry|ipad|iphone|ipod|iemobile|opera mobile|palmos|webos|googlebot-mobile" [NC] RewriteCond %{REQUEST_URI} ![.]html$ RewriteCond %{REQUEST_URI} ^([^.]*) R...
30,340
<p>System: Debian Etch, Apache 2.2</p> <p>I have a WordPress instance with multiple blogs. I would like to redirect some of the folders based on the year and month, while leaving other folders to go to the actual locations.</p> <p>Example: I have archives for a few years, like 2010, 2011 and 2012:</p> <ul> <li><code...
[ { "answer_id": 30543, "author": "DisgruntledGoat", "author_id": 233, "author_profile": "https://webmasters.stackexchange.com/users/233", "pm_score": 1, "selected": false, "text": "<p>This is not possible using htaccess alone. You would need to serve a PHP page that does the checking and ...
2012/05/30
[ "https://webmasters.stackexchange.com/questions/30340", "https://webmasters.stackexchange.com", "https://webmasters.stackexchange.com/users/15860/" ]
System: Debian Etch, Apache 2.2 I have a WordPress instance with multiple blogs. I would like to redirect some of the folders based on the year and month, while leaving other folders to go to the actual locations. Example: I have archives for a few years, like 2010, 2011 and 2012: * `http://example.com/wordpress/myb...
You **CAN** check for the existence of a resource identified by an HTTP URL using mod\_rewrite See example below: ``` RewriteCond %{HTTP_USER_AGENT} "android|blackberry|ipad|iphone|ipod|iemobile|opera mobile|palmos|webos|googlebot-mobile" [NC] RewriteCond %{REQUEST_URI} ![.]html$ RewriteCond %{REQUEST_URI} ^([^.]*) R...
30,342
<p>A while ago, <a href="http://www.sparkfun.com/" rel="nofollow noreferrer">sparkfun.com</a> changed their URL structure from</p> <pre><code>/commerce/product_info.php?products_id=9266 </code></pre> <p>to</p> <pre><code>/products/9266 </code></pre> <p>This is nice, right? We don't need to know that it is (or was) a P...
[ { "answer_id": 30344, "author": "toomanyairmiles", "author_id": 12685, "author_profile": "https://webmasters.stackexchange.com/users/12685", "pm_score": 1, "selected": false, "text": "<p>Note: <em>You'll get a better answer to this by emailing <code>team@stackoverflow.com</code>, they ha...
2012/05/30
[ "https://webmasters.stackexchange.com/questions/30342", "https://webmasters.stackexchange.com", "https://webmasters.stackexchange.com/users/8496/" ]
A while ago, [sparkfun.com](http://www.sparkfun.com/) changed their URL structure from ``` /commerce/product_info.php?products_id=9266 ``` to ``` /products/9266 ``` This is nice, right? We don't need to know that it is (or was) a PHP page, and `commerce`, `product_info`, and `products_id` all tell us that we're l...
> > However, the change would have broken existing links. So, nicely, they stuck in 302 redirects. > > > Well, the important bit here is that *the change would have broken existing links*. /commerce/product\_info.php?products\_id=9266 isn't the location of the product page anymore, /products/9266 is. It's not at a...
30,346
<p>I have a series of utilities to generate Google sitemaps for my whole site. These files are massive, and slow to build. We want to start telling Google these pages are mobile-crawl-able too, by adding them to <a href="http://support.google.com/webmasters/bin/answer.py?hl=en&amp;answer=34648&amp;topic=8493&amp;ctx=...
[ { "answer_id": 30344, "author": "toomanyairmiles", "author_id": 12685, "author_profile": "https://webmasters.stackexchange.com/users/12685", "pm_score": 1, "selected": false, "text": "<p>Note: <em>You'll get a better answer to this by emailing <code>team@stackoverflow.com</code>, they ha...
2012/05/30
[ "https://webmasters.stackexchange.com/questions/30346", "https://webmasters.stackexchange.com", "https://webmasters.stackexchange.com/users/602/" ]
I have a series of utilities to generate Google sitemaps for my whole site. These files are massive, and slow to build. We want to start telling Google these pages are mobile-crawl-able too, by adding them to [mobile sitemaps](http://support.google.com/webmasters/bin/answer.py?hl=en&answer=34648&topic=8493&ctx=topic), ...
> > However, the change would have broken existing links. So, nicely, they stuck in 302 redirects. > > > Well, the important bit here is that *the change would have broken existing links*. /commerce/product\_info.php?products\_id=9266 isn't the location of the product page anymore, /products/9266 is. It's not at a...
30,395
<p>Each page on my site contains a file, and I have Google Analytics set up to track file download events. I would like to see what fraction of users who visit Page X download Page X's file.</p> <p>I can view number of events by page by clicking on <code>Content » Events » Pages</code>. </p> <p><strong>But I can't fi...
[ { "answer_id": 30673, "author": "etakt", "author_id": 16085, "author_profile": "https://webmasters.stackexchange.com/users/16085", "pm_score": 2, "selected": false, "text": "<p>Not sure whether you've received an answer to this or not, but just in-case. </p>\n\n<p>You want to create a Cu...
2012/05/31
[ "https://webmasters.stackexchange.com/questions/30395", "https://webmasters.stackexchange.com", "https://webmasters.stackexchange.com/users/10040/" ]
Each page on my site contains a file, and I have Google Analytics set up to track file download events. I would like to see what fraction of users who visit Page X download Page X's file. I can view number of events by page by clicking on `Content » Events » Pages`. **But I can't figure out how to see both events an...
Not sure whether you've received an answer to this or not, but just in-case. You want to create a Custom Report and do the following: In the Metric Groups you want two different metrics: Total Events and Pageviews In the Dimension Drilldowns you want to select "Page". And hopefully that should give you what you ...
30,552
<p>I want to post a .h file from a project I'm working on. I set a simple href link to it, like:</p> <pre><code>&lt;p&gt;Click here to download the &lt;a href=project_strings.h&gt;strings file&lt;/a&gt;. </code></pre> <p>When I click on it, though, my web browser (Iceweasel 12) gives me a prompt to download the file...
[ { "answer_id": 30546, "author": "danlefree", "author_id": 1064, "author_profile": "https://webmasters.stackexchange.com/users/1064", "pm_score": 4, "selected": true, "text": "<p>The <a href=\"http://en.wikipedia.org/wiki/Special%3aVersion#mw-version-ext\" rel=\"nofollow\">Special:Version...
2012/06/05
[ "https://webmasters.stackexchange.com/questions/30552", "https://webmasters.stackexchange.com", "https://webmasters.stackexchange.com/users/-1/" ]
I want to post a .h file from a project I'm working on. I set a simple href link to it, like: ``` <p>Click here to download the <a href=project_strings.h>strings file</a>. ``` When I click on it, though, my web browser (Iceweasel 12) gives me a prompt to download the file, instead of just displaying it: ![enter ima...
The [Special:Version](http://en.wikipedia.org/wiki/Special%3aVersion#mw-version-ext) page lists all of the installed extensions for a MediaWiki instance. Also see <http://noc.wikimedia.org/conf/> for example of real configuration employing all these extensions, though using it directly would be overkill.
30,557
<p>After migrating domains from one plesk server onto another, I got several of those mails every day: (the target mailbox does not exist, so I get those as undeliverable mail bounces)</p> <pre><code>Return-Path: &lt;anonymous@lvpsxxx-xx-xx-xx.dedicated.hosteurope.de&gt; Received: (qmail 26460 invoked by uid 38); 26 M...
[ { "answer_id": 30558, "author": "Michael", "author_id": 15333, "author_profile": "https://webmasters.stackexchange.com/users/15333", "pm_score": 4, "selected": true, "text": "<p>After consulting the support team, I now have the solution for this problem: <code>/usr/lib/mailman/bin/check_...
2012/06/05
[ "https://webmasters.stackexchange.com/questions/30557", "https://webmasters.stackexchange.com", "https://webmasters.stackexchange.com/users/15333/" ]
After migrating domains from one plesk server onto another, I got several of those mails every day: (the target mailbox does not exist, so I get those as undeliverable mail bounces) ``` Return-Path: <anonymous@lvpsxxx-xx-xx-xx.dedicated.hosteurope.de> Received: (qmail 26460 invoked by uid 38); 26 May 2012 12:00:02 +02...
After consulting the support team, I now have the solution for this problem: `/usr/lib/mailman/bin/check_perms -f` does all the permission magic in the mailman directories. Maybe this helps someone else with the same problem.
30,579
<p>A few weeks ago requests following this type of pattern:</p> <pre><code>http://mysite/cache/7a226e8aa3a4380444a329a7b0dd0f40 http://mysite/otherfolder/cache/7a226e8aa3a4380444a329a7b0dd0f40 </code></pre> <p>started to appear in my logs. Almost all the requests come from Indian IPs. Anybody know what is generat...
[ { "answer_id": 33479, "author": "berezovskyi", "author_id": 14858, "author_profile": "https://webmasters.stackexchange.com/users/14858", "pm_score": 0, "selected": false, "text": "<p>Seems like a script in search of exploit, Google for all exploits related to your CMS with word cache pub...
2012/06/05
[ "https://webmasters.stackexchange.com/questions/30579", "https://webmasters.stackexchange.com", "https://webmasters.stackexchange.com/users/1112/" ]
A few weeks ago requests following this type of pattern: ``` http://mysite/cache/7a226e8aa3a4380444a329a7b0dd0f40 http://mysite/otherfolder/cache/7a226e8aa3a4380444a329a7b0dd0f40 ``` started to appear in my logs. Almost all the requests come from Indian IPs. Anybody know what is generating these requests and the...
I found an answer. As I suspected, it was an error caused by an extension. Anyway, here's an article describing the issue. <http://wizzley.com/url-adding-undefined-on-chrome/> Add the following code to your JavaScript, and everything will be fine. ``` window.suggestmeyes_loaded = true; ``` Don't ask why it's need...
30,583
<p>I have a WP site on a linux box. Our email was working fine in Wordpress but recently it stopped, I think because of a restart. All I could think of was to restart sendmail. </p> <p>I couldn't find sendmail in the normal directory (/etc/init.d/sendmail restart) but that didn't exist. I found another directory for s...
[ { "answer_id": 30584, "author": "Soz", "author_id": 16037, "author_profile": "https://webmasters.stackexchange.com/users/16037", "pm_score": 2, "selected": false, "text": "<p>The command '/usr/sbin/sendmail anystring' is interpreted as meaning 'take the following input from stdin and ema...
2012/06/04
[ "https://webmasters.stackexchange.com/questions/30583", "https://webmasters.stackexchange.com", "https://webmasters.stackexchange.com/users/-1/" ]
I have a WP site on a linux box. Our email was working fine in Wordpress but recently it stopped, I think because of a restart. All I could think of was to restart sendmail. I couldn't find sendmail in the normal directory (/etc/init.d/sendmail restart) but that didn't exist. I found another directory for sendmail in...
The command '/usr/sbin/sendmail anystring' is interpreted as meaning 'take the following input from stdin and email it to the user known as anystring', rather than 'please restart the service known as sendmail'. Are you sure you were using the sendmail daemon (as opposed to, say, postfix)? In either case the /usr/sbi...
30,599
<p>My company publishes sites on a somewhat convoluted domain structure, and we're having trouble getting accurate numbers in Analytics when we have multiple trackers on the page.</p> <p>We publish under two brands (A, B). Each brand has a "national" site at A.com, B.com, as well as per-city "local" sites at eg. ny.A....
[ { "answer_id": 35349, "author": "eduardocereto", "author_id": 7396, "author_profile": "https://webmasters.stackexchange.com/users/7396", "pm_score": 2, "selected": false, "text": "<p>You need to setup it to work for cross domain and subdomains.</p>\n\n<p>Use this one for site A.com</p>\n...
2012/06/05
[ "https://webmasters.stackexchange.com/questions/30599", "https://webmasters.stackexchange.com", "https://webmasters.stackexchange.com/users/15434/" ]
My company publishes sites on a somewhat convoluted domain structure, and we're having trouble getting accurate numbers in Analytics when we have multiple trackers on the page. We publish under two brands (A, B). Each brand has a "national" site at A.com, B.com, as well as per-city "local" sites at eg. ny.A.com, la.A....
You need to setup it to work for cross domain and subdomains. Use this one for site A.com ``` _gaq.push( ['t0._setAccount', 'UA-XXXXXX-1'], // full network ['t0._setAllowLinker', true], ['t0._setDomainName', 'A.com'], ['t0._trackPageview'], ['t1._setAccount', 'UA-XXXXXX-2'], // brand ['t1._s...
30,603
<p>I am new to this. Here is the situation and I'm wondering if someone can suggest the best solution to it:</p> <p>I have a domain <code>www.mydomain.com</code> where I have a Magento website running, we are in development stage so I did URL forwarding <code>www.mydomain.com</code> to <code>www.mydomain.net</code> an...
[ { "answer_id": 30605, "author": "mgibsonbr", "author_id": 15703, "author_profile": "https://webmasters.stackexchange.com/users/15703", "pm_score": 0, "selected": false, "text": "<p>If I understood your question correctly, a solution to your problem can be found in <a href=\"https://stack...
2012/06/06
[ "https://webmasters.stackexchange.com/questions/30603", "https://webmasters.stackexchange.com", "https://webmasters.stackexchange.com/users/16046/" ]
I am new to this. Here is the situation and I'm wondering if someone can suggest the best solution to it: I have a domain `www.mydomain.com` where I have a Magento website running, we are in development stage so I did URL forwarding `www.mydomain.com` to `www.mydomain.net` and we have an under-construction page on `ww...
This will redirect a subdomain to another domain or root domain ``` RewriteEngine On RewriteCond %{HTTP_HOST} ^yoursubdomain\.yourdomain\.com$ [NC] RewriteRule ^(.*) http://www.newdomain.com/$1 [L,R] ``` if you want to show www.mydomain.com/index.php website content to beta.mydomain.com sub domain or beta.mydomai...
30,627
<p>If a website a called foo.com has the following css,</p> <pre><code>#LinkBuilder{ background:url("www.LoremEpsum.com"); } </code></pre> <p>and the css id <code>LinkBuilder</code> is actually <strong>not</strong> getting used anywhere in the <code>html</code> of foo.com, would Google bot crawl it as a <strong>backl...
[ { "answer_id": 30641, "author": "Community", "author_id": -1, "author_profile": "https://webmasters.stackexchange.com/users/-1", "pm_score": 2, "selected": true, "text": "<p>First of all, that's a background property, so I'm not sure why google would think it's a link.</p>\n\n<p>However,...
2012/06/06
[ "https://webmasters.stackexchange.com/questions/30627", "https://webmasters.stackexchange.com", "https://webmasters.stackexchange.com/users/-1/" ]
If a website a called foo.com has the following css, ``` #LinkBuilder{ background:url("www.LoremEpsum.com"); } ``` and the css id `LinkBuilder` is actually **not** getting used anywhere in the `html` of foo.com, would Google bot crawl it as a **backlink** from `foo.com` to **LoremEpsum.com** and **LoremEpsum.com** g...
First of all, that's a background property, so I'm not sure why google would think it's a link. However, assuming that you meant does it index the background image. I'm going to assume no, because if you look at their [image guidelines](http://support.google.com/webmasters/bin/answer.py?hl=en&answer=114016), you will ...
30,637
<p>If I have a page with an <code>&lt;h1&gt;</code> heading and a long paragraph, is it ok to write the paragraph (see below - with the h tags mixed with broken p tags to make up the whole block of text) and just style it so it looks all the same so that I get the benefit of using <code>&lt;h2&gt;</code> and <code>&lt;...
[ { "answer_id": 30643, "author": "Anagio", "author_id": 10527, "author_profile": "https://webmasters.stackexchange.com/users/10527", "pm_score": 0, "selected": false, "text": "<p>It's questionable, and may not be semantically correct. Imagine if Google recognized the first instance of an ...
2012/06/06
[ "https://webmasters.stackexchange.com/questions/30637", "https://webmasters.stackexchange.com", "https://webmasters.stackexchange.com/users/14905/" ]
If I have a page with an `<h1>` heading and a long paragraph, is it ok to write the paragraph (see below - with the h tags mixed with broken p tags to make up the whole block of text) and just style it so it looks all the same so that I get the benefit of using `<h2>` and `<h3>` tags? I'm aware this is not the 'proper...
It's a ***very*** bad idea for accessibility reasons as well. [One commonly used feature of most screen readers is the ability to have a list of headings read out](http://webaim.org/projects/screenreadersurvey4/#finding). This gives the users an overview of the document's structure and means they can jump between sect...
30,683
<p>Recently somehow I ended up on <a href="http://www.google.com/blank.html" rel="nofollow noreferrer">http://www.google.com/blank.html</a> </p> <p>Does anyone have an idea why this page exists and what might it be useful for?</p>
[ { "answer_id": 30689, "author": "Soz", "author_id": 16037, "author_profile": "https://webmasters.stackexchange.com/users/16037", "pm_score": 6, "selected": true, "text": "<p>Google has some URLs designed for special purposes, such as:</p>\n\n<pre><code>http://www.google.com/blank.html\n<...
2012/06/07
[ "https://webmasters.stackexchange.com/questions/30683", "https://webmasters.stackexchange.com", "https://webmasters.stackexchange.com/users/16091/" ]
Recently somehow I ended up on <http://www.google.com/blank.html> Does anyone have an idea why this page exists and what might it be useful for?
Google has some URLs designed for special purposes, such as: ``` http://www.google.com/blank.html ``` and ``` http://clients3.google.com/generate_204 ``` These are designed to facilitate detection of ['captive portals'](http://www.chromium.org/chromium-os/chromiumos-design-docs/network-portal-detection): that is,...
30,690
<p>Due to some issues in my site many pages are visible as duplicate using : <code>www.example.com/page.html?task=view</code> but it's content is exactly same as <code>www.example.com/page.html</code>.</p> <p>One way is to use http 301 redirect from <code>www.example.com/page.html?task=view</code> to <code>www.example...
[ { "answer_id": 30689, "author": "Soz", "author_id": 16037, "author_profile": "https://webmasters.stackexchange.com/users/16037", "pm_score": 6, "selected": true, "text": "<p>Google has some URLs designed for special purposes, such as:</p>\n\n<pre><code>http://www.google.com/blank.html\n<...
2012/06/07
[ "https://webmasters.stackexchange.com/questions/30690", "https://webmasters.stackexchange.com", "https://webmasters.stackexchange.com/users/6776/" ]
Due to some issues in my site many pages are visible as duplicate using : `www.example.com/page.html?task=view` but it's content is exactly same as `www.example.com/page.html`. One way is to use http 301 redirect from `www.example.com/page.html?task=view` to `www.example.com/page.html` when anybody fetches page with a...
Google has some URLs designed for special purposes, such as: ``` http://www.google.com/blank.html ``` and ``` http://clients3.google.com/generate_204 ``` These are designed to facilitate detection of ['captive portals'](http://www.chromium.org/chromium-os/chromiumos-design-docs/network-portal-detection): that is,...
30,732
<p>Here's the scenario: lots of blogging platforms make it tedious to insert <code>nofollow</code> into links within the post content. I.e., you need to edit the html, format it correctly, etc. </p> <p>I have a client who posts lots of content with links that should be nofollow'ed, and I thought of a novel way to hand...
[ { "answer_id": 30739, "author": "toomanyairmiles", "author_id": 12685, "author_profile": "https://webmasters.stackexchange.com/users/12685", "pm_score": 1, "selected": false, "text": "<p>I think you may be over-complicating the solution. You could use Thaya Kareeson's <a href=\"http://om...
2012/06/09
[ "https://webmasters.stackexchange.com/questions/30732", "https://webmasters.stackexchange.com", "https://webmasters.stackexchange.com/users/3778/" ]
Here's the scenario: lots of blogging platforms make it tedious to insert `nofollow` into links within the post content. I.e., you need to edit the html, format it correctly, etc. I have a client who posts lots of content with links that should be nofollow'ed, and I thought of a novel way to handle this, since the bl...
I think you may be over-complicating the solution. You could use Thaya Kareeson's [nofollow.js](http://omninoggin.com/web-development/using-jquery-to-easily-dofollownofollow-links/) which uses the following line to easily nofollow links:- ``` $(".insert-your-css-class-here a").attr("rel", "nofollow"); ``` You can re...
30,746
<p>My server's error log (in cPanel) has an entry for every single time a PHP page is loaded that looks like this (where 'username' has been substituted for my actual username):</p> <p><code>[2012-06-09 09:02:07]: info: [usr/grp]: username/username cmd: /home/username/public_html/error.php php: /usr/local/php53/bin/ph...
[ { "answer_id": 30753, "author": "ionFish", "author_id": 13612, "author_profile": "https://webmasters.stackexchange.com/users/13612", "pm_score": -1, "selected": true, "text": "<p>To disable ALL error logging from PHP, include this in the top of the PHP files:</p>\n\n<pre><code>error_repo...
2012/06/09
[ "https://webmasters.stackexchange.com/questions/30746", "https://webmasters.stackexchange.com", "https://webmasters.stackexchange.com/users/16135/" ]
My server's error log (in cPanel) has an entry for every single time a PHP page is loaded that looks like this (where 'username' has been substituted for my actual username): `[2012-06-09 09:02:07]: info: [usr/grp]: username/username cmd: /home/username/public_html/error.php php: /usr/local/php53/bin/php` I know it's...
To disable ALL error logging from PHP, include this in the top of the PHP files: ``` error_reporting("E_ALL") ``` You can also selectively disable error messages by severity: ``` http://uk3.php.net/manual/en/errorfunc.configuration.php#ini.error-reporting ``` The `php.ini` file can also be changed rather than put...
30,747
<p>I have a problem. I had an old dynamic url which I have now split into multiple static urls.</p> <p>e.g.</p> <pre><code>www.mydomain.com/product.php?type=1&amp;id=2 www.mydomain.com/product.php?type=2&amp;id=3 www.mydomain.com/product.php?type=2&amp;id=4, etc </code></pre> <p>which I have changed to something lik...
[ { "answer_id": 30748, "author": "milo5b", "author_id": 16133, "author_profile": "https://webmasters.stackexchange.com/users/16133", "pm_score": 1, "selected": false, "text": "<p>you could leave product.php as it is (displaying product base on type and id) but add categoryname and product...
2012/06/09
[ "https://webmasters.stackexchange.com/questions/30747", "https://webmasters.stackexchange.com", "https://webmasters.stackexchange.com/users/16136/" ]
I have a problem. I had an old dynamic url which I have now split into multiple static urls. e.g. ``` www.mydomain.com/product.php?type=1&id=2 www.mydomain.com/product.php?type=2&id=3 www.mydomain.com/product.php?type=2&id=4, etc ``` which I have changed to something like ``` www.mydomain.com/electronics/radio www...
you could leave product.php as it is (displaying product base on type and id) but add categoryname and productname GET variables (and code to map them to an actual product), so you can redirect the new type of url mysite.com/(category)/(product) to product.php?categoryname=$1&productname=$2 I don't know ISS so I cant s...
30,802
<p>I'm using the <a href="http://www.google.com/webfonts/specimen/Open+Sans" rel="nofollow">Open Sans</a> web font from <a href="http://www.google.com/webfonts" rel="nofollow">Google Web Fonts</a> on my website. I only need the basic latin subset, but I do use the Psi (Ψ) character quite often as well and I would like ...
[ { "answer_id": 30809, "author": "user 99572 is fine", "author_id": 11614, "author_profile": "https://webmasters.stackexchange.com/users/11614", "pm_score": 3, "selected": true, "text": "<p>I haven't tried it myself, but this guy offers a solution: <a href=\"http://web.archive.org/web/200...
2012/06/11
[ "https://webmasters.stackexchange.com/questions/30802", "https://webmasters.stackexchange.com", "https://webmasters.stackexchange.com/users/8734/" ]
I'm using the [Open Sans](http://www.google.com/webfonts/specimen/Open+Sans) web font from [Google Web Fonts](http://www.google.com/webfonts) on my website. I only need the basic latin subset, but I do use the Psi (Ψ) character quite often as well and I would like to use the Open Sans version of that character, without...
I haven't tried it myself, but this guy offers a solution: <http://web.archive.org/web/20070702115331/http://henrik.nyh.se/2007/06/tumblr-in-a-subdirectory>. You need access to to your htaccess file and you need to be able to save a php script. It looks fairly straightforward. You can draw further inspiration (at lea...
30,814
<p>Have already seen suggests on how to rewrite https to http. currently using this technique : </p> <pre><code>RewriteCond %{SERVER_PORT} ^443$ RewriteRule ^(.*)$ http://www.mysite.com/$1 [L,R=301] RewriteRule ^(.*)$ http ://%{HTTP_HOST}%{REQUEST_URI} [R=301,L] </code></pre> <p>Problem : I am currently on Hostgator...
[ { "answer_id": 30828, "author": "Habeeb Rahman", "author_id": 16179, "author_profile": "https://webmasters.stackexchange.com/users/16179", "pm_score": -1, "selected": false, "text": "<p>Add the following meta tag in your HTTPS pages</p>\n\n<pre><code>&lt;meta name=\"robots\" content=\"no...
2012/06/11
[ "https://webmasters.stackexchange.com/questions/30814", "https://webmasters.stackexchange.com", "https://webmasters.stackexchange.com/users/16174/" ]
Have already seen suggests on how to rewrite https to http. currently using this technique : ``` RewriteCond %{SERVER_PORT} ^443$ RewriteRule ^(.*)$ http://www.mysite.com/$1 [L,R=301] RewriteRule ^(.*)$ http ://%{HTTP_HOST}%{REQUEST_URI} [R=301,L] ``` Problem : I am currently on Hostgator VPS and have found Google...
Disable or remove SSL from Plesk ( <http://support.hostgator.com/articles/ssl-certificates/ssl-setup-use/how-to-setup-and-use-a-shared-ssl-windows> ), submit a clean sitemap to Google Webmaster Center. I would avoid creating redirects if you can solve this by disabling SSL and letting Google re-index your site properly...
30,816
<p>Is the meta tag "generator" still relevant in today's web? Has it every had any use?</p> <pre><code>&lt;meta name="Generator" content="Drupal 7 (http://drupal.org)" /&gt; </code></pre>
[ { "answer_id": 30822, "author": "Fiasco Labs", "author_id": 9006, "author_profile": "https://webmasters.stackexchange.com/users/9006", "pm_score": 4, "selected": true, "text": "<p>The question is \"What value does it add to my website?\"</p>\n\n<p>In the world of trucking, we have a term...
2012/06/11
[ "https://webmasters.stackexchange.com/questions/30816", "https://webmasters.stackexchange.com", "https://webmasters.stackexchange.com/users/3886/" ]
Is the meta tag "generator" still relevant in today's web? Has it every had any use? ``` <meta name="Generator" content="Drupal 7 (http://drupal.org)" /> ```
The question is "What value does it add to my website?" In the world of trucking, we have a term, **payload**. Payload brings in a return for carrying it, the rest is non-paying and therefore a fuel expense. Excess meta tags that aren't being used by anyone just add to the load time, eat clock cycles, disk space and t...
30,831
<p>I have a situation where a content management system uses the same template for multiple websites with different domain names and I can't make a separate template for each. However, each website needs to be tracked with Google Analytics. Would this be appropriate to track each domain like this by putting in some con...
[ { "answer_id": 30902, "author": "Meki", "author_id": 14288, "author_profile": "https://webmasters.stackexchange.com/users/14288", "pm_score": 1, "selected": false, "text": "<p>You can use one tracking code and setup segments within analytics to seperate the sites based on domains.</p>\n"...
2012/06/11
[ "https://webmasters.stackexchange.com/questions/30831", "https://webmasters.stackexchange.com", "https://webmasters.stackexchange.com/users/16182/" ]
I have a situation where a content management system uses the same template for multiple websites with different domain names and I can't make a separate template for each. However, each website needs to be tracked with Google Analytics. Would this be appropriate to track each domain like this by putting in some condit...
You can use one tracking code and setup segments within analytics to seperate the sites based on domains.
30,847
<p>HTML5 allows people to tag their elements like </p> <pre><code>&lt;div data-productname=BMW&gt;BMW&lt;/div&gt; </code></pre> <p>but how do search engines do it with older websites?</p>
[ { "answer_id": 30848, "author": "danlefree", "author_id": 1064, "author_profile": "https://webmasters.stackexchange.com/users/1064", "pm_score": 3, "selected": false, "text": "<p>First and foremost, product search engines encourage contributors to utilize <strong><a href=\"http://en.wiki...
2012/06/12
[ "https://webmasters.stackexchange.com/questions/30847", "https://webmasters.stackexchange.com", "https://webmasters.stackexchange.com/users/11430/" ]
HTML5 allows people to tag their elements like ``` <div data-productname=BMW>BMW</div> ``` but how do search engines do it with older websites?
First and foremost, product search engines encourage contributors to utilize **[feeds](http://en.wikipedia.org/wiki/Product_feed)** which encode this type of metadata such that the product search engine does not have to scan raw HTML. Failing that, a relatively advanced product search engine might apply a product sear...
30,877
<p>When looking at the network waterfall in Firebug/Chrome/IE9, I keep seeing "200-OK" instead of "304-Not Modified" for many cache-able files (images, js, css) on <a href="https://govtrip.com/govtrip/site/index.jsp" rel="nofollow noreferrer">this page, for example</a>.</p> <p>I believe it is because the browser is no...
[ { "answer_id": 30881, "author": "LazyOne", "author_id": 8354, "author_profile": "https://webmasters.stackexchange.com/users/8354", "pm_score": 3, "selected": true, "text": "<blockquote>\n <p>I believe it is because the browser is not sending a If-Modified-Since during the Request, right...
2012/06/12
[ "https://webmasters.stackexchange.com/questions/30877", "https://webmasters.stackexchange.com", "https://webmasters.stackexchange.com/users/16209/" ]
When looking at the network waterfall in Firebug/Chrome/IE9, I keep seeing "200-OK" instead of "304-Not Modified" for many cache-able files (images, js, css) on [this page, for example](https://govtrip.com/govtrip/site/index.jsp). I believe it is because the browser is not sending a If-Modified-Since during the Reques...
> > I believe it is because the browser is not sending a If-Modified-Since during the Request, right? > > > Correct. > > Do I need to change something in the initial Response headers to make 304s happen? > > > Yes. If you compare **original** response headers for those resources that have 304 response code o...
30,879
<p>For the past 5 months our site has been receiving hits from these 4 sites below;</p> <p>sheratonbd.com <br />newsheraton.com <br />newsheration.com <br />newsheratonltd.com</p> <p>Typically the exact url they come from looks something like this;</p> <p><a href="http://www.newsheraton.com/ClickEarnArea.aspx?login...
[ { "answer_id": 30880, "author": "huzzah", "author_id": 14769, "author_profile": "https://webmasters.stackexchange.com/users/14769", "pm_score": 3, "selected": false, "text": "<p>Have you considered the possibility that they are visiting your site, hoping you will research who they are, b...
2012/06/12
[ "https://webmasters.stackexchange.com/questions/30879", "https://webmasters.stackexchange.com", "https://webmasters.stackexchange.com/users/11913/" ]
For the past 5 months our site has been receiving hits from these 4 sites below; sheratonbd.com newsheraton.com newsheration.com newsheratonltd.com Typically the exact url they come from looks something like this; <http://www.newsheraton.com/ClickEarnArea.aspx?loginsession_expiredlogin=85> The spam bot goes to ...
Funny this should come up, I was dealing with a similar problem at work today! @HeatherWalters has covered most of the good stuff, but there are a couple of things to add. You can block referers by domain using the following htaccess code:- ``` RewriteEngine on # Options +FollowSymlinks RewriteCond %{HTTP_REFERER} s...
30,908
<p>I have an add-on domain in my cPanel website. The root directory for it is under the root of the hosting. How can I prevent access through the main domain?</p> <p>For example, <code>addondomain.com</code> is configured to serve up files from <code>public_html/addondomdain</code>. How do I prevent people seeing the ...
[ { "answer_id": 30910, "author": "Oliver G", "author_id": 14714, "author_profile": "https://webmasters.stackexchange.com/users/14714", "pm_score": 0, "selected": false, "text": "<p>There is no way to hide the addon domain subfolder on your root domain, as it is literally a directory on yo...
2012/06/13
[ "https://webmasters.stackexchange.com/questions/30908", "https://webmasters.stackexchange.com", "https://webmasters.stackexchange.com/users/1643/" ]
I have an add-on domain in my cPanel website. The root directory for it is under the root of the hosting. How can I prevent access through the main domain? For example, `addondomain.com` is configured to serve up files from `public_html/addondomdain`. How do I prevent people seeing the files at `maindomain.com/addondo...
This rewrite rule (in `public_html/addondomain/.htaccess`) will handle redirection for you, should a visitor land at a `domain.com/addondomain/` path: ``` RewriteEngine on RewriteCond %{HTTP_HOST} !addondomain\.com$ RewriteRule [addondomain]?(.*) http://www.addondomain.com/$1 [R=301,L] ``` The rewrite conditio...
30,936
<p>I have a URL like this:</p> <pre><code>www.example.com/freelance-jobs-new-york </code></pre> <p>I had a problem and many duplicated pages have been created like this:</p> <pre><code>www.example.com/freelance-jobs-new-york-php-php www.example.com/freelance-jobs-new-york-php-php-php www.example.com/freelance-jobs-n...
[ { "answer_id": 43503, "author": "Stephen Ostermiller", "author_id": 14543, "author_profile": "https://webmasters.stackexchange.com/users/14543", "pm_score": 3, "selected": true, "text": "<p>Googlebot does support wildcards in robots.txt. They announced this in their blog. <a href=\"htt...
2012/06/14
[ "https://webmasters.stackexchange.com/questions/30936", "https://webmasters.stackexchange.com", "https://webmasters.stackexchange.com/users/3130/" ]
I have a URL like this: ``` www.example.com/freelance-jobs-new-york ``` I had a problem and many duplicated pages have been created like this: ``` www.example.com/freelance-jobs-new-york-php-php www.example.com/freelance-jobs-new-york-php-php-php www.example.com/freelance-jobs-new-york-php-php-php-php ``` And so ...
Googlebot does support wildcards in robots.txt. They announced this in their blog. <http://googlewebmastercentral.blogspot.com/2008/06/improving-on-robots-exclusion-protocol.html> Other browsers don't actually support wildcards, so that syntax is not universal. However, putting urls into robots.txt does not prevent g...
30,963
<p>If i use the bellow code in my .htacess file would google bot (or any other search spiders) see the example.tumblr.com url or would they see the same url as the user ie. example.co.uk/blog ?</p> <pre><code>&lt;IfModule mod_rewrite.c&gt; RewriteEngine On RewriteCond %{HTTP_HOST} ^example.co.uk/blog$ Rewr...
[ { "answer_id": 30964, "author": "John Conde", "author_id": 1253, "author_profile": "https://webmasters.stackexchange.com/users/1253", "pm_score": 1, "selected": true, "text": "<p>Google sees the same URL your users see. They don't have access to your htaccess file just like everybody els...
2012/06/14
[ "https://webmasters.stackexchange.com/questions/30963", "https://webmasters.stackexchange.com", "https://webmasters.stackexchange.com/users/14905/" ]
If i use the bellow code in my .htacess file would google bot (or any other search spiders) see the example.tumblr.com url or would they see the same url as the user ie. example.co.uk/blog ? ``` <IfModule mod_rewrite.c> RewriteEngine On RewriteCond %{HTTP_HOST} ^example.co.uk/blog$ RewriteCond %{REQUEST_UR...
Google sees the same URL your users see. They don't have access to your htaccess file just like everybody else.
31,004
<p>I've been trying to track clicks on external links on my website using the events tracking method.</p> <p>So I've got my Google Analytics code setup before body ends as shown below (note: quotes have been entitied by blogger, but it works fine):</p> <pre><code>&lt;script type='text/javascript'&gt; var _...
[ { "answer_id": 31005, "author": "Anagio", "author_id": 10527, "author_profile": "https://webmasters.stackexchange.com/users/10527", "pm_score": 1, "selected": false, "text": "<p>You shouldn't have to make changes to your ga tracking snippet, it looks like it has some characters in there ...
2012/06/15
[ "https://webmasters.stackexchange.com/questions/31004", "https://webmasters.stackexchange.com", "https://webmasters.stackexchange.com/users/20309/" ]
I've been trying to track clicks on external links on my website using the events tracking method. So I've got my Google Analytics code setup before body ends as shown below (note: quotes have been entitied by blogger, but it works fine): ``` <script type='text/javascript'> var _gaq = _gaq || []; ...
You shouldn't have to make changes to your ga tracking snippet, it looks like it has some characters in there that don't belong. I would get a fresh copy from your Google Analytics profile and replace the one on your site The Google Analytics code I use is below which looks like you're as well. It could be your tracki...
31,107
<p>I am porting a site from an old version of a CMS to a newer version which has different page addressing techniques. I'm unfortunately not very good with htaccess at all.</p> <pre><code>URL/blog/sublblog/article.html is now simply URL/article.html </code></pre> <p>Unfortunately, this will destroy any linking progra...
[ { "answer_id": 31108, "author": "ionFish", "author_id": 13612, "author_profile": "https://webmasters.stackexchange.com/users/13612", "pm_score": 2, "selected": true, "text": "<p>Edited because other one failed:</p>\n\n<pre><code>RewriteEngine on\nRewriteBase /\nRewriteRule ^blog/subblog/...
2012/06/19
[ "https://webmasters.stackexchange.com/questions/31107", "https://webmasters.stackexchange.com", "https://webmasters.stackexchange.com/users/16374/" ]
I am porting a site from an old version of a CMS to a newer version which has different page addressing techniques. I'm unfortunately not very good with htaccess at all. ``` URL/blog/sublblog/article.html is now simply URL/article.html ``` Unfortunately, this will destroy any linking programs they have going, and br...
Edited because other one failed: ``` RewriteEngine on RewriteBase / RewriteRule ^blog/subblog/(.*)$ http://www.example.com/$1 [R=301,L] ``` Can you try this and give the results?
31,215
<p>I'm writing a program that lets a user perform a Google search. </p> <p>When the result comes back, all of the links in the search results are links not to other sites but to Google, and if the user clicks on one, the page is fetched not from the other site but from Google.</p> <p>Can anyone explain how to fix thi...
[ { "answer_id": 31216, "author": "John Conde", "author_id": 1253, "author_profile": "https://webmasters.stackexchange.com/users/1253", "pm_score": 0, "selected": false, "text": "<p>That's personalized search. If someone is signed in to Google and they allow Google to track their web histo...
2012/06/22
[ "https://webmasters.stackexchange.com/questions/31215", "https://webmasters.stackexchange.com", "https://webmasters.stackexchange.com/users/16456/" ]
I'm writing a program that lets a user perform a Google search. When the result comes back, all of the links in the search results are links not to other sites but to Google, and if the user clicks on one, the page is fetched not from the other site but from Google. Can anyone explain how to fix this problem? My Go...
They use a redirect page to track what you click on. If you fetch that redirect page yourself then you will get redirected to the link and you could give that page to your users. The redirect page uses Javascript. Here's one example: ``` <script>window.googleJavaScriptRedirect=1</script> <script>var f={}; f.navigateTo...
31,262
<p>I have created an ASP.NET site to replace a WordPress site that creates permalinks in the format: </p> <pre><code>http://example.com/the-name-of-my-post </code></pre> <p>I would like these URLs redirected to: </p> <pre><code>http://example.com/Default.aspx#&amp;&amp;the-name-of-my-post </code></pre> <p>...whic...
[ { "answer_id": 31263, "author": "Community", "author_id": -1, "author_profile": "https://webmasters.stackexchange.com/users/-1", "pm_score": -1, "selected": false, "text": "<p>mod_rewrite: <a href=\"http://www.phatz.com/301redirect.php\" rel=\"nofollow\">http://www.phatz.com/301redirect....
2012/06/21
[ "https://webmasters.stackexchange.com/questions/31262", "https://webmasters.stackexchange.com", "https://webmasters.stackexchange.com/users/-1/" ]
I have created an ASP.NET site to replace a WordPress site that creates permalinks in the format: ``` http://example.com/the-name-of-my-post ``` I would like these URLs redirected to: ``` http://example.com/Default.aspx#&&the-name-of-my-post ``` ...which is what the ScriptManager generates at runtime. The Wor...
IIS 7.0 rewrite module documentation <http://learn.iis.net/page.aspx/734/url-rewrite-module/> Also IIS redirects <http://knowledge.freshpromo.ca/seo-tools/301-redirect.php#aspnet> IIS does not support .htaccess so creating many re-written URL's takes a little more manual work.
31,274
<p>According to <a href="https://www.rfc-editor.org/rfc/rfc1945" rel="nofollow noreferrer">the spec</a>, Location headers used in a redirect <a href="http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.3.2" rel="nofollow noreferrer">require</a> a server name</p> <pre><code>HTTP/1.1 301 Moved Permanently ... Lo...
[ { "answer_id": 31288, "author": "artlung", "author_id": 26, "author_profile": "https://webmasters.stackexchange.com/users/26", "pm_score": 3, "selected": false, "text": "<p>Section 14.30 of the HTTP 1.1 RFC <a href=\"http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.30\">http:...
2012/06/23
[ "https://webmasters.stackexchange.com/questions/31274", "https://webmasters.stackexchange.com", "https://webmasters.stackexchange.com/users/4389/" ]
According to [the spec](https://www.rfc-editor.org/rfc/rfc1945), Location headers used in a redirect [require](http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.3.2) a server name ``` HTTP/1.1 301 Moved Permanently ... Location: http://example.com/foo/baz/bar ``` However, in 2012, most web browsers will r...
According to the current version of the HTTP/1.1 standard, RFC 2616, the value of the `Location` header [must be an absolute URI](https://www.rfc-editor.org/rfc/rfc2616#section-14.30). However, in the [draft standard](http://datatracker.ietf.org/doc/draft-ietf-httpbis-p2-semantics/) prepared by the [HTTPbis Working Gr...
31,353
<p>WAMP allows us create alias that can point other drive e.g. point to external dive (G), moreover, can I point to IP instead of point to drive? </p> <p>Example point to <code>http://xxx.xxx.xxx/test</code> (Note: this is the same LAN network just different PC).</p>
[ { "answer_id": 31360, "author": "ionFish", "author_id": 13612, "author_profile": "https://webmasters.stackexchange.com/users/13612", "pm_score": 0, "selected": false, "text": "<p>Err, WAMP should listen on <code>127.0.0.1</code> by default, though security settings may restrict it to pub...
2012/06/26
[ "https://webmasters.stackexchange.com/questions/31353", "https://webmasters.stackexchange.com", "https://webmasters.stackexchange.com/users/16545/" ]
WAMP allows us create alias that can point other drive e.g. point to external dive (G), moreover, can I point to IP instead of point to drive? Example point to `http://xxx.xxx.xxx/test` (Note: this is the same LAN network just different PC).
Add that domain in hosts: ``` C:\Windows\system32\drivers\etc ``` `127.0.0.1 domainname.com`
31,393
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="https://webmasters.stackexchange.com/questions/30908/how-do-i-prevent-access-to-an-add-on-domains-root-directory-from-main-hosting-d">How do I prevent access to an add-on domain&#39;s root directory from main hosting domain name</a> </p> </blockquot...
[ { "answer_id": 31394, "author": "Meki", "author_id": 14288, "author_profile": "https://webmasters.stackexchange.com/users/14288", "pm_score": 1, "selected": false, "text": "<p>It's always bad practice to leave operational things in web accessible folder.</p>\n\n<p>But you can always plac...
2012/06/26
[ "https://webmasters.stackexchange.com/questions/31393", "https://webmasters.stackexchange.com", "https://webmasters.stackexchange.com/users/16555/" ]
> > **Possible Duplicate:** > > [How do I prevent access to an add-on domain's root directory from main hosting domain name](https://webmasters.stackexchange.com/questions/30908/how-do-i-prevent-access-to-an-add-on-domains-root-directory-from-main-hosting-d) > > > I am hosting a webshop with [OpenCart](http://...
You can do it with the following rule. This file would need to be placed in your /shop/ subdirectory. ``` RewriteEngine on RewriteBase / #if not already shop.mydomain.com RewriteCond %{HTTP_HOST} !^shop\.mydomain\.com$ [NC] #if request is for shop/, go to shop.mydomain.com RewriteRule ^shop/$ http://shop.mydomain.c...
31,407
<p>I need to exclude protection on one of the folder inside a protected directory with .htaccess </p> <p>I put .htaccess in here:</p> <pre><code>/home/mysite/public_html/new/administrator/.htaccess </code></pre> <p>The directory need to be exclude from protection:</p> <pre><code>/home/mysite/public_html/new/adminis...
[ { "answer_id": 31404, "author": "ionFish", "author_id": 13612, "author_profile": "https://webmasters.stackexchange.com/users/13612", "pm_score": 3, "selected": true, "text": "<p>I've been using Apache for the last several years, because it is easy to use and configure, runs smoothly over...
2012/06/26
[ "https://webmasters.stackexchange.com/questions/31407", "https://webmasters.stackexchange.com", "https://webmasters.stackexchange.com/users/14881/" ]
I need to exclude protection on one of the folder inside a protected directory with .htaccess I put .htaccess in here: ``` /home/mysite/public_html/new/administrator/.htaccess ``` The directory need to be exclude from protection: ``` /home/mysite/public_html/new/administrator/components/com_phocagallery/ ``` My...
I've been using Apache for the last several years, because it is easy to use and configure, runs smoothly over vast networks, and has many available modules to perform various tasks. Apache is process-based, and nginx is event-based. This means, it doesn't need to create a new thread for each thing it has to process. ...