+

Search Tips   |   Advanced Search

Define friendly URLs without state information for pages in the site

The Configuration Wizard option for Modifying Site URLs for SEO makes it possible to remove navigational state information from the site URLs site wide. To enable friendly URLs without state information at the page level, complete extra steps after using this option.

Remove the URL generation filter if you previously installed it. See Example 2: Generate a friendly URL for web content.

  1. Configure the site URLs with the option for Modifying Site URLs for SEO in the Configuration Wizard.

    To remove navigational state information in your URLs, select No for the option Do we want the portal URL to contain navigational state information. After you successfully complete the configuration, navigational state information is removed site wide.

    To remove navigational state information at the level of an individual page and its child pages, set the page parameter generate.stateless.urls to true for that page. To keep navigational state information for a page, set the parameter to false. For information about how to use that parameter, read about the property generate.stateless.urls in Configuration Service.

  2. Define friendly URL names for pages. We can configure a friendly URL at the page level from the site toolbar or from Manage Pages administration portlet.

    • To define friendly URLs for the pages from Administration, go to Use friendly URLs

    • To define friendly URLs for the pages from the site toolbar, use the following instructions:

      1. Turn on edit mode from the action bar. Site manager opens automatically. If site manager does not open automatically, click the site manager icon

        to open it.

      2. In site manager, click the page for which we are defining a friendly URL name. Then, click the context menu icon

        .

      3. From the context menu, click Open Page Settings.

      4. From the General tab, click Edit by Edit Page Properties.

      5. In the Friendly URL name entry field, enter the name of the page as you want it to appear in the friendly URL.

      6. Click Save.

  3. Associate pages that render web content with the default site area of that web content. Complete the following steps to generate friendly URLs for that web content:

    1. Turn on edit mode from the action bar. Site manager opens automatically. If site manager does not open automatically, click the site manager icon to open it.

    2. In site manager, click the page that contains the web content viewer used to render the web content we want to generate friendly URLs for. Then, click the context menu icon.

    3. From the context menu, click Open Page Settings.

    4. From Details tab, click Edit by Default site area.

    5. On the Manage Associated Content page, click Add web content to select the site area of the web content or one of the parent site areas.

    6. From the list of associated content, select the newly added site area association by clicking the radio button.

    7. Click OK.

  4. Optional: You might want to present language-specific portal pages with stateless friendly URLs to the site visitors. In this case, structure the portal site to reflect which pages are targeted for specific countries or regions. We can create a node for a specific page, and then create language-specific child pages under that node.For example, in the node home, you create pages in English, French, and German. Your site visitors can then access the page in their preferred language by using one of the following friendly URLs:

      http://www.cntserv_exmp.com/wps/home/en/shop
      http://www.cntserv_exmp.com/wps/home/fr/shop
      http://www.cntserv_exmp.com/wps/home/de/shop


What to do next

We can configure themes to display only short URLs without state information. We can configure pages that use that theme to display friendly URLs. Related information