We are happy to announce that Vesta is back under active development as of 25 February 2024. We are working on v1 candidate and expect to engage more with the community over the coming months. We are committed to open source, and we encourage contributors to help us build the future of Vesta.
Aliases Subdomain
-
- Posts: 5
- Joined: Thu Jun 02, 2016 2:11 am
Aliases Subdomain
example I create domain >> http://domain.com
If I want to create a subdomain url >>http://domain.com/profile.php?nim=123456789
Aliases
http://subdomain.domain .com
What i must do??
If I want to create a subdomain url >>http://domain.com/profile.php?nim=123456789
Aliases
http://subdomain.domain .com
What i must do??
Re: Aliases Subdomain
If you want create subdomain, just add subdomain as domain
like subdomain.domain.com
If you want some weird redirect, just do it with htaccess or something like this.
like subdomain.domain.com
If you want some weird redirect, just do it with htaccess or something like this.
-
- Posts: 5
- Joined: Thu Jun 02, 2016 2:11 am
Re: Aliases Subdomain
@skurudo: yes , I mean redirect url >>http://domain.com/profile.php?nim=123456789 to subdomain 123456789.domain.com? What i must do?? use .htaccess
-
- Collaborator
- Posts: 783
- Joined: Mon May 11, 2015 8:43 am
- Contact:
- Os: CentOS 6x
- Web: apache + nginx
Re: Aliases Subdomain
You can do it in many ways I think. in .htaccess, in php, ...desrat_sari wrote:@skurudo: yes , I mean redirect url >>http://domain.com/profile.php?nim=123456789 to subdomain 123456789.domain.com? What i must do?? use .htaccess
In php you need to do something like this:
Code: Select all
<?php
header('location http://' . $_GET['nim'] . '.domain.com');
?>
-
- Posts: 5
- Joined: Thu Jun 02, 2016 2:11 am
Re: Aliases Subdomain
Where I should add this script?
page index?
In php you need to do something like this:
Do not forget to validate the field first.[/quote]
page index?
In php you need to do something like this:
Code: Select all
<?php
header('location http://' . $_GET['nim'] . '.domain.com');
?>
-
- Collaborator
- Posts: 783
- Joined: Mon May 11, 2015 8:43 am
- Contact:
- Os: CentOS 6x
- Web: apache + nginx
Re: Aliases Subdomain
In the profile.php script where you handle the request.