Make project accessible by alternative URI.

Hello EveryOne!

I have project with path

and I’would like to make available by alternative URL with all css and js inside.

I spend hours for this task, please help me to find right way.

What i tried to do:

  1. Make nginx rewrite rules to redirect traffic from /my_alt_path/ to /

  2. Tried to forward parsed paths as param to &r=, but unfortunately after this URLManagern don’t pass my url that prevousely worked well.

  3. Tried to change UrlManager adding regexp

All mentioned not working

Why would you want the website be available on the main domain and a sub path?

Just asking to help you find a solution.


Thank you for the response.

Yea, you right about this, but it’s not very accurate given our goal.