friendly-url

Descriptive URLs vs. Basic URLs

别说谁变了你拦得住时间么 提交于 2019-12-07 12:42:40
问题 I have a website and I'm employing Clean URLs to all of the links. I'm wondering what the opinion is about short, basic URLs versus longer, descriptive URLs. For instance, if my website was about Georgia Bulldog football news, which would be better for SEO purposes? http://www.example.com/news or http://www.example.com/georgia-bulldog-football-news I've read quite a bit, but I'm torn on the simple vs. descriptive factor. Can anyone give opinions based on SEO experience? 回答1: The descriptive

URL rewriting that visibly rewrites (changes the URL in the address bar)

百般思念 提交于 2019-12-07 11:36:27
问题 I asked sort of the complement of this question before: Mod_rewrite invisibly: works when target is a file, not when it's a directory Now I actually want a rewrite to happen visibly, because I've switched URL schemes and although I want the old links to work, I want the user to see the new URL scheme. So this works RewriteRule ^oldscheme/(.*)/?$ newscheme/$1 But the URL in the address bar remains as http://example.com/oldscheme/foo . What's the right way to do a visible rewrite, preferably

FriendlyURLs - RouteData returns no value

China☆狼群 提交于 2019-12-07 07:29:10
问题 I installed the Microsoft.Asp.Net.FriendlyUrls.Core.dll via NuGet to an existing asp.net 4.5 webforms website. I have the following in the RouteConfig file public static void RegisterRoutes(RouteCollection routes) { var settings = new FriendlyUrlSettings(); settings.AutoRedirectMode = RedirectMode.Permanent; routes.EnableFriendlyUrls(settings); routes.MapPageRoute("frUrl", "frurltest/{id}", "~/frurltest.aspx"); } **Global.asax** void Application_Start(object sender, EventArgs e) { RouteConfig

SEO Friendly URL Rewriter Parameters

淺唱寂寞╮ 提交于 2019-12-07 05:40:17
问题 I would appreciate you advice on how to incorporate parameters into SEO Friendly URLs We have decided to have the "techie" parameters first, followed by the "SEO Slug" \product\ABC123\fly-your-own-helicopter much like S.O. - if the SEO Slug changes, or is truncated, or missing, we still have the Product and ABC123 parameters; various articles say that having such extra data doesn't harm SEO ranking. We need to have additional parameters; we could use "-" to separate parameters as it makes

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(

Relative paths from file for img, a and header

陌路散爱 提交于 2019-12-06 16:03:05
问题 I have a dynamic website that can be accessed as domain/categories or domain/categories/article, and it redirects to domain/index.php?category/article. The problem I'm facing is that I want to use relative paths from the files. I managed to do that for includes with dirname( FILE ), as in ini_set('include_path', dirname(__FILE__) . '/include'); This works fine. Depending on the directory I will change it to, and it also works ini_set('include_path', dirname(__FILE__) . '/../include'); (extra

How to make url /username in codeigniter?

∥☆過路亽.° 提交于 2019-12-06 13:41:22
I'm using codeigniter at the moment. I am currently able to view a persons profile by the using /user/profile/profile_id but I want to make it so that a user can just navigate to a profile using /username to make it simpler. How would I go about doing this I'm not sure where to start? class User extends CI_Controller{ public function index(){ if($this->session->userdata('is_logged_in')){ redirect('user/profile'); } } public function profile(){ $profile_id = $this->uri->segment(3); $ip = $this->session->userdata('ip_address'); $curr_user = $this->session->userdata('id'); $data['profile'] =

Mask URL in JSF

狂风中的少年 提交于 2019-12-06 11:03:27
问题 I have an enterprise application written in JAVA with JSF (using RichFaces 3.3). Currently my URL looks like this: http://localhost/WebApplication/faces/folder1/page.jsp Question is how do I mask my url to make it like this: http://localhost/folder1/page.jps Basically i want to hide "Application/faces/" Thanks 回答1: For rewriting URLs within your application you can use UrlRewrite. However, in this case it looks like you want to remove your web application's context path, in which case you

PHP + HTACCESS + mod_rewrite + different length url segments

空扰寡人 提交于 2019-12-06 10:11:28
问题 Right, Good afternoon all (well, it is afternoon here in the UK!) I am in the process of writing a (PHP/MySQL) site that uses friendly URLs. I have set up my htaccess (mod_rewrite enabled) and have a basic script that can handle "/" and then everything else is handled after "?" in the same script. I.e. I am able to work out whether a user has tried to put example.com/about , example.com/about/the-team or example.com/join/?hash=abc123etc etc. My question is how do I handle variable length URLs

How to implement Friendly URL in Liferay portal

流过昼夜 提交于 2019-12-06 08:25:54
问题 I have to simplify the URL. I am using liferay portal. URL at present look like this: http://10.11.201.144:8080/web/guest/marketing?p_p_id=EXT_6&p_p_lifecycle=0&p_p_state=normal&p_p_mode=view&p_p_col_id=column-1&p_p_col_count=1&_EXT_6_pageName=aboutus I need to simplify it like: http://10.11.201.144:8080/web/guest/marketing/aboutus or some what easy. Life ray provides Friendly URL option i don't know how to use it.. Please help. 回答1: The following documentation explains how to do this in a