Redirect users with a RewriteRule?

I have many vhosts on one portal http server.
I want to make it so that any request that includes a specific page path, such as "/portal/page/portal/myPageGroup/myPage" in the url is redirected or rewritten to a specific host....
Like this:
If this is the request:
http://anyOfMyHosts.jis.org/portal/page/portal/myPageGroup/myPage
I want it to be rewritten or redirected to:
http://onlyThisHost.jis.org/portal/page/portal/myPageGroup/myPage
So that the host is always rewritten to "onlyThisHost.jis.org" if the request includes "/portal/page/portal/myPageGroup/myPage"
Thanks for any help offered!
Message was edited by:
I_LOVE_PORTAL

I have this line in my httpd.conf, so I assume
mod_alias is added. Do I need a "load" statement as
well?: AddModule mod_alias.cAs long as there is no # before the AddModule you should be ok.
I wonder if my issue might involve my web cache
and vhosts delcarations? Here are some more details
as to that config:
Do you have webcache configured anyway?
# Use name-based virtual hosting.
NameVirtualHost *:7778
NameVirtualHost *This is double, just one NameVirtualHost entry will do (stick to the second one ;))
>
<VirtualHost *:7778>
ServerName anyHost.jis.org
Port 80
Redirect /portal/page/portal/da/daCalendar
http://onlyThisHost.jis.org/portal/page/portal/myPage
myPageGroup [NC]
</VirtualHost>[NC] is a rewrite command. As far as I know you do not need that with Redirect. Also it seems funny to me that you have a virtualhost at port 7778 and it is listening at port 80. This might be an issue too.
>
<VirtualHost *:7778>
ServerName onlyThisHost.jis.org
Port 80
DocumentRoot "D:\ias\Apache\Apache/htdocs"
</VirtualHost>
Looks ok to me, except for the earlier mentioned port thingie.
>
Here are some lines from the access.log:
Please add the directive for virtualhost logging to your combined log directive, so it makes some sense. Another option is creating a seperate logfile for each virtualhost.

Similar Messages

  • Login User with Dynamic Redirect

    Hi,
    I have used the "Login User with Dynamic Redirect" with asp
    VBScript. But
    now I´m going to make a PHP/MySql site.
    Does anybody know of a extension that can make dynamic
    redirection from
    logon page.??
    /mike.

    Michael wrote:
    > I have used the "Login User with Dynamic Redirect" with
    asp VBScript. But
    > now I�m going to make a PHP/MySql site.
    > Does anybody know of a extension that can make dynamic
    redirection from
    > logon page.??
    You don't need an extension. The built-in Log In User server
    behavior
    does it.
    David Powers, Adobe Community Expert
    Author, "Foundation PHP for Dreamweaver 8" (friends of ED)
    Author, "PHP Solutions" (friends of ED)
    http://foundationphp.com/

  • Adobe Reader becomes unresponsive when loading a PDF on a network with redirected user data.

    I have a client with redirected user data, including application data, that is experiencing poor performance of Adobe Reader when trying to view PDF's. They are not using roaming profiles but do have redirected user data and documents on a server. One of the client's sites has direct file access to the domain with a small network pipe of 20MB. I expect the slow load of the PDF's but not the actual "application is unresponsive" behavior. If you wait for 10-15 minutes, then it seems to behave okay.
    I know that previous versions of adobe reader had problems with redirected data. Here are a couple of the threads I found talking about this issue.
    http://forums.adobe.com/thread/754379
    http://forums.adobe.com/thread/391738
    Does anyone know the official adobe word on their minimum recommended bandwidth requirements for redirected data? Do they not support redirection at all? I have tested Adobe 9,10 and 11 with the same problems.  Local files still have problems with redirected user data but local users with local files have no problem. Alternate PDF programs still take time to load the file over the network but do not seem to have the application hang problems. Any ideas or suggestions?

    in AS2, use getURL("data/pdf/nameoffile.pdf",
    "_blank");

  • Hi ,How can I get a list of all laptops or users with folder direction enabled or offline files enabled, be it sccm or poerwshell . i have struggled for a week.

    Hi ,how can I get a list of all laptops or users with folder direction enabled or offline files enabled, be it sccm
    or poerwshell . i have struggled for a week
    tchocr

    Hi,
    There is no such PowerShell command can achiev this. Maybe you can use a script to get the user name with folder redirection enabled. However, I am not familiar with writing script, and it would be better for you to ask in script forum below for professional
    assistance:
    http://social.technet.microsoft.com/Forums/en-US/home?forum=ITCG&filter=alltypes&sort=lastpostdesc
    Best Regards,
    Mandy
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact [email protected]

  • How can I get a list of all laptops or users with folder direction enabled or offline files enabled, be it sccm or poerwshell . i have struggled for a week.

    How can I get a list of all laptops or users with folder direction enabled or offline files enabled, be it sccm or poerwshell . i have struggled for a week.

    Hi,
    There is no such PowerShell command can achiev this. Maybe you can use a script to get the user name with folder redirection enabled. However, I am not familiar with writing script, and it would be better for you to ask in script forum below for professional
    assistance:
    http://social.technet.microsoft.com/Forums/en-US/home?forum=ITCG&filter=alltypes&sort=lastpostdesc
    Best Regards,
    Mandy
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact [email protected]

  • POA Log - Redirecting User - Clarification Question

    In my POA logs I see the following entry:
    C/S Login Windows :GW ID=username :: IPAddress (this is an internal IP)
    Redirecting user "joeuser.realpostoffice.realdomain" to IPAddress:1677 (this is the IP address/port of user's post office
    If I am reading this correctly, I understand this to mean that joeuser has an account in "realpostoffice" but logged in with a client that is pointing to another post office.
    Please correct me if I'm wrong.
    I also see the following entries repeatedly:
    C/S login Windows: :: IPaddress (this is an internal IP)
    Redirecting user "postoffice1.realdomain" to IP Address of postoffice1:1677
    What concerns me is the fact that this entry has no username attached to the redirect statement and I'm wondering where this login might be coming from.
    Both if the IPAddresses in the login are actual systems on our internal network (not wireless devices).
    Thanks
    Can anyone shed some light on the entry

    On 3/21/2012 7:46 AM, vchiarelli wrote:
    >
    > In my POA logs I see the following entry:
    >
    > C/S Login Windows :GW ID=username :: IPAddress (this is an internal
    > IP)
    > Redirecting user "joeuser.realpostoffice.realdomain" to IPAddress:1677
    > (this is the IP address/port of user's post office
    >
    > If I am reading this correctly, I understand this to mean that joeuser
    > has an account in "realpostoffice" but logged in with a client that is
    > pointing to another post office.
    >
    > Please correct me if I'm wrong.
    >
    correct
    > I also see the following entries repeatedly:
    >
    > C/S login Windows: :: IPaddress (this is an internal IP)
    > Redirecting user "postoffice1.realdomain" to IP Address of
    > postoffice1:1677
    >
    > What concerns me is the fact that this entry has no username attached
    > to the redirect statement and I'm wondering where this login might be
    > coming from.
    > Both if the IPAddresses in the login are actual systems on our internal
    > network (not wireless devices).
    >
    > Thanks
    >
    > Can anyone shed some light on the entry
    >
    >
    dunno. guessing it's the poa itself, maybe forbusy search or shared
    resources?

  • How can I automatically redirect users to the correct platform?

    Hi,
    I have built my website three times, once for desktop, once for tablet and once for mobile phones. My question is how can i automatically redirect the user to the correct site depending on which device they are using.
    I have read that they can be redirected to a separate domain name such as m.example.com for mobile, I have also read that a lot of large corporations use this approach as well.
    Any help would be great!
    Cheers guys

    Most corporations nowadays are moving towards responsive designs with a mobile first approach.  This tends to be the most efficient and compatible since there is no need for javascript or other scripts to redirect users.
    The following is a simple example for phones and desktops only, and most examples I was finding were that way due to their publishing date.
    http://css-tricks.com/snippets/javascript/redirect-mobile-devices/
    The trick is going to be getting lists of devices and resolutions to make sure they are all captured which can be a major pain since that information updates all the time.  With that said, if I were you doing it this way I would do away with the tablet version.

  • TS1368 I'm a PC user with an itunes account for several years. I updated my itunes and now it wont open and shows me 'missing file MSVCR80.dll,and error 7(Window error 126)' keep coming up even after re-installing itunes . What should i do?

    I'm a PC user with an itunes account for several years. I updated my itunes and now it wont open and shows me 'missing file MSVCR80.dll,and error 7(Window error 126)' keep coming up even after re-installing itunes . What should i do?

    Click here and follow the instructions.
    (98897)

  • There are multiple users with the same display name

    Hi,
    We have a user and when she get an item assigned to her she sees the following alert:
    "There are multiple users with the same display name USERNAME and at least one of them does not have read permissions to some of the files"
    Now I looked in the database and when I run the following query with the username:
     SELECT     
         [ProviderDisplayName]  
        ,[DisplayName]  
        ,[HasDisplayName]  
        ,[Domain]  
        ,[AccountName]  
        ,[UniqueUserId]  
        ,[LastSync]  
      FROM [Tfs_Configuration].[dbo].[tbl_Identity] where displayname like '%USERNAME%'  
    Then I get 2 same usernames back, How can I get rid of one of them ? When I access TFS trough the portal I only find 1 occurence of this user.
    We use VS2013 and TFS2013 update 4
    Best regards

    Hi DSW,  
    Thanks for your post.
    In your query result, please check if these two users have the same Account Name. if they are two different Account Name in result, it indicate there’s two users have the same display name in your AD, please check that two users’ information in
    your AD. We suggest change one user’s display name in AD.  
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Error in SRM:  a user with enough authorisation level is miss

    Hello,
    We are on SRM 5.0 and our users get the following error in SRM when creating a shopping cart:
    No user assigned to object a user with enough authorisation level is missing.
    Anybody any idea ?
    Thanks as ever

    Hello Can anybody helpe me please ?

  • Provisioning a user with a resource automatically doesn't work!!

    Hi Experts – IHAC trying to configure OIM to provisioning a user with a resource automatically (via OID connector).
    As reviewed, the membership rules (rules designer) and access policies already configured with correct param. So I would say everything should work fine.
    But when they create a new user with proper attribute. The resource didn’t perform an automate process as expected.
    In the log file show only 2 lines of error message.
    <Apr 25, 2013 2:49:46 PM ICT> <Warning> <oracle.iam.callbacks.common> <IAM-2030146> <[CALLBACKMSG] Are applicable policies present for this async eventhandler ? : false>
    <Apr 25, 2013 2:49:47 PM ICT> <Warning> <oracle.iam.callbacks.common> <IAM-2030146> <[CALLBACKMSG] Are applicable policies present for this async eventhandler ? : false>
    However, manual add resource works well.
    Environment Info:
    - OIM 11gR1 (BP6)
    - OID Connector 9.1
    - AIX 7.1
    Is this consider as bug on AIX platform ? Or any inputs would appreciated.

    Just check if the rule satisfy, user is getting the role.
    --Hari                                                                                                                                                                                               

  • Connect to a cube with Integrated WIndows Sercurity for Windows user with computer outside the domain

    Hello,I am trying to connect to an MSSAS cube with a windows user ( and i need this user to be the end user that connect to the cube) from outside the domain.It will be .Net application.I use msmdpump.dll before but the thing is it impersonate the connection
    so the user that connect to the Cube is not the real client user with is a problem for me because i like to manage the security throw roles.
    SSRS is able to do what i am trying to achieve ( it ask you your domain user and password) then connect to the cube with these credential which is great,but i do that ?
    With ADOMD.Net how do you provide windows user/password in the connection string ?
    I tryed to only active windows security access with IIS and MSSAS but it's not working with a computer outside the domain even if in excel i provide a windows user/password.
    Vincent

    With ADOMD.Net how do you provide windows user/password in the connection string ?
    Hello Vincent,
    See MSDN Connection String Properties (Analysis Services) for all available properties; addtitional: AdomdConnection.ConnectionString
    Property  =>
    Olaf Helper
    [ Blog] [ Xing] [ MVP]

  • How to provide the user with a list of files to pick from...for downloading

    hai..
    I have uploaded the file succesfully.. now we need to download the file...... which has been uploaded..... for that we have implemnted the Query as..
    select max(id) from APEX_APPLICATION_FILES ,here the latest uploaded record will be retrieved and shown.
    Now We want to provide the user with a list of files to pick from for downloading..,Dat is he should be shown the list of files which is available from dat he has to select one file to downlaod ???
    can u plz tell me how to do it....
    anoo

    Hi Anoo,
    Create a report using the following SQL statement:
    SELECT ID,
    FILENAME,
    CREATED_ON
    FROM APEX_APPLICATION_FILES
    ORDER BY CREATED_ON DESCThere are other fields available from the table, but the above gives you a start.
    Then edit the report's Report Attributes.
    Edit the CREATED_ON column and pick a Number/Date Format to use for the display and Apply Changes
    Edit the ID column. In the Column Link section, enter:
    Link Text: &lt;img src="#IMAGE_PREFIX#download.gif" alt="Download"&gt;
    Target: URL
    URL: p?n=#ID#
    Apply Changes and run your report
    Andy

  • Site Login Behavior For SharePoint Foundation 2013 Users With Expired Passwords?

    What are the most user-friendly ways of getting external users with expired AD passwords back into the SharePoint site with a new working password?
    We already send automated email notifications to users reminding them to change their soon-to-expire passwords.  However, sometimes they miss seeing the email notifications before the password expires (such as after returning from vacation or just carelessness
    and lack of attention to email messages) or they see the warning messages and forget to act on it.
    When this happens and they try to log into the SharePoint site from the Internet, their login fails without telling the user the reason they can't log in is because their password expired.  So, they end up confused and call the help desk to get their
    password reset.
    Is there a way to set up SharePoint Foundation 2013 login in a similar way to the OWA login so that, when a user with a correct but expired password tries to log in, it gives them a prompt to set a new password right there rather than just an error indicating
    their login failed for unknown reasons or password is "incorrect?"

    It could be done. You get a different event log entry for an expired login attempt than for a wrong password, 4625 events denote a login failure and an error ID of 23 denotes a logon failure.
    A naff, but simple, approach would be to create a tool that checks your server logon event log for 4625 entries and then emails that user, or the help desk, or security, that they're trying to get onto your system with expired credentials.
    For a more polished experience you've got a lot more work and bluntly it's going to be impractical for you. You'd have to re-write sections of the SharePoint authentication process or intercept the process, both are risky and not a good idea to try.
    There's a really interesting paper here that might be of interest, it won't help you in your current situation but it might shed more light on the overall authentication/authorisation process.
    http://www.sans.org/reading-room/whitepapers/forensics/windows-logon-forensics-34132

  • Can the Terminal add a user(with all options) on a single line?

    Howdy All,
    Can the Mac Terminal add a user, with all options desired, on a single line?    If so, can I get an example of this single terminal line to work from?
    Thanks

    Thanks Drew!   You have some great thoughts there. Perhaps I should provide a clearer environment of each high school(4). All classrooms have a lock down Windows environment. (There are no Macs any where in any classrooms.) The mini-tower will be the only Mac on each high school campus. we're in Dell country. The desktops are locked in such a way that only the ghosted/installed software on each hard drive works and no other software can be installed. USB sticks can't run any exe, jar, or other executable file. Even the other drives on the network can't run them. This has been setup to prevent students from bringing games into the environment and running them. Only the single classroom in each high school, where Web Tech is taught, has a ftp tool installed. Students cannot bring and use their own laptops either. So there really isn't any stray ftp activity happening. You cannot "ftp" out of the network! And there is only the one Mac available per campus.  All this makes it certainly easier to maintain for sure. I am the only user in the school district they let run a personal laptop...mine has Ubuntu (tweaked).  My knowledge of Linux has led them to assign this project to me. They are MS based entirely and so is their knowledge base.
    I've got to teach the other 4 teachers how to manage the mini-tower.  Basically it is this:
         Start and stop Apache2,
         Start and stop vsftp,
         Add ftp users(students will only have directory:           /Library/Server/Web/Data/Sites/Default/studentlastname.firstname  )  Students will not log on to the min-   tower directly as any normal user would, but only through ftp. (I.E. no /home directory) ,
         Remove/delete students as needed
         (I'll pre-install cgi-bin scripts on these to keep it simpler on the other teachers and myself.)
    With this in mind, you can see why a basic script or single command line to install these students would be great! I want to keep it simple to avoid mistakes the teachers might make adding users. Once I understand adding a user (in a terminal) better on a Mac, I may write a script to make it happen for them.
    I'd also like to understand removing/deleting a student/user better to insure everything is gone when executed.
    I hope this clear things up. Any help is much appreciated.    THANKS!!!

Maybe you are looking for