Keep Server Online
If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.
or
A donation makes a contribution towards the costs, the time and effort that's going in this site and building.
Thank You! Steffen
Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
| |
|
Topic: Weird question - likely real easy for someone else |
|
Author |
|
brandrui
Joined: 04 Aug 2009 Posts: 2 Location: Independence, MO
|
Posted: Tue 04 Aug '09 19:07 Post subject: Weird question - likely real easy for someone else |
|
|
Ok, first off, please forgive if this is too easy and I'm just not getting it.
I work for a school district and we just purchased a third-party CMS for some individual sites. However, the URL's are decidedly messy. eg
http://allofe.indep.k12.mo.us/independence/contentm/easy_pages/easy_page_view.php?id=126
However, for our parents to access the sites, we want them to be as simple as
http://central.indep.k12.mo.us
I'm thinking I need to use <VirtualHost *:80> to do this. An example for one of the schools is
Code: |
<VirtualHost *:80>
ServerName central.indep.k12.mo.us
DocumentRoot /independence/contentm/easy_pages/easy_page_view.php?id=126
</VirtualHost>
|
However, because each school points to a single file differentiated only by the id number, I'm not left with a warm fuzzy feeling this is right.
Am I on the right track and just a little off, am I way off the mark, or am I on the money and don't realize it?
If I'm way off, where should I be looking to fix this so we can deploy it?
Thanks,
Tony |
|
Back to top |
|
bentogoa
Joined: 09 Feb 2007 Posts: 66 Location: GOA
|
Posted: Tue 04 Aug '09 20:16 Post subject: |
|
|
try mod_rewrite |
|
Back to top |
|
brandrui
Joined: 04 Aug 2009 Posts: 2 Location: Independence, MO
|
Posted: Wed 05 Aug '09 16:26 Post subject: Looking at mod_rewrite |
|
|
I've been looking at mod_rewrite as suggested and it looks like there are a hundred examples which all point to leaving the base URL the same.
From what I'm getting it looks like my best bet is a RewriteMap and then mapping each page_id=### to the specific "subdomain" involved.
Am I on the right track with this or have a taken a left turn somewhere I shouldn't have.
No, I haven't drank the kool-aid yet on this. |
|
Back to top |
|
|
|
|
|
|