Forums
May 01, 2024, 12:28 PM

Author Topic: Any web gurus here? Help!  (Read 993 times)

0 Members and 1 Guest are viewing this topic.

Offline barman

Any web gurus here? Help!
« on: February 19, 2014, 10:56 PM »
I bought two domains for my scientific software project, http://periapsis.pl and http://periapsis.eu. I have a web server at http://albireo.vipower.pl/periapsis which is going to be an actual location of the webpage.

So I thought the setup would be rather straightforward, like, an admin panel with some simple form asking me where would I want the domains to point at. But there are too many cryptic options I don't have a clue about :-X
That's how it looks:


There is also another page which lets me create a simple redirection:


Yet, it doesn't work as I'd like to. There are two options there:
- A "visible" redirection, which makes the address change to http://albireo.vipower.pl/periapsis upon entering the page
- An "invisible" redirection, which makes the address remain as http://periapsis.pl even after clicking link on the page. Also, all links still have a base URL of http://albireo.vipower.pl/periapsis, which I'd like to hide from the visitors.

Anyway, my question is, what do I need to do in order to achieve the following objectives:
- when I enter http://periapsis.pl, the content at http://albireo.vipower.pl/periapsis shows up, but the address bar doesn't change to http://albireo.vipower.pl/periapsis
- clicking a link on the website, for example <a href="test.php">test</a>, makes the address change to http://periapsis.pl/test.php and does not reveal the actual address where the site is hosted.

Can anyone help me with that? Sadly I have no idea how internet works :X
My WA compilation videos: 2007 2013
My photography work

Quote from: Statik
barman's fails are best

Offline TheWalrus

Re: Any web gurus here? Help!
« Reply #1 on: February 19, 2014, 11:01 PM »
So many links and none of them lead to pr0n.....

Re: Any web gurus here? Help!
« Reply #2 on: February 20, 2014, 03:41 AM »
this or this might help you. Otherwise a dirty solution is to use iframe.
If you can touch the dns, the command you're looking for is ALIAS if your dns support it. Otherwise modify the A record. If you want to redirect a subdomain it'll be CNAME to use.
Note: sorry for the multiple solution but it's not crystal clear what you want to do for me :)
« Last Edit: February 20, 2014, 01:46 PM by BrendaSlave »

Offline MonkeyIsland

Re: Any web gurus here? Help!
« Reply #3 on: February 20, 2014, 04:00 AM »
*I'm not a guru regarding domains and DNS. So don't take my word as the ultimate answer.

The first attached image is for DNS settings. You can point your domain to another one or to a domain with subdomain (test.example.com) but you can't do it to a specific path. This is a path:  http://albireo.vipower.pl/periapsis

First solution: contact vipower.pl and ask them how to do it. You can point your domain to albireo.vipower.pl with that settings, but they vipower.pl have to take care of the rest.

The second image, is a simple redirection. If you go with invisible, it will create an iframe. To get around that, you need to change your own document paths. For example, define a base path and include that everytime you want to put a link.

e.g.
$base_url = 'http://periapsis.pl';

<a href="$base_url/test.php">test</a>

That will force your document to always have absolute links.
Due to massive misunderstandings: MonkeyIsland refers to an island not a monkey. I would be a monkey, if my name was IslandMonkey meaning a monkey who is or lives on an island. MonkeyIsland is an island which is related to monkeys. Also there's been a legend around saying MonkeyIsland is a game. So please, think of me as an island or a game.

Re: Any web gurus here? Help!
« Reply #4 on: February 20, 2014, 05:05 AM »
Why do you want to change a 2nd level domain to a 3rd level + subdirectory? o0

I guess you can solve it with php: if (domain contains 'periapsis.pl') then do redirect (I know it's not php, just the logic :D)


dt`wreckz: zooks are effected my win

Offline Tomi

Re: Any web gurus here? Help!
« Reply #5 on: February 20, 2014, 10:04 AM »
I have never done DNS settings either, but I guess you will just need to point the two domains to the same server with DNS settings.

If the site is in a subdirectory on the server, you can maybe solve it with an apache .htaccess file, changing the document root to the subdirectory (/periapsis).

And then you won't have to care about links ;)


I just learnt about DNS.. it's a table with rows. The type field (A, AAAA, NS..) specifies what kind of data is stored for a domain. You can specify a server address(es) (IPv4 = A, IPv6 = AAAA), server zone, server name, etc.. for the domains.

So in my opinion you will have to set the name servers (NS) for the two domains, which you can find in an email or at the admin site of your domain service.
And two A rows for the two domains, which will specify the IP address of http://albireo.vipower.pl, and if the server is set good enough, then the document root will probably set to /periapsis directory... but it's just myy theory.. and probably you will need to specify not only NS and A rows.
« Last Edit: February 20, 2014, 10:20 AM by Tomi »

Offline barman

Re: Any web gurus here? Help!
« Reply #6 on: February 20, 2014, 01:54 PM »
Thanks for the helpful replies. I managed to set up a domain alias - http://test.periapsis.eu points to http://178.255.45.108, which is the IP address of my server.
The website is now visible at http://test.periapsis.eu/~albireov/periapsis and the links work just like I wanted.
Still, I can't point the alias directly at http://albireo.vipower.pl, probably because its IP is shared with other accounts. If I understand correctly, ordering a separate IP will solve the problem ;)
My WA compilation videos: 2007 2013
My photography work

Quote from: Statik
barman's fails are best

Re: Any web gurus here? Help!
« Reply #7 on: February 20, 2014, 02:14 PM »
damn polish magic :D separate IP won't solve the problem by itself, you just need a webserver to "understand" this domain, dunno how it is done on your server (by adding a new domain in the admin panel or manually...).


dt`wreckz: zooks are effected my win

Offline MonkeyIsland

Re: Any web gurus here? Help!
« Reply #8 on: February 20, 2014, 05:11 PM »
barman, you just need to ask vipower.pl. They can tweak it for you.
Due to massive misunderstandings: MonkeyIsland refers to an island not a monkey. I would be a monkey, if my name was IslandMonkey meaning a monkey who is or lives on an island. MonkeyIsland is an island which is related to monkeys. Also there's been a legend around saying MonkeyIsland is a game. So please, think of me as an island or a game.

Offline barman

Re: Any web gurus here? Help!
« Reply #9 on: February 20, 2014, 05:28 PM »
Yeh, will do. Thanks.
My WA compilation videos: 2007 2013
My photography work

Quote from: Statik
barman's fails are best