I need quick help setting up url rewrite rules for various sites to work together

Discussion in 'Apache' started by cipherion, Oct 21, 2012.

  1. #1
    Hello there

    This is my first post here, and I'm really happy with the community :)

    I'm kinda new to apache and I have the following situation, which I need help with.

    I have a vps, on which I have set the following:
    1. WordPress Site A, has it's own VirtualHost and domain
    2. WordPress Site B, has it's own VirtualHost and domain
    3. Canvas LMS (not connected to a domain).
    Canvas LMS can add multiple accounts, which may (or may not) be accessed individually using a URL that looks as follows:
    {canvas_root}/accounts/{account_id}/

    For example:
    http://....../accounts/4/

    I need to add a link to each of WP sites, which points to each site's account on Canvas, such that it appears as .../learning/ folder

    For example:
    http://WPSiteA/learning/
    http://WPSiteB/learning
    
    Code (markup):
    which actually represents
    http://WPSiteA/accounts/4/
    http://WPSiteB/accounts/5/
    
    Code (markup):
    which in turn represents
    http://{my_vps_ip}/accounts/4/
    http://{my_vps_ip}/accounts/5/
    
    Code (markup):
    respectively

    Noticing the following:
    1. I do not want the users to see the /account/4/ , just /learning/
    2. I also want to prevent accessing
    3. Canvas LMS is located beyond the website's DocumentRoot
    4. I want this to work with both HTTP and HTTPS
    That's a lot I know :), but I really appreciate your help

    Thanks guys!
     
    cipherion, Oct 21, 2012 IP
  2. cipherion

    cipherion Peon

    Messages:
    3
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Guys, I'm depressed :'(
    Can anyone help me, please?
     
    cipherion, Oct 21, 2012 IP
  3. cipherion

    cipherion Peon

    Messages:
    3
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Any support, guys?:confused:
     
    cipherion, Oct 23, 2012 IP