• Welcome to the Chevereto User Community!

    Here, users from all over the world come together to learn, share, and collaborate on everything related to Chevereto. It's a place to exchange ideas, ask questions, and help improve the software.

    Please keep in mind:

    • This community is user-driven. Always be polite and respectful to others.
    • Support development by purchasing a Chevereto license, which also gives you priority support.
    • Go further by joining the Community Subscription for even faster response times and to help sustain this space

Sub url rewrite

Status
Not open for further replies.

tomsit

Cheese
Community Manager
đź’ˇDescribe your suggestion

Create an sub URL rewrite of some sort for languages and users, when a user selects another language like english the url will be "en.cheveretosite.com" and the same for users "username.chevereto.com

👏Where did you saw this?

From another disrespectful site
 
If I understood you correctly, Chevereto should be able to change from this:
Code:
https://demo.chevereto.com/?lang=es
https://demo.chevereto.com/rodolfo

To this:
Code:
https://es.demo.chevereto.com/
https://rodolfo.demo.chevereto.com/

This is not hard to achieve if you can setup wildcard subdomains in your server. I believe that even cPanel includes that thing now so I don't see any good reason for not including this functionality.

For languages, the thing should be able to resolve the URL and alter the language cookie so the lang URL works as landing + hot setting change. By doing this, all your further navigation will keep the non-lang URL. For usernames, it should $route->map to /users/<username>.

There's no technical limitation here and I think that several users will know how to make the most of this new functionality, I will try to add this soon as possible.
 
what tomsit is trying to say is, you can't just make Subdomain and then think it will be able to change a language or something else, even script itself needs some coding for the subdomain to listen to script behaviour. Like you mentioned @Rodolfo , this can be done by using some php coding and then few .htaccess rewriting so when you do https://username.domain.com you get location from old path as https://domain.com/username, but you won't be on old url. This would still need some work done in script or the subdomain won't listen to the script itself.
 
this can be done by using some php coding and then few .htaccess rewriting
No, when it comes to wildcards you don't need any server rewrite for that, just use wildcards in your vhosts/proxy.
 
Status
Not open for further replies.
Back
Top