How to redirect URL?

Our lab uses Xserve to host our web pages. We want to redirect URLs (without showing real web folder details) when users surf on our web site. For example:
Our web site host name: www.labname.edu
We want that users only see "www.labname.edu" on the browsers, instead of showing "www.labname.edu/folder1/subfolder1/.../filename1.html" or "www.labname.edu/folder2/subfolder2/.../filename2.html"...etc.
I am a new bee for Xserve and do not know how to resolve this task. I will appreciate any suggestion. Xserve admin provides URL aliases and redirects. Is it possible to use that to resolve my problem. Does anyone can teach me how to set up "type", "pattern" and "path"?
Thanks in advance!

What you're asking for is not trivial to do; you're basically usurping how the file-based presentation works, which means you're going to be writing some code. Simple redirects are easy, but they don't provide your required transparency with the target files, and the scheme doesn't scale all that well. The hack approach is to use file (or directory) links; the ln command and related. This gets ugly to maintain. The "big hammer" approach is to load the content into a content management system (CMS; eg: Drupal, Wordpress), and let the CMS manage all this stuff for you.

Similar Messages

  • GRC 10 - SSO via Portal - how to redirect url in notification variables

    Dears,
    I am in the process of designing our GRC 10 machine to be accessed via SSO in the Enterprise Portal. Yet I cannot find any info on what will happen with the URLs that are placed by ARM MSMP workflow in the variables of notifications/approvals.
    I typically would (as in 5.3) expect a redirect URL to be made available as an option.
    As an example: the Firefighter Log notification standard holds a variable pointing the URL to :
    http://GRC10server:GRC10port/sap/bc/webdynpro/sap/grac_ui_spm_log_email?sap-client=001&sap-language=EN&WF_ID=53FB8FEAC9E260D6E10000000AF90C44&APP_TYPE=1
    Yet now with SSO via the portal we also want this URL to go via the portal instead of directly to the GRC machine. How can we achieve that?
    Is there a configuration way to have GRC10server:GRC10port adjusted to the portal address..
    (mind that the WF_ID segment in this url is dynamically generated, so directly sqeezing in a static portal url is not an option)
    Cheers,
    Jim

    Hi Neeraj,
    Thx for your reaction. This unfortunately will not do the job as pasting the URL in the notification template will make it static. The problem is that the URL inserted by default is a dynamically created one which holds a variable pointer to a workflow object id.
    Now i am researching if a custom build portal redirect application will do the job. But there must be others having the same problem if you want the GRC iview in the portal to be the 'one-stop-shop' for your GRC users...
    Cheers,
    Jim

  • How to redirect url in servlet?

    in servlet, i want to redirect page to a url which not in same container, and send to some information to this url, what shall i do?
    thanks.

    duffymo's solution should do it, then.
    You could build on top of that and send serialized data (I'm assuming your data is serializable) over the wire to the other server using an HttpUrlConnection and ObjectOutputStream's writeObject(), and read it at the other end with ObjectInputStream's readObject(). For example for the write operation :
    URL url = new URL(other_server_url);
    HttpURLConnection urlcon = (HttpURLConnection)url.openConnection();
    // after setting urlcon attributes like requestMethod to POST etc...
    ObjectOutputStream out = new ObjectOutputStream(urlcon.getOutputStream());
    // now write the data, then flush & close the connection
    ...If the amount if data to transfer is quite large, you could again build on top of the above and use CompressedSerialization :
    http://robowiki.dyndns.org/perl/robowiki?CompressedSerialization

  • How to display swf in full screen mode and how to redirect to a url

    Hi,
    I have 2 questions :
    Question 1 - I have a flash swf file and I want to display it in the browser in full mode meaning it should fit the browser, I have tried adding
    fscommand("fullscreen", "true");
    in the first frame of a lyaer but it does not work.
    Question 2 - How to redirect to another page at the end of the swf movie, I have tried adding :
    stop(); 
    navigateToURL( new URLRequest("*www.microsoft.com*"), "_self");
    in the last frame but it does not work.
    Thank you very very much for your assitance !!
    Terry

    "fscommand("fullscreen", "true");" only works for self-running executables, not embedded SWFs in a web page.
    To get the swf to fill the browser page, the best thing to do would be to adjust the publish settings of the "HTML Wrapper" page and copy the necessary pieces from the resultant HTML file into the HTML file you are putting the swf into.
    I have had some successes dealing with similar navigation issues by breaking up the code into multiple tasks:
    var url:String = "http://www.microsoft.com";
    var urlReq:URLRequest = new URLRequest(url);
    navigateToURL(urlReq);
    I can't guarantee that will help, but at least I tried.  :-)

  • How does c:url tag know when the session is cookieless and thus to redirect

    i have been looking at the source code for c:url tag and can't figure out how they are doing that. I need a way to do that in a jsp, to check if the cookies are allowed or not.

    how does c:url tag know when the session is cookieless and thus to redirecthuh?
    What do cookies have to do with redirecting?
    Cookies get encoded into a URL using the method in HttpServletResponse: response.encodeURL() or encodeRedirectURL().
    That method determines whether or not it prints out the session id as part of the url, or it gets uses cookies.
    You can try: request.isRequestedSessionIdFromCookie().
    If that is true, you know that session cookies are supported (or at least that one was)

  • How to redirect to different page after login in APEX 4.1

    Dear All,
    Here my Requirement is,When the users login,
    when they entered their username and password and pressed login button,
    they have to redirected to different pages based on the type of user.
    Here my LOGIN_TABLE has following 3 columns,
    1.Username
    2.Password
    3.Type.
    The TYPE has 2 values, employee and admin.
    when the type is admin they should be redirected to page 2,
    reaining i.e employee users has to be redirected to page 3.
    How can I do this? please give some suggestion.
    Thank you.
    regards,
    Gurujothi

    Dear Christian,
    Thank you for your reply,
    I would like to explain something,
    When I using the following function,
    *create or replace FUNCTION custom_auth_g (
    p_username IN VARCHAR2,
    p_password IN VARCHAR2)
    RETURN BOOLEAN IS
    BEGIN
    FOR c1 IN (SELECT 1
    FROM login_table
    WHERE upper(username) = upper(p_username)
    AND upper(password) = upper(p_password))
    LOOP
    RETURN TRUE;
    END LOOP;
    RETURN FALSE;
    END;*
    When login, It checks in the login_table table and if the username is exist with the pass word it successfully entered inside the application.
    for all users only one page which we set.
    My Login_table also contains type which has 2 type as I mentined above.
    But As I mentioned earliar based on the user type it has to be redirected to 2 different page.
    I found this Package but I cant understand,Can you please Explain?
    *create or replace PACKAGE app_security_pkg
    AS
    PROCEDURE add_user
    p_username IN VARCHAR2
    ,p_password IN VARCHAR2
    PROCEDURE login
    p_uname IN VARCHAR2
    ,p_password IN VARCHAR2
    ,p_session_id IN VARCHAR2
    ,p_flow_page IN VARCHAR2
    FUNCTION get_hash
    p_username IN VARCHAR2
    ,p_password IN VARCHAR2
    RETURN VARCHAR2;
    PROCEDURE valid_user2
    p_username IN VARCHAR2
    ,p_password IN VARCHAR2
    FUNCTION valid_user
    p_username IN VARCHAR2
    ,p_password IN VARCHAR2
    RETURN BOOLEAN;
    END app_security_pkg;*
    *create or replace PACKAGE BODY app_security_pkg
    AS
    PROCEDURE login
    p_uname IN VARCHAR2
    ,p_password IN VARCHAR2
    ,p_session_id IN VARCHAR2
    ,p_flow_page IN VARCHAR2
    IS
    lv_goto_page NUMBER DEFAULT 1;
    BEGIN
    -- This logic is a demonstration of how to redirect
    -- to different pages depending on who successfully
    -- authenticates. In my example, it simply demonstrates
    -- the ADMIN user going to page 1 and all other users going
    -- to page 2. Add you own logic here to detrmin which page
    -- a user should be directed to post authentication.
    IF UPPER(p_uname) = 'ADMIN'
    THEN
    lv_goto_page := 1;
    ELSE
    lv_goto_page := 2;
    END IF;
    APEX_UTIL.SET_SESSION_STATE('FSP_AFTER_LOGIN_URL');
    wwv_flow_custom_auth_std.login
    p_uname => p_uname,
    p_password => p_password,
    p_session_id => p_session_id,
    p_flow_page => p_flow_page || ':' || lv_goto_page
    EXCEPTION
    WHEN OTHERS
    THEN
    RAISE;
    END login;
    PROCEDURE add_user
    p_username IN VARCHAR2
    ,p_password IN VARCHAR2
    AS
    BEGIN
    INSERT INTO app_users (username, PASSWORD)
    VALUES (UPPER (p_username),
    get_hash (TRIM (p_username), p_password));
    COMMIT;
    EXCEPTION
    WHEN OTHERS
    THEN
    ROLLBACK;
    RAISE;
    END add_user;
    -- Function to Perform a oneway hash of the users
    -- passwords. This cannot be reversed. This exmaple
    -- is a very week hash and if been used on a production
    -- system, you may want to use a stronger hash algorithm.
    -- Read the Documentation for more info on DBMS_CRYPTO as
    -- this is the supported package from Oracle and
    -- DBMS_OBFUSCATION_TOOLKIT is now depricated.
    FUNCTION get_hash (p_username IN VARCHAR2, p_password IN VARCHAR2)
    RETURN VARCHAR2
    AS
    BEGIN
    RETURN DBMS_OBFUSCATION_TOOLKIT.md5 (
    input_string => UPPER (p_username)
    || '/'
    || UPPER (p_password));
    END get_hash;
    PROCEDURE valid_user2 (p_username IN VARCHAR2, p_password IN VARCHAR2)
    AS
    v_dummy VARCHAR2 (1);
    BEGIN
    SELECT '1'
    INTO v_dummy
    FROM app_users
    WHERE UPPER (username) = UPPER (p_username)
    AND PASSWORD = get_hash (p_username, p_password);
    EXCEPTION
    WHEN NO_DATA_FOUND
    THEN raise_application_error (-20000, 'Invalid username / password.');
    END valid_user2;
    FUNCTION valid_user (p_username IN VARCHAR2, p_password IN VARCHAR2)
    RETURN BOOLEAN
    AS
    BEGIN
    valid_user2 (UPPER (p_username), p_password);
    RETURN TRUE;
    EXCEPTION
    WHEN OTHERS
    THEN RETURN FALSE;
    END valid_user;
    END app_security_pkg;*
    And you said "assign an URL to FSP_AFTER_LOGIN_URL, depending on the Type column",
    Where to assign,Could you please Explain?
    Thank you.

  • When I add an opendocument login token, it wipes out my parameter/prompt response in the Redirect URL

    I am having this issue and I wonder if anyone has any pointers?
    When I send the URL with the single prompt response &lsSPrompt0=1234567 it works fine but I have to login to InfoView.
    So I created a login token .jsp and that took care of the login for InfoView, but it also killed my prompt value.
    The code that I got from another site that does the same thing I WANT to do seems to create a cookie to store the passed prompt value in, then it creates a login token, then it assembles it all in the redirect URL and sends it to the openDocument.jsp.
    The login token works like a champ, but the prompt value (initially passed in to the cookie as "Prompt0") ends up passing from the Redirect URL to the openDocument.jsp with a value of NULL (lsSPrompt0=NULL).
    In my lack of knowledge, I am thinking maybe it has something to do either with how the cookie is being created, how it is being passed, or how/if it is getting stored at the target.  The cookie/token.jsp and the openDocument.jsp are in different folders on the same domain.
    So, I pass this URL:
    http://server:8080/InfoViewApp/token.jsp?&lsSPrompt0=1234567
    The token.jsp that it hits looks like this:
    So, the redirect winds up hitting the target looking like this:
    http://server:8080/OpenDocument/opendoc/openDocument.jsp?token=logonToken&iDocID=45227708&sKind=FullClient&lsSPrompt0=NULL&NAII=N&buttonrefresh=hide&buttonexport=hide
    Obviously, my problem is this:  lsSPrompt0=NULL
    Any pointers or nuggets of wisdom are GREATLY appreciated?
    Also of note, I wasn't sure if I needed to publish this token.jsp as a Webapp to Tomcat.
    I just placed the .jsp file in the folderTomcat5.5/webapps/InfoViewApp (same location as the client who has it working).
    Do I need to publish it?  Is that part of the problem?
    I am a little out of my realm here but trying to learn!
    We are on BOXI R2, Tomcat 5.5, JAVA, and I am having the same behavior on my personal XI 3.0 server too
    Thanks in advance,
    Randy

    I believe it's storing the info in a cookie so that it can be used later.  You don't mention which version of BO you're using, but I've sometimes found that the logon tokens created in 4.x contain special characters and may need to be URL encoded.  Also, I've found that it helps to put the logon token at the end of the URL after any parameters instead of in the middle before the parameters.
    -Dell

  • Getting Warning about Redirection url

    Hi,
    we have the the portal application running on the weblogic 11g and upon login, home page of our app is loaded, but I do see the following warning message on the portal server logs. Any idea how we can supress this warning?
    <Warning> <netuix> <BEA-423420> <Redirect is executed in begin or refresh action. Redirect url is https://<servername>.arccorp.com:443/PortalApp/ARCGateway.portal?_nfpb=true&amp;_st=&amp;_pageLabel=ARC_Home&amp;_nfls=false
    Thanks
    sravi

    Hi Sravi,
    I am not sure if this is your situation or not, but hopefully it could be helpful for you.
    It is not supported for a remote pageflow portlet (WSRP producer) to redirect from its pageflow begin or refresh action. Because of this limitation, WebLogic Portal logs a warning when any portlet's pageflow attempts to redirect from either of these two actions.
    It is legal to redirect from these actions if the portlet is not a WSRP producer. If this is the case, Oracle has added a utility method that can be called prior to the redirect which can suppress these warning messages:
    - Class: com.bea.netuix.servlets.controls.content.PageflowLoggingHelper
    - Method: public static void dontLogRedirectWarning(HttpServletRequest req)
    Calling this method from the pageflow's begin or refresh action prior to the redirect will suppress the Netuix redirect warnings.
    Thanks,
    Cris

  • Multiple redirect URLs for mutliple guest VLANs

    We are trying to implement 2 guest WLANs tunnneled to our DMZ and want to redirect users to 2 different URLs (one for each WLAN) when they click the "Accept" button. We are running 6.0.182 on the DMZ controllers and have a customized web passthrough page currently working for the 1st WLAN.
    It appears that only 1 redirect URL can be configured via the command line (config custom-web redirectUrl), and we haven't had much luck modifying the web page for the 2nd WLAN to redirect correctly. Is this supported? Thanks

    Since you are on version 6, the config guide mentions the following in Chapter 10 (and talks about how to do a "global override" per WLAN):
    Assigning Login, Login Failure, and Logout Pages per WLAN
    You can display different web authentication login, login failure, and logout pages to users per WLAN.
    This feature enables user-specific web authentication pages to be displayed for a variety of network
    users, such as guest users or employees within different departments of an organization.
    Different login pages are available for all web authentication types (internal, external, and customized).
    However, different login failure and logout pages can be specified only when you choose customized as
    the web authentication type.

  • How to redirect users to another address

    Hi
    Thank you for reading my post
    I have a problem that i do not know how to resolve.
    we had an application in an address like :
    http://www.myweb.com/web2/ it is a dynamic application written in java .
    now we move it to another server like : http://10.10.a.b/web2/
    we need all people that come to the first address to be redirected to new address with the complete url for example if some one come to http://www.myweb.com/web2/register.jsp
    we should be able to redirect him/her to http://10.10.a.b:8888/web2/register.jsp
    what should i do now ? is there any way that i can do this ?
    i am allowed to deploy a java web application to first address to do this , i mean i can deploy some java web application to http://www.myweb.com/web2/ to make this redirection possible.
    does any one hav an idea ?
    thanks

    Certainly sounds possible.
    Put in a servlet filter that will intercept all requests.
    You would use response.sendRedirect to send the redirect.
    However what you would lose in this redirect is any request variables. You would have to include them as get parameters in the redirect URL which
    - may not be secure
    - may not work if there are too many request parameters.

  • Authorization Failure Redirect URL in OAM

    Hi,
    From OAM policies i want to redirect a user to Authorization Failure page by configuring redirect URL for Authorization Failure. But user is always redirected to OAM operation error page (with an error message that URL .. has been denied for the user) in case of Authorization Failure..How to redirect the user to my AuthFail.html page ? I am able to redirect the user to AuthenticationFailure page incase of authentication failure..but not able to redirect in case of authorization failure..how to achieve this?
    Thanks & Regards,
    Srikanth

    Hi,
    I am new to OAM and facing the same error in Authz Rule. Did your issue get resolved?
    When I tested the URL with access tester for authz failure scenario, I got Authorized Inconclusive.
    I do understand if I mention the AuthFail.html in the redirection URL Authz Inconclusive, the user would be able to see the appropriate error page. But I wanted to understand the reason for authz getting into inconclusive condition. Can someone provide me clarity on this?
    Thanks!

  • IOS Content Filtering Using TrendMicro: Can I customize the block-page redirect-url?

    I have IOS content filtering using the Trend Micro subscription service working on a 2911 running 15.1.(3)T3 with the security license option and a 30 day demo Trend subscription.
    Once I figured out that the content filtering for Trend appears to be completely broken in 15.2 (even using docs for 15.2) I went back to 15.1 and it works great.
    Everything seems great so far except I would like to have a more 'fancy' or custom blocked page where a user can have a couple links to either go to the trend micro reporting page http://global.sitesafety.trendmicro.com/result.php or some other page, and maybe some branding so they know the page is coming from our network and is not some fake security thing or phishing attempt or whatever.
    I know I can use the 'parameter-map type urlfpolicy trend ' section to do a tiny bit of customization of the text that appears on the default blocked page display and there is an option for it to go to a simple redirect instead ('block-page redirect-url') but I wonder if anyone has any ideas on how to do more with either the built in page or the redirect-url to keep the information of what page the user was trying to access and why it was blocked (category etc.) while adding more features.
    Thanks!
    Oh, one last thing, this doesn't support any kind of 'user override' or anything like that does it? So that a network can have a filter applied but an admin could override the filtering to allow temporary access to something?

    Hmm... no thoughts over the weekend. Anyone?

  • I can't change redirect URL of my application

    When I tried to change the redirect URL, I've got an error saying 'This domain was taken by other application...'.
    Many people have got this error and moderator showed a link for help ticket.
    What's problem here is that the link in the past post was no longer available.
    Please show me the valid link for this issue.
    Thanks,
    Yochi

    Dale Mayer wrote:
    Yes, but the city that's there is not my city. How do I change that?
    Go to Settings > Privacy > Location Services, and either turn Location Services off (NOT recommended), or turn off the Weather App in Location Services.

  • Set Redirection URL in Authorization

    I have written a custom Authorization Plug-In which at the end, either return authorization denied or successful.
    I was wondering how can I set a redirection URL when I return Authorization failed?
    Basically I want to return the user the the login form if they are not Authorized. I can't simply set it in the Authorization Failure Rule in the policy because it doesn't seem to work when i execute my own plugin.
    Any ideas?
    Thanks,
    Raj

    Are you not getting the authorization failure back to your policy or its not redirecting ? When you set the authorization denied in plugin and return , the authorization rule that called the Plugin will fire the failure part of the rule. But this wont redirect back to the login page because login page will think the user is already authentication ( because of valid obssocookie). You can try redirecting to another accessdenied page.
    Thanks
    Ram

  • How to redirect search results to a webapp detail page

    Hello there, I am in the process of creating an interconnected series of webapps and I am trying to get the list view of one webapp to display on the detail view of another webapp. This is a bit difficult due to the fact that the webapps are dynamic and users will be submitting them.
    Here is essentially what I am trying to do:
    On the list view of webapp#1 I have a hidden form, that when submitted should display the search results of webapp#2 on the detail page of webapp#1. In order for this to work I have redirected my search form results as such:
    As you can see I have replaced the redirect URL with that of the detail view of webapp#1. This method of redirect has failed to work, when the search is performed I am redirected to a 'page not found' page. I have discussed it with BC Support and they say that it cannot be done in this way. If there is anyone out there who has an idea of how to go about this, I would be grateful. Unfortunately the best way to get my desired results is to submit a search for the relevant itemid that displays a list of the correct webapp items. I also cannot create an inline search for the results directly on the detail page of webapp#1 because I don't want the page to reload. If you know of a way to achieve what I am trying to do I would be grateful.
    Thank you for any and all help!

    Hi Prakash,
    SharePoint indexes each list item with the display form of the items in the lists.
    Although the web part is added to the page, the items in the web part are still be indexed from the original list. That is because the web part is rendering the items from the database where the original list stores.
    So per my knowledge, we can only get the list items with the display form in the search results.
    Best regards.
    Thanks
    Victoria Xia
    TechNet Community Support

Maybe you are looking for

  • HP Smart Web Printing will not print text

    Using IE 8, Attempting to print out sections of a post on a message board.  I can use the select tool to select text areas, but it does not go on to the next step.  It sits there with the text highlighted but does not give me any side menu to go on t

  • No mail is sent from SAP Workflow

    Hi We are sending mail from SAP Workflow to Lotus notes email. We have made the correct configuration in su01d for users whom we are sending by mentioning email address and communication method as email. We have also checked that program RSCONN01 is

  • How do you change the Number of Plots Shown property of a Waveform Chart at runtime?

    Is there any possible way to change the Number of Plots Shown property of a Waveform Chart at runtime?  Thy Dynamic Stackplots example is way to limited.....

  • Excise modvat accounts not defined for CAPE transaction

    Dear All, Hi, I'm getting error "Excise modvat accounts not defined for CAPE transaction and 30 excise group" during receiving material. I have checked up in "excise account assignment table in IMG" , which I found to be ok . Does anyone came accross

  • Basic negociation query

    Dear All, I had some queries running in my mind which iam sure could be cleared in this forum :) My scenario is like this... Client-1(b mode)------ AP(auto or mixed mode) ------ Client-2(g mode) Now suppose Client-1 wants to transfer data to client-2