Do SEO-friendly URLs really affect a page’s ranking? [closed]

I will let google answer to your question: http://googlewebmastercentral.blogspot.com/2008/09/dynamic-urls-vs-static-urls.html In the article: Which can Googlebot read better, static or dynamic URLs? […]While static URLs might have a slight advantage in terms of clickthrough rates because users can easily read the urls, the decision to use database-driven websites does not imply a significant disadvantage in terms … Read more

Customize FacesServlet to get rid of .xhtml extension

If your sole reason is to get rid of the .xhtml extension, then there are various ways depending on the JSF version you’re using. Faces 4.0 Just add the following context parameter to web.xml: <context-param> <param-name>jakarta.faces.AUTOMATIC_EXTENSIONLESS_MAPPING</param-name> <param-value>true</param-value> </context-param> JSF 2.3+ JSF 2.3 offers a new API to collect all views: the ViewHandler#getViews(). Combine this with … Read more

How can I create a friendly URL in ASP.NET MVC?

There are two steps to solve this problem. First, create a new route or change the default route to accept an additional parameter: routes.MapRoute( “Default”, // Route name “{controller}/{action}/{id}/{ignoreThisBit}”, new { controller = “Home”, action = “Index”, id = “”, ignoreThisBit = “”} // Parameter defaults ) Now you can type whatever you want to … Read more

Generate SEO friendly URLs (slugs) [closed]

I like the php-slugs code at google code solution. But if you want a simpler one that works with UTF-8: function format_uri( $string, $separator=”-” ) { $accents_regex = ‘~&([a-z]{1,2})(?:acute|cedil|circ|grave|lig|orn|ring|slash|th|tilde|uml);~i’; $special_cases = array( ‘&’ => ‘and’, “‘” => ”); $string = mb_strtolower( trim( $string ), ‘UTF-8’ ); $string = str_replace( array_keys($special_cases), array_values( $special_cases), $string ); $string … Read more