5 Replies Latest reply: May 2, 2013 3:26 PM by krissco RSS

    Apex default url redirect

    jarymo
      What determines where the default url http://domain:port/apex redirects?
      Can this default page be changed to redirect to a different page?

      I would like the basic http://domain:port/apex url to redirect to a page that has been created rather than the default redirect login/password/workspace page. Is it possible to do this?

      This page currently redirects to

      http://domain:port/apex/f?p=4550:1:631371739005701

      I want http://domain:port/apex to redirect to http://domain:port/apex/f?p=101:1


      Where is the info for this page located?
      What table in the database?

      It seems like the easiest thing would be to have the dmz redirect
      http:/domain to http://domain:port/apex/f?p=101:1 instead of http://domain:port/apex but my IT department said that is not possible.

      They can only redirect http:domain to http://domain:port/apex



      Edited by: jarymo on Dec 4, 2012 3:10 PM

      Edited by: jarymo on Dec 4, 2012 3:12 PM

      Edited by: jarymo on Dec 4, 2012 3:15 PM
        • 1. Re: Apex default url redirect
          jariola
          Hi,

          It depend what web server you use.

          In OHS dads.conf there is line that define default page
          PlsqlDefaultPage apex
          In APEX listener configuration file apex-config.xml
          <entry key="apex.misc.defaultPage">apex</entry>
          If you use EPG this might help
          http://dbswh.webhop.net/htmldb/f?p=BLOG:READ:0::::ARTICLE:1000


          Regards,
          Jari
          -----
          My Blog: http://dbswh.webhop.net/htmldb/f?p=BLOG:HOME:0
          Twitter: http://www.twitter.com/jariolai
          • 2. Re: Apex default url redirect
            jarymo
            Thank you, that is very close to what I am trying to accomplish. I am using the Apex listener with weblogic


            How do I make the application/page f?p=101:1 open when I enter: http:/domain:port/apex

            This doesn't work.

            <entry key="apex.misc.defaultPage">apex/f?p=101:1</entry>

            When I type in http://domain:port/apex I want this to be the page that is rendered http://domain:port/apex/f?=101:1 not this http://domain:port/apex/f?p=4550:1

            Is it possible to do this?

            I want http://domain:port/apex to default to http://domain:port/apex/f?=101:1

            Edited by: jarymo on Dec 6, 2012 12:54 AM
            • 3. Re: Apex default url redirect
              jariola
              Hi,

              I can not now test but I think you need set default page to
              f?p=101:1
              Or create own public procedure that you set as default page like in my blog post


              Regards,
              Jari
              -----
              My Blog: http://dbswh.webhop.net/htmldb/f?p=BLOG:HOME:0
              Twitter: http://www.twitter.com/jariolai
              • 4. Re: Apex default url redirect
                jarymo
                I found a metalink note. How To Redirect a URL To A Custom Apex Application Page [ID 1343077.1] I found the note from your description of how to do this, One question, it says create this in your workspace schema. What is the workspace schema?

                create or replace procedure myownapp as
                begin
                f (p=>'200:1');
                end;
                /

                grant execute on myownapp to apex_public_user;

                EPG -> grant execute on myownapp to anonymous;

                create public synonym myownapp for schema.myownapp;

                Update Apex Listener apex-config.xml -> <entry key="apex.misc.defaultPage">myownapp</en

                Restart the applicable listener.
                • 5. Re: Apex default url redirect
                  krissco
                  I've been searching around for an answer to this. That metalink note is perfect. Thanks for posting the info here.