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: Per User like rewrite/alias
Author
jerrylee



Joined: 07 Dec 2015
Posts: 1
Location: Taiwan, Taipei

PostPosted: Mon 07 Dec '15 17:13    Post subject: Per User like rewrite/alias Reply with quote

Hi:

We have Cakephp MVC application with url like /Orders/list, /Books/read, /Cars/loan

Our customers access our service like
https://ourservice.com/customer1/Orders/list,
https://ourservice.com/customer1/Books/read,
https://ourservice.com/customer1/Cars/loan,

while /customer1/ can be /customer2/, /customer3/...

We can let server write a text file to update customer names, or we have folder names in path like /opt/ourapp/app/config/customerxxx, so we can make apache check if customer name exist

Our images, js, css locate in /customer1/img, /customer1/js, /customer1/css

If url not our customer, like /invalidcustomer, we wish to redirect to another site, like http://ourweb.com

We hope not to reload/restart httpd. How should I configure httpd.conf or .htaccess?

Thanks,
Back to top
James Blond
Moderator


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

PostPosted: Thu 10 Dec '15 19:02    Post subject: Reply with quote

Since there is a total rewriting with cake php you need to update the routes in the app config. There is no need to restart apache for that.
Back to top


Reply to topic   Topic: Per User like rewrite/alias View previous topic :: View next topic
Post new topic   Forum Index -> Apache