Hot answers tagged

7

If the page content is only based on the user agent and is not accessible by different URLs then the search engines are only ever going to see one version of the page and that is the version that will be indexed. But this is also a problem for users. Users don't always search for help (or whatever "instruction" you are providing) using the device that they ...


7

you should use both: crawling encouragement using a sitemap.xml – A well structured sitemap.xml can help search engine spiders to find your content quick and directly. And a sitemap.xml gives you the option, of curating what you want to have crawled, how often you consider crawling useful and you can even put a focus on content you find important – the tag ...


4

Since it based on rendering plain files from a git repository, I don't think you can use dynamic information. The goals of Github Pages is to show a static site easily from an open source project. You can still contact them and I think you have a dedicated support if you use Github Enterprise.


4

Short answer: That PHP code is run on the server before sending the response to the crawler, so by the time the page reaches the crawler, all that info is already populated. For sites written using server-side languages such as your example, here's the full lifecycle when a user visits a page: The user's browser sends an HTTP request to the server for a ...


3

Having any email address exposed you run the risk of having the spam bots collecting that email address, there are methods that I'll list that can help you but its just like a car alarm, a car alarm can help prevent your car being stolen but it doesn't necessary mean it can't. Bots are forever becoming more complex and many are rendering pages just like real ...


3

I have never actually come across this before. Then again, I haven't been proactively looking. I have had a quick look and came across the below quote, in one of John Mueller's Google+ Blog Posts: Google supports the use of JavaScript to provide titles, description & robots meta tags, structured data, and other meta-data. When using AMP, the AMP ...


2

Search engine spiders can't tell what content is dynamic and what content it static. When you serve a page to them, they will index whatever content is on that page, be it dynamic or static. To be able to find the pages with the dynamic content, you must link to those pages from somewhere else on the site. The "restaurants in norway" page from your ...


2

This sounds like you want to index search results. If I'm right, it's against Google's guidelines, according to Matt Cutts. I recommend you to only index valuable content and not auto generated pages.


2

Depending upon your requirements (low network bandwidth), I think splitting your website is such a bad idea since it will result in many requests. I don't recommend dynamic loading for navigational purposes since the headers and menus are only lightweight. Here are the answers to your questions: Maybe. It depends upon the size of your dynamic content and ...


2

Using dynamic pages for e-commerce is usually advisable because it's scalable. It's typically easier to store a new product in a database than to create a whole new page manually with HTML for it. As for SEO, you want to make sure that the URIs are unique and describe the resource accurately. You want all pages to be unique content, not a lot of boilerplate....


2

There are a couple of options, but they can be tricky to implement (depending on how your page is constructed), and tend to be of limited benefit unless your HTML page is quite large. Etags There are a few ways to generate an etag for your dynamic page, the simplest is probably just to create a hash of entire the HTML content before you send it. That way ...


2

Google's quality guidelines say that they don't want search results inside of your website indexed, as they don't want users from Google search results to come to your search results (search in search). So, it is OK for you to put a link to your search results page on your site, but you're recommended to don't allow to index your search results pages. For ...


2

Google doesn't care about if you use static or dynamic content for your pages because Google bots analyze the final HTML. That's why a full HTML/CSS (without PHP) website can rank very well on Google. However, Google likes fresh content but dynamic content and fresh content are different things. I encourage you to often add new pages on your website to tell ...


2

This is going to be incredibly difficult for you to achieve. Firstly Google awards valuable original content and penalizes sites which simply contain duplicate content from other sites. Secondly Google has started cracking down on search results pages being listed in the Google index as these results pages don't present any useful content to the end user and ...


1

If the entire purpose of the page is to display content from other sites (such as a news feed) then you will find that you won't rank highly anyway as you need to have original content of your own. Putting that aside for one minute it mainly depends on how the content is being displayed and how Google interprets it. If it is interpreted as a news feed then ...


1

There is no need to block the page in its entirety, what you can do is apply a change to your site so that if no parameters are passed then the site returns a 404 not found error (important this has to be a http code and not just printed on the screen) and allow Google to spider your results page. Why do this? Well blocking any spider access to the results ...


1

Here's the solution if anyone is interested. shrugs /games/<?php echo $row_gamesList['game_file']; ?>?games_path=<?php echo $row_gamesList['games_path']; ?>&category_id=<?php echo $row_gamesList['category_id']; ?> Added the database category "game_file" then linked it dynamically to the website. "game_file" contains all 400 static php ...


1

Starting on line 322 of your custom.js file you have this code as part of the carousel render: var u=window.location.pathname; u=u.substring(0,u.lastIndexOf("/")+1); u+="Thema_"+encodeURIComponent(tpquestions[curidx].name)+"-"+tpquestions[curidx].id+".html"; if(!X4.config.isuser) window.history.replaceState({qid:tpquestions[curidx].id},"",u); The code ...


1

It can actually give you a better position in seo, especially if you want to be listed in google, and your code detects a mobile device a display a properly-formatted page to that mobile device. But the simple way to do this is in PHP. To start, create index.php containing these contents: <!-- common header text/code goes here --> <?php $set=0;$...


1

The short answer is that it is a problem if Google, or any search engine, can not crawl through those links. I would fix it. My question would be that is it a big setback that the bot doesn't see those links? If yes, how should I fix that? This is a question about what you did, how the theme is setup, and web development issues. So, asking outside the ...


1

From the AdSense help page it says that they support entire directories that need login: You'll need to provide the following information: Restricted directory or URL: The URL that is blocked from our crawler's access. ... So you could tell them that /page/ requires login. If there are other pages in that directory that don't require ...


1

Static pages usually load much faster than dynamic pages - this is a good thing for small sites not able to afford a CDN. PageSpeed is important to Google and you can test your speed at https://developers.google.com/speed/pagespeed/insights/ anything above 80 is considered very good (using browser cache and gzip via .htaccess are best for improving speed - ...


1

products1.php simply needs to output the canonical link in the head section of the page. Presumably it knows the information needed to build your friendly URL: category subcategory product name product id Then the canonical tag appears in both the page for the friendly URL and the page for the parameterized URL. That is fine. Google says that a ...


1

Single page sites can rank. However, the protocol you describe can be used in a way that may confuse search engines. I am not an expert, but this is my thought. Search engines rank pages. The more pages that rank well the better the site performs overall. It is possible that a single page site can rank rather well. However, there is no denying that content ...


1

If you think creating an XML sitemap is too complicated, you can also create a sitemap in a plain text file. This format doesn’t offer all additional features, but it’s sufficient if you only want to list all URLs to be indexed. See http://www.sitemaps.org/protocol.html#otherformats UTF-8. One absolute URL per line. Nothing else. So it might look like: ...


1

A robots file tells search engines and others where to go and, more so, what to avoid. Sitemaps tell search engines the structure of your site and how to find, possibly, hard to discover pages and paths. In your case, it sounds like you need to set up a sitemap.


1

I thought using a sitemap.xml would be a good choice to get those files indexed in search engines because using PHP I can edit the sitemap dynamically after each page is created. But this is quite hard to do (since it's an XML document). It's not as difficult as you think. Using PHP, you can create the XML in a dynamic fashion and then output it with ...


1

You need to fire an event (or a fake pageview using trackPageview) after the form has been validated, ie when the content dynamically changes. Do not add this code on submitting the form alone, as that will count any clicks that fail your validation.


1

There are two ways to do this - Using Events in Google Analytics, and then configuring the Goal on that Event being fired. In the form URL, add a specific URL parameter which you are sure does not do anything (yes, you read that right). Typical flow would be ... user lands on landing page, submits form, ends up on the same page (except with an additional ...


1

The simplest way to do this is to fire an event when the form is submitted. Then in analytics configure a goal based on the triggering of the event. (Event based goals is just another type of goal.)


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