seo

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

天涯浪子 提交于 2019-12-06 20:40:29
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! 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, response) if request.host_url != config.host_full: # get request params without domain url = request.url

How to specify a SEO friendly url like twitter www.twitter.com/<name> using YII framework

限于喜欢 提交于 2019-12-06 20:27:41
I am currently using the Yii framework, and I would like to know if anyone has any clue on how to setup a SEO friendly url like www.twitter.com/ automatically in Yii? I know how to do so this manually in the config/main.php but I would like to be able to dynamically generate it. I have been able to do it in Grails as well. In Yii, what I know of is that you need to have another parameter like www.twitter.com/l/, but I do not want that parameter, anyone can share? Thanks. Edit the config file main.php with this 'components'=>array( ..... 'urlManager'=>array( 'urlFormat'=>'path', 'rules'=>array(

How could configure or modify SWFAddress to make it use #! instead of #

给你一囗甜甜゛ 提交于 2019-12-06 19:39:33
SWFAddress it's very cool way of providing deep linking in flash. But unless you use #! in urls (and a other things too), google wont index your internal pages. How would be the best way to configure (or modify) SWFAddress to use #!? I actually found the answer in another question here in stackoverflow. I want to post the solution for future reference: Just open swfaddress.js with your editor and replace all instances of "#" (with quotes), with "#!". Is that simple :) 来源: https://stackoverflow.com/questions/5599967/how-could-configure-or-modify-swfaddress-to-make-it-use-instead-of

window.location and SEO

本小妞迷上赌 提交于 2019-12-06 16:03:35
I'm trying to use something like jQuery biggerlink or just simple window.location for making bigger and more accessible links. What I'm wondering is what happens with SEO in these cases — I have anchor link in the containing element, but does Google penalize such actions since I'm not really clicking on link. Also, are there any other solutions (besides CSS positioning) which could be better than this one? Thanks. Setting window.location from script will not be spotted by search engines (Google has detection for simple document.write additions but this won't catch any of the more advanced DOM

How to make a better URL with .htaccess and multiple parameters?

佐手、 提交于 2019-12-06 15:52:21
I have a very long a unfriendly URL an I'm looking to make SEO better for the site: http://www.site.com/sub-site/index.php?page=nameofpage&locale=en_EN I would like to have this instead: http:// www.site.com/sub-site/en/nameofpage all the URLS are hard coded in the links in the form of: <a href="index.php?page=nameofpage&locale=en_EN">link</a> What is the best way to achieve this with mod-rewrite? I find it particularly difficult to achieve: combining both parameters, page and locale Turning ISO locales EN_en to en in the URL How should I write links? using the result URL or the index.php?page

How to link to a child site-map file from a parent site map in ASP.NET MVC4 using MVCSitemapProvider?

一世执手 提交于 2019-12-06 15:35:56
I am using MVCSitemapProvider by Maarten Balliauw with Ninject DI in MVC4. Being a large-scale web app, enumerating over the records to generate the sitemap xml accounts for 70% of the page load time. For that purpose, I went for using new sitemap files for each level-n dynamic node provider. <mvcSiteMap xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://mvcsitemap.codeplex.com/schemas/MvcSiteMap-File-4.0" xsi:schemaLocation="http://mvcsitemap.codeplex.com/schemas/MvcSiteMap-File-4.0 MvcSiteMapSchema.xsd"> <mvcSiteMapNode title="$resources:SiteMapLocalizations,HomeTitle"

Redirect folder to different server

╄→гoц情女王★ 提交于 2019-12-06 14:05:25
问题 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! 回答1: As brock Batsell

Programmatically get the number of indexed pages in Google?

假装没事ソ 提交于 2019-12-06 13:26:40
问题 As an SEO metric I'd like to programmatically get the number of by Google indexed pages. (if I search "site:mydomain.com" I want the get number of pages found). Is there any lib for this or do I need to parse a google request? 回答1: you should use Google Webmaster Tool API. First login in google webmaster with gmail account and familiar with the functionality then see following developer guide: http://code.google.com/apis/webmastertools/docs/2.0/developers_guide.html 回答2: Here's something I

Using sitelinks search bar google

瘦欲@ 提交于 2019-12-06 13:14:11
I am following this guide by Google to add a sitelinks search bar on my website. The structured data markup tool shows everything to be correct. But: The search bar hasn't appeared in the search results for my website. Google has indexed the page www.example.com/search?q=%7Bsearch_term_string%7D instead: I have the exact same code as explained in the example, except the site URL of course. What am I doing wrong? Or is this expected behaviour? <script type="application/ld+json"> { "@context": "http://schema.org", "@type": "WebSite", "url": "http://www.example.com/", "potentialAction": { "@type"

Factoring in SEO on a Flash Site

不问归期 提交于 2019-12-06 12:43:18
问题 There have been many debates about this topic already here, but none of them fully answered my question so I figured I would pose it and hope I get one or two decent answers. We're planning on relaunching our company website in the next few months. Our current site, for the most part, is text-driven and because of this we rank very well on Google, Yahoo, and Bing for our primary keywords. We want to increase the "Wow Factor" of the site a bit (we're an interactive agency) but still maintain a