seo

AngularJS content and Google

廉价感情. 提交于 2019-12-23 06:01:29
问题 Recently I've seen articles stating that Google now crawls sites and renders CSS and Javascript. Example article by Google themselves: http://googlewebmastercentral.blogspot.co.uk/2014/05/understanding-web-pages-better.html I have a single page application setup in Angular with HTML5 mode on the routing. An ng-view in my index.html is populated based on the URL like so: app.config(function($routeProvider, $locationProvider){ $locationProvider.html5Mode(true); $routeProvider.when("/", {

SEO with express.js and prerender-node

橙三吉。 提交于 2019-12-23 05:17:13
问题 Front-end: I have SPA client website that uses own routing system. For instance it has route http://localhost:8080/about Back-end: I'm using prerender-node on express.js server (runs on port 3001) to prerender static html for crawler bots: app.use(require('prerender-node') .set('prerenderServiceUrl', 'http://localhost:3000/') .set('afterRender', function (err, req, prerender_res) { console.log('URL: ', req.url); // here I see: "/about?_escaped_fragment_=" })); my express routing looks like

How to make dynamic pages seo friendly url using htaccess

最后都变了- 提交于 2019-12-23 04:52:09
问题 In my php page i have given link as href="test.php?category="xyz". In url I want this page link to appear as "test/xyz". In my .htaccess file i have added RewriteRule ^test/([a-zA-Z]+) test.php?category=$ but this does'nt work for me. All the other links in test.php gets test appended to their links. eg. if there was example.php its appears as test/example.php Help is appreciated. Thanks in advance 回答1: Maybe this code can help you <IfModule mod_rewrite.c> RewriteEngine on RewriteRule ^test/(

301 Redirect vs. Rel=Canonical

隐身守侯 提交于 2019-12-23 04:24:49
问题 On our site, locale specific URLs are accessible across domains. Say we have two URLs: dog.aspx (English) and hund.aspx (German). The following URLs work: www.example.com/hund.aspx (displays English content, not German,but URL is German) www.example.de/hund.aspx (correct URL) To solve this, we have two options: www.example.com/hund.aspx redirect to www.example.com/dog.aspx Have canonical URL in www.example.com/hund.aspx to www.example.com/dog.aspx What is more preferable? 301 redirect or

Creating a canonical with PHP

夙愿已清 提交于 2019-12-23 04:03:32
问题 I need PHP code to generate a dynamic canonical URL within the <link /> tag as follows: <link rel="canonical" href="php goes here" /> My site uses PHP to generate variables as follows: http://www.mysite.com/script.php?var1=blue&var2=large&pointlessvar=narrow I want to be able to return a canonical URL that removes the &pointlessvar=narrow And re-arranges the variables in the manner as I see fit, like this: <link rel="canonical" href="http://www.mysite.com/script.php?var2=large&var1=blue" /> I

How to write seo friendly url's using htaccess?

浪子不回头ぞ 提交于 2019-12-23 03:52:17
问题 I want to create seo friendly url's for my website. I want to create it from .htaccess file. I have very less knowledge about .htaccess I have following url http://www.testsite.com/index.php?dispatch=flowers_search.flowers_search_result&city=Pune&type=Carnation I need to display url as follows, http://www.testsite.com/flowers/Pune/Carnation Thanks 回答1: http://www.generateit.net/mod-rewrite/ resulting in: RewriteEngine On RewriteRule ^([^/]*)/([^/]*)$ /index.php?dispatch=flowers_search.flowers

SEO Friendly URL to Dynamic URL using PHP

久未见 提交于 2019-12-23 03:45:06
问题 Currently I have a url like this http://<client_name>.website.com/index.php?function_name&cat=32 I want to set things up so that our Marketing people can publish url's like http://<client_name>.website.com/<parent_category>/<category> The "cat=XX" will be generated of the last <category> only. But marketing wants to use the parent category in their campaigns. Currently we pass all of URL's through index.php in the html root directory (this will become important later). I've tried several

Google App Engine Python Webapp2 301 redirect from www to non-www domain

僤鯓⒐⒋嵵緔 提交于 2019-12-23 03:40:16
问题 I have an application built on gae. I use python with webapp2 framework. I need to make 301 redirect from www.my-crazy-domain.com to my-crazy.domain.com so to eliminate www and not-www doubles in search results. Does anybody have ready-to-use solution? Thanks for any help! 回答1: I'v made the trick. class BaseController(webapp2.RequestHandler): """ Base controller, all contollers in my cms extends it """ def initialize(self, request, response): super(BaseController, self).initialize(request,

Do search engines treat text-indent:-9999em or negative margin as SEO cheat?

青春壹個敷衍的年華 提交于 2019-12-23 03:02:25
问题 I want to use a technique like text-indent:-9999em or negative margin to replace my text with more pretty pictures, but I wonder if search engines would treat this as kinds of cheating? I think for it to know this, it must read my CSS file, so I can use robots.txt to forbid it from reading my CSS file. If this works, can I also use display:none directly? Or I can manipulate some web-element's style by using jQuery code? 回答1: The techniques you have outlined (negative margins/indents) etc are

How to SEO friendly an existing ASP .NET 3.5 web application under IIS6

这一生的挚爱 提交于 2019-12-23 02:49:17
问题 So, I know there's a lot of this subject here and over the Internet. But most articles/questions refers to "static" url rewriting, like: www.site.com/products.aspx?category=Books So they rewrite it to www.site.com/Products/Books That's ok but I need something else. The site is like a CMS, it has different types of content. Nowadays to read the article titled "How StackOverflow helps you in your development" you need to go to an URL like the following. www.site.com/viewContent.aspx?Id=1234