Apexurls 140703031845 Phpapp02
Apexurls 140703031845 Phpapp02
1. Amazon.com : http://
www.amazon.com/gp/product/B0007TJ5OG/102-83
72974-4064145?v=glance&n=502394&m=ATVPDKIK
X0DER&n=3031001&s=photo&v=glance
2. DPReview.com :
http://www.dpreview.com/reviews/canonsd400/
Benefits of URLs
• Semantics
URL should semantically make sense. This is helpful
to both humans and search engines.
• Relevancy
Semantically correct URL are more likely to get
search engine-referred traffic due to the keywords
in the URL. These, like title tags, are used for
determining relevancy and computing rankings.
APEX URLs
urlsyntax.oracleapex.com
- f?p Syntax
http://apex.somewhere.com/pls/apex/f?p=4350:1:220883407765693447
http://server/path/!schema.ff?app=100&page=1&session=1234567
&item1=value1&item2=value2&item3=value3...
flexible f
create or replace procedure apex_demo.ff(name_array in owa.vc_arr
, value_array in owa.vc_arr)
is
type f_param_array is table of varchar2(32767)
index by varchar2(20);
v_f_p_arr f_param_array;
v_f_p varchar2(32767);
v_inames varchar2(32767);
v_ivalues varchar2(32767);
begin
v_f_p_arr('app') := '';
v_f_p_arr('page') := '';
v_f_p_arr('session') := '';
v_f_p_arr('request') := '';
v_f_p_arr('debug') := '';
v_f_p_arr('clearcache') := '';
v_f_p_arr('printerfriendly') := '';
…
flexible f cont.
…
for i in 1 .. name_array.count
loop
if lower(name_array(i)) in ('app', 'page', 'session',
'request', 'debug', 'clearcache',
'printerfriendly')
then
v_f_p_arr(lower(name_array(i))) := value_array(i);
else
if length(v_inames) > 0
then
v_inames := v_inames || ',';
v_ivalues := v_ivalues || ',';
end if;
end ff;
Human Readable?
http://server/path/!schema.ff?app=100&page=1&session=1234567
&item1=value1&item2=value2&item3=value3...
http://server/pagetitle/language/(sub)content/....
URL prettifying using ORDS (formerly known as Oracle APEX Listener)
http://www.themes4apex.nl/apex/rokit/t4a/examples/ENG/fifapex
RESTful pretty URL
http://www.themes4apex.nl/apex/f?p=104:3:0::::T4A_LANG,P3_PROJECT:ENG,fifapex
http://www.themes4apex.nl/apex/rokit/t4a/examples/eng/fifapex
workspac
APEX base url e URI Resource Template
name
URI Prefix
(optional)
www.domain3.com
IP: 12.34.567.89 Workspace 3
app A app B
URL re-routing for the Poor
re-routing backend
create or replace PROCEDURE redirect
IS
t_host VARCHAR2(250);
t_redir proxy_rules%ROWTYPE;
BEGIN
t_host := OWA_UTIL.get_cgi_env('host');
SELECT *
INTO t_redir
FROM (SELECT *
FROM proxy_rules
WHERE UPPER(t_host) LIKE UPPER(host_pattern) /* matching rules */
ORDER BY seq, id)
WHERE ROWNUM < 2;
IF t_redir.url_type = 'X'
THEN
<entry key="misc.defaultPage">apex</entry>
<entry key="misc.defaultPage">redirect</entry>
(public synonym & grant execute to PUBLIC)
Questions & Discussion
?? ?
http://rokitta.blogspot.com
@crokitta
http://www.themes4apex.com
http://plus.google.com/+ChristianRokitta
http://nl.linkedin.com/in/rokit/