friendly-url

How to implement Friendly URL in Liferay portal

坚强是说给别人听的谎言 提交于 2019-12-04 14:37:38
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. Jaromir Hamala The following documentation explains how to do this in a tutorial: https://dev.liferay.com/develop/learning-paths/mvc/-/knowledge_base/6-2/making-urls

Friendly url scheme?

那年仲夏 提交于 2019-12-04 14:07:24
问题 One of the many things that's been lacking from my scraper service that I set up last week are pretty URLs. Right now the user parameter is being passed into the script with ?u= , which is a symptom of a lazy hack (which the script admittedly is). However, I've been thinking about redoing it and I'd like to get some feedback on the options available. Right now there are two pages, update and chart, that provide information to the user. Here are the two possibilities that I came up with. "1234

Clean URLs using jsp/ servlets?

孤者浪人 提交于 2019-12-04 13:08:37
I am planning to make a CMS using jsp and servlets. Could anyone tell me how to implement clean urls using this technologies? You could try using urlrewritefilter: http://code.google.com/p/urlrewritefilter/ . This uses a servlet filter and an xml-file to allow your application to have clean url's. The construction of the clean url's would be your own responsibility. BalusC Make use of HttpServletRequest#getPathInfo() in the servlet which is acting as front controller. Kickoff example without any trivial validation: protected void doGet(HttpServletRequest request, HttpServletResponse response)

Wicket redirect: how to pass on parameters and keeps URLs “pretty”?

血红的双手。 提交于 2019-12-04 08:54:14
Consider a Wicket WebPage that redirects to another page (based on some logic omitted from here): public class SomePage extends WebPage { public SomePage(PageParameters parameters) { setResponsePage(AnotherPage.class); setRedirect(true); } } I need to pass on the PageParameters to that other page, and this seems to be the way to do that: setResponsePage(new AnotherPage(parameters)); However, when creating a new Page object like this, I end up at an URL such as /?wicket:interface=:1:::: instead of the clean /another . AnotherPage is defined as: @MountPath(path = "another") public class

How can I make URLs in Django similar to stackoverflow?

冷暖自知 提交于 2019-12-04 05:58:05
I'm creating a video site. I want my direct urls to a video to look like example.com/watch/this-is-a-slug-1 where 1 is the video id. I don't want the slug to matter though. example.com/watch/this-is-another-slug-1 should point to the same page. On SO, /questions/id is the only part of the url that matters. How can I do that? Stack Overflow uses the form example.com/watch/1/this-is-a-slug which is easier to handle. You're opening a can of worms if you want the ID to be at the end of the slug token, since then it'll (for example) restrict what kinds of slugs you can use, or just make it harder

Bookmarkable URL in JSF application - Trying to use Spring Webflow and JSF . Any suggestions?

一个人想着一个人 提交于 2019-12-04 04:37:15
问题 Our application is JSF , hibernate & Spring. Currently the url is in following format http://www.skill-guru.com/skill/login/testDetails.faces?testId=62&testName=PMP-Certification-practice-test We want a clean url like http://www.skill-guru.com/urltitle?some parameter One of the ways we could do this is through integration with Spring webflow with JSF. Any other suggestions ? We are trying Spring webflow 1.0 with JSF 2.0 but that does not seem to work. 回答1: PrettyFaces provides beautiful URLs

Mod_rewrite invisibly: works when target is a file, not when it's a directory

北城余情 提交于 2019-12-04 01:43:09
问题 I have this rewrite rule that turns foo.com/test (or foo.com/test/) into foo.com/test.txt: RewriteRule ^test/?$ test.txt [NC,L] It works perfectly and, importantly, never reveals to the user that the "real" URL is foo.com/test.txt. Now I want to do the same thing where the "real" URL is foo.com/testdir, where testdir is a directory: RewriteRule ^test2/?$ testdir [NC,L] It does the rewrite but it shows that rewrite to the user. Not what I want. Can anyone explain what Apache is thinking here,

Remove faces servlet url pattern and page extension from url

≡放荡痞女 提交于 2019-12-03 16:54:19
i have a command link in my page which looks like: <h:commandLink value="Add user" action="add?faces-redirect=true" /> and when i click it, it goes to url: http://localhost:8080/myapp/faces/add.xhtml but i want the url to be: http://localhost:8080/myapp/add how to do that ? i am using spring 3, jsf 2 this is my web.xml : <?xml version="1.0" encoding="UTF-8"?> <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun

How do I create userfriendly urls like stackoverflow?

这一生的挚爱 提交于 2019-12-03 14:20:56
I want to create a similar type of url as stack overflow does when a question is created. Example: Non-ajax GET/POST using jQuery (plugin?) non-ajax-get-post-using-jquery-plugin I am particularly interested in the last part which I have highlighed in bold. How do you achieve the affect of adding the title of the page to the url with the delimiter? What is this technique called? Use ASP.NET routing rather than rewriting when possible. It's available with both MVC and Web Forms. Routing is much more flexible and does a better job in passing context to the processing code, handling postbacks, etc

django username in url, instead of id

我们两清 提交于 2019-12-03 14:06:33
问题 in a mini virtual community, i have a profile_view function, so that i can view the profile of any registered user. The profile view function has as a parameter the id of the user wich the profile belongs to, so that when i want to access the profile of user 2 for example, i call it like that: http://127.0.0.1:8000/accounts/profile_view/2/ My problem is that i would like to have the username in the url, and NOT the id. I try to modify my code as follows, but it doesn't work still. Here is my