3.7.1 Understanding Friendly URL Syntax
Friendly URL Syntax creates a URL structure that identifies the address of Oracle Application Express, the application, the page, and uses standard web parameter syntax.
Tip:
Applications created using Oracle Application Express release 20.1 or later use Friendly URL Syntax. You can revert to f?p Syntax by disabling the Friendly URLs attribute.
- About Friendly URL Syntax
 Friendly URL Syntax uses a standard URL hierarchy and passes parameters in a similar fashion to other web applications.
- Enabling or Disabling Friendly URL Syntax
 Determine if an application uses Friendly URL Syntax or f?p Syntax by enabling or disabling the Friendly URLs attribute.
- Customizing a Friendly URL
 Customize a Friendly URL by editing the Path Prefix, Application Alias, or Page Alias.
Parent topic: Understanding URL Syntax
3.7.1.1 About Friendly URL Syntax
Friendly URL Syntax uses a standard URL hierarchy and passes parameters in a similar fashion to other web applications.
Friendly URL Hierarchy and Syntax
Friendly URL Example
Friendly URL Syntax creates a URL with the following directory hierarchy and syntax:
https://hostname:port/ords/path_prefix/r/app_alias/page_alias?parametershttps://hostname:port/ords/mycompany/r/hr-app/update-employees?session=13766599855150Where:
- 
                           
                           http:stands for HyperText Transfer Protocol and operates at the application layer.
- 
                           
                           hostnameis the domain name of the server. It can also include a port number or an IP address.
- 
                           
                           portis the port number assigned when configuring Oracle REST Data Services.
- 
                           
                           ordsis the service name defined when configuring Oracle REST Data Services.
- 
                           
                           mycompanyis thepath_prefixwhich is URI path prefix used to access RESTful Services. When you create a workspace, this value defaults to workspace name. You can customize the URI path prefix by editing the Path Prefix attribute in Administration, Manage Service, Workspace Preferences, SQL Workshop.
- 
                           
                           ris the router shortcut. This value is a constant and should never be changed.
- 
                           
                           hr-appis theapp_alias. In a new application, the Application Alias defaults to the application Name. You can edit the Application Alias in the application Definition. The Application Alias must be unique within the workspace.
- 
                           
                           update-employeesis thepage_alias. In a new application, the Page Alias defaults to the page Name. You can edit the Page Alias in Page Designer. Page aliases must be unique within the application. When creating a new page, if a Page Name is already used as a Page Alias, then a numeric value is appended to the new Page Alias to make it unique.
- 
                           
                           ?session=13766599855150identifies the session ID. When you run an application, the Application Express engine generates a session number that serves as a key to the user's session state.
About URL Parameters
The part of the URL after /? can list
                                        parameters.
                     
http://hostname:port/ords/path_prefix/r/app_alias/page_alias?parameters (Such as —
        p7_customer_id=377&clear=7&session=1247058356345&cs=3MdkfQa9NLmkyHAbwGPg3U-nmA7XIw5sWjU2rMzSvOy_wP1_z7BBI-Gbh2JgvffARgcYJy8id4VtL3d0l1tYm0w)Supported parameters include:
- 
                           
                           session
- 
                           
                           request
- 
                           
                           clear
- 
                           
                           debug
- 
                           
                           application/page items
- 
                           
                           printerFriendly
- 
                           
                           trace
- 
                           
                           timezone
- 
                           
                           lang
- 
                           
                           territory
- 
                           
                           cs
- 
                           
                           dialogCs
- 
                           
                           x01
Parent topic: Understanding Friendly URL Syntax
3.7.1.2 Enabling or Disabling Friendly URL Syntax
Determine if an application uses Friendly URL Syntax or f?p Syntax by enabling or disabling the Friendly URLs attribute.
Applications created using Oracle Application Express release 20.1 or later use Friendly URL Syntax. You can revert to f?p Syntax by disabling the Friendly URLs attribute.
To enable Friendly URL Syntax:
Parent topic: Understanding Friendly URL Syntax
3.7.1.3 Customizing a Friendly URL
Customize a Friendly URL by editing the Path Prefix, Application Alias, or Page Alias.
Friendly URL Syntax creates a URL with the following directory hierarchy and syntax:
http://hostname:port/ords/path_prefix/r/app_alias/page_alias?parametersYou can customize the follow parts of Friendly URL:
- 
                           
                           Path Prefix - path_prefixis URI path prefix to be used to access RESTful Services. When you create a workspace, this value defaults to workspace name. You can customize the URI path prefix by editing Path Prefix attribute in Workspace Administration.
- 
                           
                           Application Alias - app_aliasis an alternate alphanumeric application identifier called the Application Alias. In a new application, the Application Alias defaults to the application Name. You can edit the Application Alias in the application Definition.
- 
                           
                           Page Alias - page_aliasis an alphanumeric alias for this page called the Page Alias. In a new application, the Page Alias defaults to the page Name. You can edit the Page Alias in Page Designer.
Friendly URL Customization Example
Suppose you have an application with the following URL:
http://hostname:port/ords/example/r/355/2?session=13766599855150Suppose you want to make the following changes:
- 
                           
                           path_prefix- Changeexampletomycompany.
- 
                           
                           app_alias- Change355tomyapp.
- 
                           
                           page_alias- Change2tomyinfo.
The revised URL will display as:
http://hostname:port/ords/mycompany/r/myapp/myinfo?session=13766599855150 To customize a Friendly URL by editing the Path Prefix, Application Alias, or Page Alias:
See Also:
"Enabling RESTful Services and Defining a Path Prefix for a Workspace" in Oracle Application Express Administration Guide
Parent topic: Understanding Friendly URL Syntax