seo

How can I use friendly ID in Rails like mysite.com/[USERNAME]

一曲冷凌霜 提交于 2019-12-04 07:25:25
How can I use friendly URLs on my Rails application ? All I need is to make available the following url format mysite.com/company1 mysite.com/user123 mysite.com/user1234 mysite.com/newton.garcia mysite.com/company-name Can anyone help ? I already ask this question on Quora.. http://www.quora.com/How-does-Quora-rewrite-their-urls For who really interested to implement Quora/Facebook URLs like. Heres a tip in Rails3: Make a table called slugs : # slug | model_id | model # =========================== # simple data: # one | 2222 | post # two | 1111 | user # six | 5432 | comment Now in routes.rb

SEO URL rewriting ASP.NET

只愿长相守 提交于 2019-12-04 07:09:27
I already have an ASP.NET Web Site I want to change my site to be more SEO url friendly. I want to change ex. this site: www.mydomain.aspx?articleID=5 to: www.mydomain/article/learningURLrewrite - articlename needs to be read from DB How do I accomplish this? I have already tried with some articles from Google which mentions IhttpModule without any luck. My goal is to have a class responsible for redirecting based on folderpath(like this): string folderpath = "my folderpath" (could be articles, products etc.) string id = Request.QueryString["id"].ToString(); if(folderpath.equals("articles")) {

SEO URLs with ASP.NET MVC

耗尽温柔 提交于 2019-12-04 07:04:38
Is there a definite DO and DONT when implementing seo urls? A lot of good practise seems fine for .html sites but breaks down on medium/large database sites. AFAIK the url should be www.mysite.com/category/page-name-here If I wish to make a content rich site and be default the category and page are database driven - does this prevent me from having pages such as www.mysite.com/about or www.mysite.com/home as the about and home pages could conflict. Although the routing engine is flexible, is the above feasible and/or worthwhile? -edit- Just to elaborate on my question, is it possible to

Why aren't my rating/review Google rich snippets working?

老子叫甜甜 提交于 2019-12-04 06:53:11
问题 I'm using Google rich snippets (https://developers.google.com/structured-data/rich-snippets/reviews) to tag ratings and reviews on this website: http://www.fwpest.com/ Google's Structured Data Testing Tool says "All good" here: https://developers.google.com/structured-data/testing-tool/?url=http://fwpest.com But I don't see the stars below the website url on a Google SRP here: https://www.google.com/search?q=f%26w%20pest%20control By contrast, I do see the star rating and review metadata

Can I add custom properties to a given @type in JSON-LD?

拜拜、爱过 提交于 2019-12-04 06:44:16
问题 I'm developing a website that allows users to explore a massive discography. All the data is currently stored in a JSON file, which I'm converting to JSON-LD in order to make it semantic and crawlable by search engines. Schema.org has a standard type for Music Albums, which doesn't have properties for some of the data I store (and present to users) for each album. These properties are marked as errors by Google's structured data validator. My question is: does Google just ignore the custom

Redirect *.appspot.com to custom domain: Google app engine (Django)

巧了我就是萌 提交于 2019-12-04 06:42:07
问题 I'm directly putting here some sample code of mine to get better picture. url.py (r'^robots\.txt$', 'myapp.views.robots'), (r'^$', 'myapp.views.home'), views.py def home(request): ...my code return render_to_response(request, 'myapp/home.html', locals()) models.py class user_sessions(db.Model): email_id = db.StringProperty(default='') user_id = db.IntegerProperty(default=0) class Meta: db_table = 'user_sessions' verbose_name = 'User Session' verbose_name_plural = 'User Sessions' def __unicode

php 301 redirects actually doing a 302 redirect

不羁的心 提交于 2019-12-04 06:28:49
问题 I have been googling for this but no one appears to have the answer. This post describes the problem well: http://www.mail-archive.com/php-general@lists.php.net/msg198576.html Server is Windows 2008 FastCGI PHP 5 回答1: It appears that the only answer to this one at the moment is to not use FastCGI on IIS7 when using PHP (because of a bug in FastCGI) - which is rubbish because it's very quick. Using isapi allows the 301 redirects to work as they should, but it's not as fast. 回答2: microsoft

Does angularjs impact seo?

白昼怎懂夜的黑 提交于 2019-12-04 05:45:14
问题 I was developing a website with angular JS. Now I'm in the middle of it. Suddenly got a question if this affects Search engine crawlers? Looking for a solution. 回答1: As far as we know as of today only Google can handle content powered by JavaScript. So this shouldn't hurt your SEO efforts with Google but will hurt you with all of the other search engines. 来源: https://stackoverflow.com/questions/26415090/does-angularjs-impact-seo

Does PhantomJS support ES6 for serving angularjs app to crawlers and bots?

可紊 提交于 2019-12-04 05:10:16
I am trying to use ajax-seo for an Angularjs app to serve html compiled content from a PhantomJS webserver`. But it's not rendering the complete page. It's just giving the following response <html><head></head><body></body></html> I have followed the instructions well but no luck so far. So I'd like to know whether PhantomJS supports ES6 or not, because my app is in ES6. PhantomJS 2.1.1 only supports about 10% of ECMAScript 6, which might not be enough to properly render your page. Here is a slightly more detailed result based on https://kangax.github.io/compat-table/es6/ : Overall coverage:

Capture search engine keywords in php

北战南征 提交于 2019-12-04 05:09:19
问题 In awstats I get a table with all the key words and phrases used to find my website. I would like to capture this myself however each search engine url is in a different format. When google is the referer I can use the variable q from the querystring as the search term (e.g. google.com?q=my+keywords) however another search engine may have the format searchengine.com?search=my+keywords Is there a generic way of identifying search keywords? Or am I going to have to create a regex/filter for