logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

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.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: need dynamic subfolder alias (instead of subdomain)
Author
stevedev



Joined: 23 Jan 2007
Posts: 1

PostPosted: Tue 23 Jan '07 23:59    Post subject: need dynamic subfolder alias (instead of subdomain) Reply with quote

I don't know if there's a way to do this.

User types in : http://www.mysite.com/companyxyz

And is essentially an alias to the company's profile webpage. The url stays the same, doesn't flip/redirect.

Behind the scenes, I need apache to take the "companyxyz" part and use it to call up e:/server-root/Profiles/companyxyz.html

Kind of like a mod_vhost_alias but for a top-level folder.. is this possible?

-Steve

running 2.0.58
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7294
Location: Germany, Next to Hamburg

PostPosted: Wed 24 Jan '07 10:23    Post subject: Reply with quote

The answer is in your question. Alias is the right command for that.

Please see the docs

http://httpd.apache.org/docs/2.2/mod/mod_alias.html

or you could use mod_rewrite
Back to top


Reply to topic   Topic: need dynamic subfolder alias (instead of subdomain) View previous topic :: View next topic
Post new topic   Forum Index -> Apache