Hot answers tagged

13

Fragment identifiers are traditionally used to identify a portion of document for client-side applications. As stated in the specification Google adopted: Traditionally, hash fragments (that is, everything after # in the URL) have been used to indicate one portion of a static HTML document. ...hash fragments are not part of HTTP requests (and as a ...


5

No, you shouldn't include # links. They refer to the same page, and the sitemap is saying how often the page changes (as well as page structure). In fact, your server won't get a request for the #. The browser, or crawler bot, requests the URL www.mydomain.com and then when it retrieves the page jumps to the part of the page with the id of comment1, say. (...


4

From the mod_rewrite documentation you need to use the NE (no escape) flag when your rewrite rule has a hash: RewriteRule #(.+)$ /? [L,R=301,NE] You commented that the NE flag may only apply to the target URL and not the rewrite pattern. If that is the case, another approach would be to escape the # sign. mod_rewrite supports \x style escape sequences. ...


3

Your sitemap file is intended to list the individual documents/pages on your site, not anchors. Doing this makes no real sense. If you did this, what would stop you from also including every other conceivable anchor link, eg. index.php#nav, index.php#sidebar?


3

As LazyOne notes in the comments, URL fragment identifiers ("hash tags") are not normally sent to the server in an HTTP request, so they cannot be redirected — or processed in any other way — on the server. You can rewrite such URLs in JavaScript, if the user's browser supports it and has it enabled. A very basic redirection script could look ...


2

Apache and Lighthttpd both have a directory listing mod that you need to enable, often by default these are disabled for security reasons. You can enable indexing by doing the following: Lighthttp To enable directory listings globally: dir-listing.activate = "enable" If you need it only for a directory, use conditionals: $HTTP["url"] =~ "^/download($|/)"...


2

Google understands that anchor links are the same page with or without the anchor. Example: example.com/page and example.com/page#div Google understands that these are the same pages. And so there is no duplicate content issues. Anchor links are a very common and useful URL protocol across the web. It can be very helpful for example.com/kittens to link to ...


2

The #! indication in the URL was used to indicate Google that this section of the page appears on the page after the JavaScript has been executed. For example you have a section on your page example.com/page1#about which makes an AJAX call. In order to make this URL crawlable by Google you had to change this to example.com/page1#!about so that Google ...


1

URLs with hashes are generally ignored by majority of Search Engines as it contains a block of information which can be found in the same page. This is not related to the crawl budget or link juice, as the URL is treated as one single landing page. In majority of cases, links with "#" are given less importance. The best way to pass value to whatever ...


1

As it was mentioned in comments, the simplest possibility to address tabs with urls, is to address them with parameters instead of hashes, like http://www.example.com/page-1?tab=2. While you correctly said, hashes will not be passed through the server to Google, parameters will. A kind of solution is described under https://css-tricks.com/better-linkable-...


1

The best thing you can do is setting the canonical meta tag for all pages with filtered views (sort by, ascendant, descendant, price range, etc), to let bots know which is the original page and which one should be indexed. So when URL is: example.com/#!explore/world:sortby=date Canonical meta tag should be set to: <link rel="canonical" href="example....


1

On a cPanel installed server, the entry for cPanel password is made in /etc/shadow file itself. Whenever a cPanel user is created, a user is added on your Linux server. So, every entry for the password is made in /etc/shadow file for every cPanel user you create.


1

I'm going to answer my own questions here: The title that Google displays in the SERPs is not necessarily the same as the title of the page. Google alters the title based on what you search for. This happens only when Google thinks the title is over-optimized. Also, the title can come from DMOZ or similar if NOODP meta is not set. All hash-bang URLs don't ...


1

I'm not sure why this question was migrated.. there are quite some questions with valid answers on stackoverflow about this. First: use BCrypt-hash, it is the recommended hashing algorithm today. Sha256 is a general purpose hashing algorithm, designed to be fast; you do not want your hashing algorithm to be fast for password hashing. Second: use a random, ...


1

Google's developer FAQ has this to say (I'm not really an AJAX guy, so this could be way off, if it is forgive me):- Question: Can I use redirects to point the crawler at my static content? Redirects are okay to use, as long as they eventually get you to a page that's equivalent to what the user would see on the #! version of the page. This may ...


Only top voted, non community-wiki answers of a minimum length are eligible