seo

Update meta tags in angular universal with external API call

吃可爱长大的小学妹 提交于 2019-12-04 23:56:51
问题 I've spent more than 2 months but could not found a clear solution of how to proceed with angular universal. I've already spent about 6 months in implementing angular universal on a project for which I don't get a much time and now I'm stuck with this issue. Can anyone help me with this as it seems the whole world want to know a solution for Angular SSR. Here's my code(Meta tag service): import {Injectable} from '@angular/core'; import { Meta, Title } from '@angular/platform-browser'; import

Specify custom canonical URL in WordPress Post

一曲冷凌霜 提交于 2019-12-04 23:37:03
问题 We operate 1000's of websites, most of them are are made for specific sports events. Currently we have our writers write to all of them specifically for unique content. However we have 2 major sites that cover all events in their verticals; and we would like to start syndicating content to the minisites, from these major sites. To maintain best practices in Google's eyes, we would have to specify the original source of the article via the rel=canonical tag - however our current plugin AIOSEO

H1 tags, SEO and semantics

谁都会走 提交于 2019-12-04 23:25:22
问题 I'm using the H1 tag in my document as the main title, as you do. The text in the H1 is the title of the company, which needs to be shown on every page. I'm using the H2 tag for the title of the main content on each page. So the H1 is the same on every page, and the H2 changes. Example http://dev.darrenhall.info/temp/stackoverflow/h1/h1.gif I know that a lot of sites use the H1 to do what I'm doing with the H2, am I losing out by not doing this? I know that semantically I can't make the H1

Detect social bots in Node Express

风格不统一 提交于 2019-12-04 22:31:10
问题 I'm trying to detect for either of the following 2 options: A specific list of bots (FacebookExternalHit|LinkedInBot|TwitterBot|Baiduspider) Any bots that don't support the Crawable Ajax Specification I've seen similar questions (How to recognize Facebook User-Agent) but nothing that explains how to do this in Node and Express. I need to do this in a format like this: app.get("*", function(req, res){ if (is one of the bots) //serve snapshot if (is not one of the bots) res.sendFile(__dirname +

Set language using htaccess URLrewrite

那年仲夏 提交于 2019-12-04 21:39:17
问题 I have for example two files in my root directory: one.php and two.php . I would like to reach them through these urls without having to actually have the physical directories en+de. mydomain.com/en/ one mydomain.com/en/ two mydomain.com/de/ one mydomain.com/de/ two So the first directory would be "ignored" and just pass a GET variable with the language setting to the php-file, second directory is the php-file without extension. This is what I'm using in my htaccess to loose the file

Ruby on Rails 301 redirection

女生的网名这么多〃 提交于 2019-12-04 21:11:56
问题 I added slugs to some of the models, but because of SEO I need to do 301 redirection from old links: old: http://host.com/foo/1 new: http://host.com/foo/foo_slug question: how to implement 301 redirection in this case? and is it possible to implement 301 redirection from uppercased link? Like this: http://host.com/foo/FOO_SLUG -> http://host.com/foo/foo_slug 回答1: You should be able to redirect with status 301 by adding this to your controller action: redirect_to "http://host.com/foo/foo_slug"

Make friendly URL in ASP.NET

怎甘沉沦 提交于 2019-12-04 19:31:00
how do i make my web app friendly URL? currently my app URL looks like this http://www.domain.com/Page.aspx?article=103 but I would like to display the URL to look like this http://www.domain.com/Page.aspx?Google-likes-url-friendly what would i need to do? check out http://learn.iis.net/page.aspx/460/using-the-url-rewrite-module/ you will need to download and install a module. Pretty easy to use and configure. Here is the introduction : http://learn.iis.net/page.aspx/461/creating-rewrite-rules-for-the-url-rewrite-module/ Look into using ASP.NET MVC. With it, you could have a URL that's even

Can pages that make heavy use of AJAX also be search engine friendly?

社会主义新天地 提交于 2019-12-04 19:16:00
I guess what I mean is, if I make a site that uses AJAX to load some content that I also want search engines to find -- if I make the page work sans-javascript (say, when javascript isn't present, a link goes to site.com?c=somecontent rather than calling a function with $("#content").load("somecontent.html"); ), will the search engine follow the non-javascript link and be able to index the site well? I suppose this would work if javascript-enabled browsers who followed a search engine link to the ?c=somecontent link would still make use of the site normally, right? Is this a really challenging

how to edit header tag in joomla website

守給你的承諾、 提交于 2019-12-04 19:08:10
my website is created in joomla 1.5 , i wants to edit my website pages header tags. is there any extention available. cchiera I'm assuming you mean you wish to edit the content of your head tag. That is elements between . The <header></header> tag is only used in HTML5 and quite sure that's not what you meant. As for the head tag, you add that yourself in your template and can add any content you wish between those tags. In most CMS's you have complete control in what appears between the head tags. With Joomla you are required to add <jdoc:include type="head" /> however. The content of that

Redirect folder to different server

落爺英雄遲暮 提交于 2019-12-04 18:44:17
I know you can redirect subdomains to a different server, but can you do the same with folders? Say I have example.com. I can redirect mysubdomain.example.com to a different server, but can I redirect example.com/mysubdomain to a different server? I'd like to host a rails app in that folder on a site that runs php while still maintaining good search engines ratings (by not creating a sub domain which in my experience in recognized as a different site). Any help? Thanks! As brock Batsell suggested, a solution can be proxying the requests. you'll usually find this behavior in web apps that use