Skip to content
This repository has been archived by the owner on Nov 24, 2021. It is now read-only.

Multi universe support .htaccess #164

Closed
OzanKurt opened this issue Apr 18, 2016 · 4 comments
Closed

Multi universe support .htaccess #164

OzanKurt opened this issue Apr 18, 2016 · 4 comments

Comments

@OzanKurt
Copy link
Contributor

<IfModule mod_rewrite.c>
    RewriteEngine on
    RewriteRule uni([0-9]+)/?(.*)?$ $2 [L,QSA,E=UNI:$1]
</IfModule>

How does this append the universe so to the request?

@jkroepke
Copy link
Owner

Via environment variables.

mod_rewrite will prefix all environment variables with REDIRECT_, like REDIRECT_UNI

https://github.com/jkroepke/2Moons/blob/master/includes/classes/Universe.class.php#L84

@jkroepke
Copy link
Owner

Instead domain.com/uni1/ you can use uni1.domain.com.

But this require a domain wildcard vhost.

@jkroepke
Copy link
Owner

Its fine?

@OzanKurt
Copy link
Contributor Author

Yeah yeah :D Great, subdomains will help me a lot.

jkroepke pushed a commit that referenced this issue Aug 18, 2019
#150 - Resources are visible on Phalanx
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants