Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

I need some help with URL Rewriting rules

Status
Not open for further replies.

cipherion

Technical User
Oct 27, 2012
1
0
0
EG
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:
WordPress Site A, has it's own VirtualHost and domain
WordPress Site B, has it's own VirtualHost and domain
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:

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:

Code:
[URL unfurl="true"]http://WPSiteA/learning/[/URL]
[URL unfurl="true"]http://WPSiteB/learning/[/URL]
which actually represents

Code:
[URL unfurl="true"]http://WPSiteA/accounts/4/[/URL]
[URL unfurl="true"]http://WPSiteB/accounts/5/[/URL]
which in turn represents

Code:
[URL unfurl="true"]http://{my_vps_ip}/accounts/4/[/URL]
[URL unfurl="true"]http://{my_vps_ip}/accounts/5/[/URL]
respectively

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

Thanks guys!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top