SEO friendly URL Compression

Hi,
I am using URLCompression servlet in my application to reduce the URL size.
The generated compressed urls are similar to the one given below.
http://10.103.22.234/context/wlp.c?__c=7d5
However the id names are hex numers (eg __c=7d5) and are not meaningful IDs that my business users would want.
I would like to pass meaningful names as IDs to the Compression Servlet (eg __c=product-page).
Could anyone please provide various options for generating SEO friendly/meaningful compressed URLs?
I am using netui tags and pageUrl apis to create portal URLs extensive in my web app to create URLs.
Any help would be highly appreciated.
Thanks,
SRJ

Take a look at
http://download.oracle.com/docs/cd/E13155_01/wlp/docs103/javadoc_1031_patch/com/bea/portlet/transformation/UrlTransformation.html
and its subclasses
You can do similar url transformations using any modern webserver.
Question has been discussed in these archives before...

Similar Messages

  • SEO Friendly URLs for FAQ module

    Question:
    Am I the only one to notice that SEO friendly URL's aren't available for the FAQ module?
    I think they really should be available, does anyone else agree?
    http://www.foamgutterfilter.com.au/FAQRetrieve.aspx?ID=43236 ; is quite an ugly URL,
    having something like http://www.foamgutterfilter.com.au/FAQ/is-it-fire-proof would be a billion times better.
    Answer:
    You are correct, but you don't have to use this module if these things are an issue. You can build a more complex and powerful FAQ module with a web app.

    Hi,
    Correct if needing SEO friendly URLs use Web Apps instead as the workaround for your FAQs. 
    References:
    - http://forums.adobe.com/message/4839612#4839612
    - http://forums.adobe.com/message/4236260#4236260
    Kind regards,
    -Sidney

  • SEO friendly site search urls

    We have the site search module set up but it returns unfriendly looking urls for all the results despite us having SEO friendly urls for each catalogue and product. Is there some way to rectify this?

    I found this question while trying to solve a somewhat related question.
    We needed the urls for the pages to be clean when they arrive at the page in order to drive some specific scripting.
    Basically:
    page loads
    script checks the page's url
    if the path matches a certain parameters, perform a certain functions
    The issue we were running into, was that when people came on to a page from the search results page  
    the url would look like this:
          http://www.website.com/Default.aspx?PageID=45247074&A=SearchResult&SearchID=3759787&ObjectID=35247074&ObjectType=1
    which prevented the scripting from working correctly.
    The work around we came up with was using the {module_breadcrumbs,} module in a hidden span on the page and having our script key off of that.
    It certainly wouldn't help any SEO issues but if you were solely looking to make the page display it's human friendly url, that module and some relatively simple JS would work.

  • Problem when compress Url. I need a friendly url

    Hi again.
    I Implemented Url compression, for example from this:
    http://abc.com/webapp/portletEvents/activatePage/activatePage.portal?_nfpb=true&_windowLabel=pfTPC_source_1&pfTPC_source_1_actionOverride=%2FportletEvents%2FactivatePage%2FtoPage1
    to this:
    http://abc.com/wlp.c?__c=7f6
    Like said http://edocs.bea.com/wlp/docs102/portals/develop_portals.html#wp1006790
    But I need a FRIENDLY URL like this:
    http://abc.com/machine/nokia
    I don't need any parameter ("?__c=7f6"), Is there an easy way to build a Friendly Url? Is there any example?
    Thank you in advance

    Hi
    Pseudo code only
    In your servlet
    String path = request.getPathInfo() //get the entire path requested
    String portalUrl = URLService.transform(path, request); //if you need to add the querystring etc , then do that as well.
    request.getRequestDispatcher(portalUrl).forward(request, response);
    URL service knows how to take a path like /machine/nokia and convert it into a path like
    /portletEvents/activatePage/activatePage.portal?_nfpb=true&_windowLabel=pfTPC_source_1&pfTPC_source_1_actionOverride=%2FportletEvents%2FactivatePage%2FtoPage1 . You can implement this with a simple lookup table/property file /chain of commands , however you want.
    When you configure your servlet in web.xml you would have to specify that in servlet-mapping that /machine/* is handled by your servlet. If you needed this to be dynamic(i.e. admin users can add friendly urls while the site is running) then you'd probably have to use a filter instead of a servlet .
    You probably also need to make your webapp the default webapp so that it gets all the request.
    Hope this helps.
    regards
    deepak

  • How to add Friendly URLs in Weblogic Portal?

    Hi,
    We are developing a portal using Weblogic 10gR3. Right now the URL's that are getting formed are very long which includes the nfpb, nfls, pagelabel e.t.c. The requirement is to have a very user friendly url something like http://www.x.com/portal/<<pageLabel>>
    The Weblogic documentation mentions something about URL compression, however unable to apply it for dynamic URL's. We have URL's which are formed on the fly from the WLP Content Repository
    Is there some kind of servlet / filter provided within WLP. I read somewhere about an URLTransformationServlet. But there was no documentation on its usage. Can some one share a sample code snippet with me. That would be really really helpful, as we are having a slight time crunch here.
    Any kind of help on this will be deeply appreciated. Thanks
    Thanks and Regards,
    Lilly

    Dear Team,
    Please help us in Change Portal Url . Please find below details and help us asap.
    Regards
    Radhakrishna
    Generic Note
    I understand [email protected] looks after your account and he should be able to assist you in this matter.
    You could possibly post your question to the oracle forums, like below
    How to add Friendly URLs in Weblogic Portal?
    [email protected] - November 1, 2010 7:05:03 PM GMT+05:30 [Update from Customer]
    Dear Team,
    Please let us know how to contact the assigned oracle account manager to engage someone from the professional services team.
    Please update us asap.
    Regards
    Radhakrishna
    Oracle Support - November 1, 2010 5:28:59 PM GMT+05:30 [Information]
    Generic Note
    I would suggest you contact the assigned oracle account manager to engage someone from the professional services team.
    [email protected] - November 1, 2010 4:55:25 PM GMT+05:30 [Update from Customer]
    Dear Team,
    How to engage oracle professional services to team to get assistance.
    Regards
    Radhakrishna
    Oracle Support - November 1, 2010 1:48:49 PM GMT+05:30 [Information]
    Generic Note
    As mentioned earlier, changes to the portal url is not provided out of box, the documentation link that I provided mentions a possible way of achieving this by creating a start up servlet, this may or may-not work in all circumstances. If the suggestions provided so far has not helped you so far, I would recommend you engage oracle professional services team to get assistance.
    [email protected] - November 1, 2010 1:36:12 PM GMT+05:30 [Update from Customer]
    Dear Team,
    Please find below comments from Dev team.
    While try to incorporate the URL navigation changes at
    our development environment we are getting exception Unable to render /framework/skeletons/bharti_skeleton/singlelevelmenu.jsp .
    I have also checked feasibility for the URL navigation changes provided and will not work for left menu
    and footer URL because while rendering these URL we are not using single level menu jsp or multilevel menu jsp.
    Please check with these comments and update ASAP.
    Regards
    Radhakrishna
    [email protected] - October 28, 2010 7:56:02 PM GMT+05:30 [Update from Customer]
    Hi,
    regarding making changes to the url meets ,we are working on the document which you have provided.we will update with result onc it get finished.
    Regards,
    Eranna D.
    Oracle Support - October 28, 2010 7:06:32 PM GMT+05:30 [Information]
    Generic Note
    Since your question about Rich Text support in CMS is not related to portal urls, I would request you raise this as a separate issue.
    In the new SR, please elaborate what you mean by the Rich Text support, whats your proposed use case, whats working and what is not.
    Could you also confirm if the further information I have provided regarding making changes to the url meets your requirement.
    [email protected] - October 28, 2010 7:04:48 PM GMT+05:30 [Update from Customer]
    CMS----Content Management System
    Rich contents are : Media files, Vedios, Movies... etc.
    [email protected] - October 28, 2010 6:58:46 PM GMT+05:30 [Update from Customer]
    Hi,
    Can you please clarify the below point also.
    "Please confirm whether CMS support Rich Text in weblogic , currently we have the weblogic version 9.2 . Plz confirm whether it will support or not."
    Regards,
    Eranna D.
    Oracle Support - October 28, 2010 5:41:53 PM GMT+05:30 [Information]
    Generic Note
    The following documentation http://download.oracle.com/docs/cd/E13218_01/wlp/docs81/url/simplify.html tells how you can achieve the simple urls you are looking for.
    Could you let me know if this meets your requirement.
    [email protected] - October 28, 2010 12:07:05 PM GMT+05:30 [Reopen Request]
    Hi,
    Please clarify why it is not possible to remove nfpb parameter.
    Call Me on +91 9686971269 ASAP.
    Oracle Support - September 29, 2010 5:39:48 PM GMT+05:30 [ODM Answer]
    === ODM Answer ===
    weblogic portal does not provide any out of the box way to achieve this functionality
    Oracle Support - September 29, 2010 5:39:15 PM GMT+05:30 [ODM Question]
    === ODM Question ===
    need to change the URL
    http://hostname:port/ics_war/ics.portal?_nfpb=true&_pageLabel=Tariff
    to
    http://hostname:port/ics_war/ics.portal/Tariff.
    Oracle Support - September 25, 2010 4:42:01 PM GMT+05:30 [Information]
    Generic Note
    WLProxy configuration falls under the weblogic server product hence you will have to raise an SR with that product to get any suggestions.
    Before that I would suggest you play around with the parameter I have suggested and see how it is impacting the url and then if there is any specific area you are stuck on check with the WLS team.
    Like I mentioned earlier, I do not know if this will completely meet your business requirement, but something you can look into.
    [email protected] - September 25, 2010 4:32:00 PM GMT+05:30 [Update from Customer]
    Hi,
    Can you please brief us what all are the changes needs to be done to meet our below requirement.
    Regards,
    Eranna D.
    +91 9686971269
    Oracle Support - September 24, 2010 9:00:57 PM GMT+05:30 [Information]
    Generic Note
    URLCompression servlet is the only option that weblogic portal provides out of the box to compress the URL of WLP. I understand this does not suite your requirement.
    The other option I can think of that can possibly help you achieve this is to configure any weblogic proxy plugin that you might be making use of, see the document
    http://download.oracle.com/docs/cd/E15051_01/wls/docs103/plugins/plugin_params.html#wp1143055 look for PathTrim, PathPrepend
    [email protected] - September 24, 2010 5:41:39 PM GMT+05:30 [Update from Customer]
    Hi,
    Please call me on +91 9686971269 ASAP.
    Regards,
    Eranna D
    [email protected] - September 24, 2010 5:41:22 PM GMT+05:30 [Update from Customer]
    Hi,
    Even thogh after implementing the below changes,still we are not able to get the result. " nfpb parameter is still existing in URL ".
    Implementing URL Compression :
    To configure a webapp to use url compression, follow these steps:
    1. Define the compression servlet in web.xml; for example
    <servlet>
    <servlet-name>UrlCompressionServlet</servlet-name>
    <servlet-class>com.bea.portlet.compression.UrlCompressionServlet
    </servlet-class>
    <init-param>
    <param-name>defaultPage</param-name>
    <param-value>/index.jsp</param-value>
    </init-param>
    <init-param>
    <param-name>errorPage</param-name>
    <param-value>/errors/error.jsp</param-value>
    </init-param>
    <load-on-startup>1</load-on-startup>
    </servlet>
    2. Map the compression pattern; for example:
    <servlet-mapping>
    <servlet-name>UrlCompressionServlet</servlet-name>
    <url-pattern>wlp.c</url-pattern>
    </servlet-mapping>
    3. Add the token {url:compression} to the templates for which you want to apply compression.
    Please suggest on this ASAP.
    Regards,
    Eranna D.
    [email protected] - September 24, 2010 5:27:58 PM GMT+05:30 [Customer Problem Description]
    Problem Description: We need to change the URL
    http://hostname:port/ics_war/ics.portal?_nfpb=true&_pageLabel=Tariff
    to
    http://hostname:port/ics_war/ics.portal/Tariff.
    Pls suggest on this.
    Regards,
    Eranna D.

  • SEO Friendly shopping cart

    I am wanting to use a SEO friendly shopping cart that uses search engine automatically generated urls and meta descriptions. It has to be a dreamweaver extension. What are the options I know of webassist ecart and cartweaver. Anything else?

    SEO for an online store is much the same as any web site.  Make sure your content is well written both from a human and search engine's point of view. Your product names, categories, short and long descriptions should ALL be concise and to the point and contain key words an fraises that are most likely to be used when users are searching for your type of products and services.
    For Cartweaver, one of the SEO features we built in is that the page titles and meta descriptions are populated based on the product name and short description respectively. For the product search results page they are populated by the categories searched on and the category description related to the category  - you enter these in the admin.  Doing this exposes a lot of good content to Google and the rest for each product returned. We also have a little utility that generates a Google friendly XML sitemap that you can point to in your Google Sitemaps account.
    Out side of that, making your online store SEO is the same as any web site.  Attention to details and good content writing are your primary toolls and assets!
    Hope this helps.
    Lawrence Cramer - *Adobe Community Professional*
    http://www.Cartweaver.com
    PHP & ColdFusion Shopping Cart for Adobe Dreamweaver
    Stay updated:
    http://www.facebook.com/cartweaver
    http://www.twitter.com/cartweaver
    http://blog.cartweaver.com

  • Configuring Oracle Application Server to use a user friendly url

    Hi All,
    I am having trouble configuring the apache httpd.conf file within an applicaton server to be able to use user-friendly urls for the infrastructure identity management tools server. I also need this for security reasons as well as hardware reasons - loadbalancing.
    At the moment I have a standard setup, whereby the sso application server is using port 7777. I would like the user not to enter the port, but to enter just a standard url, like http://login.<company>.com.au, so that if the user needs to modify oid using the oiddas web application, they can enter something like http://login.<company>.com.au/oiddas/ rather than http://<machine host name>:7777/oiddas/. This would also be used by portal for sso logins.
    From the standard installation, Apache was configured as follows:
    Port 7777
    Listen 7777
    ServerName <machine host name>
    DocumentRoot <root document folder>
    Now reading the documentation from the Oracle Application Server Installation notes for the Http Server, they document how to do this (in the loadbalancer section - this will eventually be used in the hardware setup):
    Port 80
    Listen 7777
    Listen 80
    # Virtual Hosts
    # This section is mandatory for URLs that are generated by
    # the PL/SQL packages of the Oracle Portal and various other components
    # These entries dictate that the server should listen on port
    # 7777, but will assert that it is using port 80, so that
    # self-referential URLs generated specify www.oracle.com:80
    # This will create URLs that are valid for the browser since
    # the browser does not directly see the host server.oracle.com.
    NameVirtualHost <machine ip>:7777
    <VirtualHost <nameofmachine>:7777>
    ServerName login.<company>.com.au
    Port 80
    </VirtualHost>
    # Since the previous virtual host entry will cause all links
    # generated by the Oracle Portal to use port 80, the server.company.com
    # server needs to listen on 80 as well since the Parallel Page
    # Engine will make connection requests to Port 80 to request the
    # portlets.
    NameVirtualHost <machine ip>:80
    <VirtualHost <nameofmachine>:80>
    ServerName login.<company>.com.au
    Port 80
    <VirtualHost>
    Note that I used slightly different names for the url's rather than the oracle names www.oracle.com and server.oracle.com
    Now after applying this, I noticed not only could I not go to the oiddas from the original machine name, but also couldnt go there from the new machine name.
    Also I was not even able to go to the standard index page whereby you can go to the enterprise manager for the application server, from either names.
    The following urls provide me with "The Page Cannot Be Displayed" error message:
    http://login.<company>.com.au:7777/
    http://<nameofmachine>:7777/
    The following urls provide me with "Page Under Construction" error message:
    http://login.<company>.com.au/
    http://<nameofmachine>/
    Could someone please tell me why this is the case, considering I am using the installation procedures Oracle has published within the Oracle Http Server Admistrators Guide (http://download-west.oracle.com/docs/cd/B14099_19/web.1012/b14007/netconf.htm#sthref379).
    Cheers
    Rodney

    Hi Rondey,
    Ik think that I can see your probleem.
    Just change the following line at your httpd.conf, then restart the component.
    First of all if the port is installed with nr. 7777. then the listen process will be on port 7778
    the second thing is just try to do the following steps
    ((Port 80 to Port 7777)))
    Listen 7778
    %%%% In loadbalancer section %%%%%%
    just add the following lines
    Listen 80
    Listen 8103
    Listen 8102
    NameVirtualHost *
    NameVirtualHost *:8103 or 80
    If you want to use this ports (8103 or 8102) for other site (url), then
    <VirtualHost *:80>
    ServerName <machine ip> or (host name)
    Hear from U,
    Regards,
    Hamdy

  • How to set user friendly URL in ApEx with OHS 11g ?

    Hi,
    How to set user friendly URL in ApEx with OHS 11g ?
    I want change the link http://190.148.xxx.xxx:8080/pls/apex to something like http://xxx.com.
    I dont want to use iFrame solution. Please suggest any other method to acheive the same.
    Thanks & Regards,
    Ranu

    Hi all
    Iam using apex 4.0 -oracle 11g with OHS on linux os
    I need to change my apex url http://x.x.x.x:xxxx/apex to http://x.com
    What are the settings i need to do.
    If any one knows please share the solution with me
    Thanks & In advance

  • How to create a Url assembler in Webcentre for creating friendly url?

    Hi,
    To create a URL Assembler I am required to code a java class  that extends the com.fatwire.cs.core.uri.QueryAssembler class.
    The friendly URL of a Page will be based on the “Friendly_URL” attribute
    Rule to generate the final URL
    URL starts with {domain-name}
    For each parent page in the navigation concatenate {friendly_url}
    Finally the page or content URL
    {domain}/{parent-page-friendly_url}/{ parent-page-friendly_url }/{page/content_friendly_url}
    Could someone help me with writing the assembler code in java.

    Hello Abdul, hello Sam,
    thanks for help !
    I have tested both and it is ok !.
    If i want to use the "external Link" in my Window, i have know thte Problem.
    I use the LinkToURL-Control with the Propertie "_SELF" and allways a new Browser Window come up! Where is my fault ?
    I have tested it with the following properties "_SELF, _PARENT, _TOP".
    Regards
    Jürgen

  • Term-Driven Page with Friendly URL doesn't work with a page in another Site Collection

    Hi all,
    It appears that the Term-Driven Page with Friendly URL does not work when it is referencing a page in another Site Collection. When I set my Managed Navigation to use a term that points to another Site Collection page, the link shows in my navigation, but
    gives the error:
    "Sorry, something went wrong"
    This does not happen if I link to a page in the same site.
    Kelly
    Personal Blog: http://thebitsthatbyte.com

    i got similiar (i am not sure whether the same) issue recently:
    I have a site collection (address http://spserver/) which use managed navigation, and term-driven page with friendly url. The address of the term-driven page is set as /pages/teamsitehome.aspx . A friendly url takes the form such as http://spserver/menulevel1/submenu1
    I create a new site collection http://spserver/sites/newsitecollection and i want it to have the same navigation menu as the other site collection. Since i cannot use the same termset for the two site collection, i have to create a new term set
    for the new site collection, "pin term with chidrem" or "reuse term" to the old term set. The friendly url in newly created site collection and term set takes the form such as http://spserver/sites/newsitecollection/menulevel1/submenu1, and still
    points to /pages/teamsitehome.aspx. Notice that the term-driven page here in the new site collection still points to the old site collection.
    Actually, it works! I mean, when i click the navigation menu, friendly url http://spserver/sites/newsitecollection/menulevel1/submenu1 appears in the browser address. And SharePoint knows to load /pages/teamsitehome.aspx for this url. If this is a simple
    blank page, it just open fine here.
    However, my custom page teamsitehome.aspx calls TaxonomyNavigationContext.Current.NavigationTerm in its page load event, it should returns a valid NavigationTerm for the friendly url. But it returns null here. I traced the code to find that it calles
    internal static NavigationTerm GetNavigationTermFromTargetUrlGuids(SPWeb contextWeb, Guid termStoreId, Guid termSetId, Guid termId, bool includeInheritedSettings, bool enableExclusions)
    The passed in contextWeb points to http://spserver/ , since the term-driven page is in this web. But the termSetId points to the new termset. TermId won't be problem, since its the same in both new and old term set for pinned term. The combination of contextWeb
    and termSetId just make the output NavigationTerm null. I think its simply because the termset is not associated with this spweb.
    My workaround is create a copy of /pages/teamsitehome.aspx in new site collection. The term-driven page address is set to ~sitecollection/pages/teamsitehome.aspx in term management. This time, all works. Just because the contextWeb parameter i mentioned
    above now points to the root web at new site collection, where the term driven page resides.

  • Using SE friendly urls - Broken Images and other questions

    Im trying to find a workaround for an issue caused when I create SE friendly URLS and i have a few questions too.
    I am making www.mydomain.com/itemid=114
    into www.mydomain.com/shirts/red/114
    question, is keeping the 114 still in the url ok?
    does it matter if its at the beginning or the end?
    like the above or like this www.mydomain.com/114/shirts/red
    and the biggest issue is - how do i work around the image references.
    www.mydomain.com/itemid=114
    on this page, i have an image named LOGO.jpg
    and the reference is just i/logo.jpg which is relative to the page url and the real location is www.mydomain.com/i/logo.jpg
    HOWEVER
    when i use the SE friendly url, its looking for the image in the relative folder - (which is a fake folder of course)
    www.mydomain.com/shirts/red/114
    so on this page its looking for www.mydomain.com/shirts/red/i/logo.jpg
    SO - my question is - how do I override this and force it to ignore the folders references in the url? I still need it to look for www.mydomain.com/i/logo.jpg. I do realize that I could of course reference the images using a full url ....
    meaning instead of using i/logo.jpg i could use www.mydomain.com/i/logo.jpg
    but i would rather not go this route since there are about 20 image references within the template. so if there is a better way to scoot around this I would love to know what it is.
    Thanks in advance
    Sam

    I bet you are using a relative path for your css include
    instead of a root path. So if you have the following in your
    http://localhost/demo/index.cfm
    <link href="../styles/main.css" rel="stylesheet"
    type="text/css" />
    then it will look in the next folder up for a folder called
    styles with a file called main.css
    If you have the same line of code in
    http://localhost/demo/index.cfm/about-our-company
    then it will look for a folder in the root called demo with a
    folder in called index.cfm with a folder in called styles with a
    file in called main.css.
    To solve this you need to reference your style sheet as
    follows:-
    <link href="/styles/main.css" rel="stylesheet"
    type="text/css" />
    Notice how the href begins with a forward slash (/) this
    means to always access it from the webroot. You will need to do
    this for all your internal links as well because they will not
    work, this means links and image references the works.
    HTH

  • Search Engine Friendly URL Rewriting

    Hi,
    Has anyone done any kind of URL rewriting to convert the big, query ridden portal
    URLs to search engine friendly URLs?
    eg. Portal URL: http://somedomain/application?event=blah&pageID=blah&blah=blahblahblah
    gets converted to
    http://somedomain/pageID/page.htm or something like that.
    Any help will be appreciated.
    Thanks,
    Parag

    Filter your recordset based off text values for your table fields ex. field 'model' will have values Honda, Toyota, Suzuki, etc. and field 'color' will have values red, blue, green. etc.
    The filtered URL will be www.example.com/?model=Honda&color=red to show all red Hondas in the filtered recordset.
    Using .htacces mod_rewrite you can convert the above example to something like www.example.com/red/honda.html
    http://corz.org/serv/tricks/htaccess2.php

  • How to add friendly URLs to pages within the ALUI portal?

    I want to know how to add friendly URLs (human-readable URLs that users can bookmark or type into the browser address bar) to pages within the ALUI portal.
    The portal application is developed using plumtree portlets.
    regards,
    Veeshoo

    In 6.5
    Community links look like this:
    http://your_Server/portal/server.pt/community/lockdown_console/
    Documents look like this:
    http://your_Server/portal/server.pt/document/50541/your_document_name.doc
    If your goal is for users to "type into the browser address bar" then your best bet would be dns mapping.
    At that point you could have communities with urls like:
    http://your_Community.your_Server.com
    or
    http://your_Server/your_Community
    Which is significantly easier for users

  • If I rebuild my PDF Handbook in Flash will it be just as SEO friendly?

    I have a handbook published on our web site as a PDF  see http://kinsler.com/handbook124.html
    it seems very SEO freindly.
    If I rebuild it as a Flash based handbook will it be just as SEO freindly?
    If yes, what is the proper proceedure to accomoplish this.

    Hi Brad,
    There is also some flip book software such as Kvisoft Flipbook Maker that can help you create flash flipbook from PDF with SEO friendly, but maybe you need take more time to do your rank for search engine, the software provide you to fill meta tag including tilte, description, keywords, etc when you publish as HTML format, i think this is good for search engine. Of course, there are also other flipbook applications out there, but what ever which one you use, if you want to get a good rank for your handbook, i think do some SEO work for it is necessory.

  • Friendly URLs

    Hello everyone,
    I'm working with the URLs, so it looks more friendly for the final user. I found some docs on that matter: http://docs.oracle.com/cd/E26180_01/Platform.94/ATGProgGuide/html/s1402urltemplates01.html
    For what I could understand, ATG uses the IndirectTemplate for web spiders and bots, which use the info on that URL for search indexing or something like that. And the DirectTemplate is the actual URL shown for the final user. This URL from DirectTemplate is the "dynamic" one as I could understand, wich has all the query parameters.
    For example, this is a fragment of CategoryDirectTemplate.properties:
    # Url template format
    urlTemplateFormat={item.template.url,encode=false}?categoryId\={item.id}This shows the following: /catalog/category.jsp?categoryId=cat123.
    And this is a fragment of CategoryIndirectTemplate.properties:
    # Url template format
    urlTemplateFormat=/jump/{item.displayName}/category/{item.id}This shows the following: /jump/My-Category-Name/category/cat123
    I want to change the "dynamic" url (DirectTemplate, the one shown to the final user) to something like www.mysitedomain.com/My-Category-Name. I think it would work fine if I just changed the urlTemplateFormat.
    My only question is: Does the DirectTemplate affects anything on the info collected by web spiders and bots, or only the IndirectTemplate is used for that?
    Hope I made my question clear to understand.
    Thanks,
    Lucas

    Hi,
    According to your post, my understanding is that you want to get Friendly URLs in SharePoint 2013.
    The following code snippet for your reference:
    public List<string> GetPagesUrls() {
    //list for saving the urls
    List<string> retVal = new List<string>();
    //current web
    SPWeb web = SPContext.Current.Web;
    //check if the current web is a publishing web
    if (PublishingWeb.IsPublishingWeb(web)) {
    //get the pages list id
    Guid listId = PublishingWeb.GetPagesListId(web);
    //retrieve the pages list
    SPList pagesList = web.Lists[listId];
    foreach (SPListItem item in pagesList.Items) {
    //retrieve the terms used for the navigation (this can be multiple terms)
    IList<NavigationTerm> terms = TaxonomyNavigation.GetFriendlyUrlsForListItem(item, false);
    string url = string.Empty;
    //check if the pages has terms associated with it
    if (terms.Count > 0) {
    //use the GetResolvedDisplayUrl to retrieve the page friendly urls
    url = terms[0].GetResolvedDisplayUrl(string.Empty);
    } else {
    //if the page does not have any terms get the normal url
    url = item.File.Url;
    retVal.Add(url);
    return retVal;
    More information is here:
    http://msftplayground.com/2013/01/retrieve-the-friendly-url-of-a-publishing-page/
    Best Regards
    Dennis Guo
    TechNet Community Support

Maybe you are looking for