seo

Map route asp.net mvc

走远了吗. 提交于 2019-12-08 05:58:02
问题 I'm trying to make my url seo friendly. I need to make url with this structure www.domainname.com/article123. And with this route routes.MapRoute( "articlename", // Route name "aaaa/{articleID}", // URL with parameters new {action="DetailsByName",controller="Article"}, new string[] { "bssnew.Controllers" } // Parameter defaults); It doesn't work. MY route link looks like this @Html.RouteLink("aaa ","articlename", new {articleID="CentralPark",},new { @class = "item-link" }) But when I add

MVC and Meta Tags for Search Engine Optimization

扶醉桌前 提交于 2019-12-08 05:21:28
I am working on mvc2. I want used Meta tags. I am new on the meta tags and seo. How can used meta tags on my page? What is the best way to used meta tags on mvc? From a programmer/technology point of view: meta tags are just tags. What the content of your meta tags should be, and how to generate them, is application specific. Google's article on meta tags W3schools has a nice simple article Meta tags play an ever decreasing role in SEO these days. However, in relation to MVC, you can set your masterpage up along the following lines: <head runat="server"> <title> <asp:ContentPlaceHolder ID=

MVC and Meta Tags for Search Engine Optimization

扶醉桌前 提交于 2019-12-08 05:13:02
问题 I am working on mvc2. I want used Meta tags. I am new on the meta tags and seo. How can used meta tags on my page? What is the best way to used meta tags on mvc? 回答1: From a programmer/technology point of view: meta tags are just tags. What the content of your meta tags should be, and how to generate them, is application specific. Google's article on meta tags W3schools has a nice simple article 回答2: Meta tags play an ever decreasing role in SEO these days. However, in relation to MVC, you

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

為{幸葍}努か 提交于 2019-12-08 04:49:58
问题 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. 回答1: Edit the config

301 Redirect original URL request to routed URL

一个人想着一个人 提交于 2019-12-08 04:30:42
问题 I'm using the following code in my Global.asax file for url-rewriting: routes.MapRoute( "BlogArticle", "Blog/Article/{filename}", new { controller = "Blog", action = "Article" } ); This means the following URL: /Blog/Article/blog-article-title Will load the following Action: /Blog/Article?filename=blog-article-title I've noticed that the original URL path will still load my page. This could cause problems if the URL rewriting was added to the site months after the site went live. Google will

SEO URL based on category name without have a category id in URL

佐手、 提交于 2019-12-08 04:26:31
问题 I have two table posts & categories post_id | post_title | post_content | post_cat -------------------------------------------------- 1 Hello World welcome to my.. 1 . .. .. .. categories table cat_id | cat_name | cat_parent ----------------------------- 1 News NULL 2 Sports 1 . ... .. Let's say current category link for news is http://domain.com/category/1/ MySQL statment SELECT posts.post_id, posts.post_id, posts.post_title, posts.post_content, posts.post_cat, categories.cat_id, categories

How do I ensure lower case URLs on POST?

柔情痞子 提交于 2019-12-08 04:26:14
问题 I am trying to ensure that all URLs used to access my ASP.NET MVC site are lower case. In the event that an upper case letter is in the URL, I'm changing the status code to 301 and changing the location to the lowercase version of the URL with this code: protected void Application_BeginRequest(object sender, EventArgs e) { var url = Request.Url.ToString(); if (Regex.IsMatch(url, @"[A-Z]")) { Response.Clear(); Response.Status = "301 Moved Permanently"; Response.StatusCode = (int)HttpStatusCode

Can googlebot do basic javascript? [duplicate]

自闭症网瘾萝莉.ら 提交于 2019-12-08 04:26:10
问题 This question already has answers here : Do Google's crawlers interpret Javascript? What if I load a page through AJAX? [closed] (8 answers) Closed 5 years ago . Suppose I have something like this page: <noscript>You need JS for this page</noscript> <script> document.write('you have javascript'); $(function() { /* Some DOM heavy coding */ }); <script> What will this look like to google? If someone searches google for "you have javascript" will they see my page? 回答1: The safest answer is: don

Remove index.php?route= from OpenCart

馋奶兔 提交于 2019-12-08 04:25:34
问题 I'm a .NET developer but my friend called me for support.I made some changes with .htaccess but i'm corrupted SEO. Everything started with "www" tag on url.I see we get some errors when we are not using "www" and i'm changed .htaccess.I'm added rewrite rule and redirected mysite.com to www.mysite.com.Our problems are solved but now we have another problem. We are using Opencart - SEO and it's enabled.Our products seems like http://www.mysite.com/epson-claria-uyumlu-yazici-kartus-dolum

Is “&” character inside url segment allowed?

£可爱£侵袭症+ 提交于 2019-12-08 04:23:55
问题 Is "&" character in url allowed? What is the impact to url if it's illegal and is present. I'm looking for an answer from an SEO standpoint. Example: rootdomain.com/Black&Decker/products 回答1: It's permitted (amongst other places) as part of separating specified parameters in a GET e.g. http://example.com/query?a=1&b=2 defines a=1 and b=2 . Note that & is a reserved character under RFC3986. See this Wikipedia entry on percent encoding for more details. 回答2: Technically it is possible to have