FRIHOST FORUMS SEARCH FAQ TOS BLOGS COMPETITIONS
You are invited to Log in or Register a free Frihost Account!


Got a new domain





Da Rossa
Hi, finally I got a domain, following intense requests from some of my audience. They argue that the url http://www.darossa.frih.net/notas.html is kinda difficult to remember, and it is difficult to tell people in my classroom without spelling. So I got notasdeaula.org. Right.

The first thing is: the page titles (those you can select under http://www.darossa.frih.net/notas.html), are relevant, but since this is a frame redirecting, the url http://www.notasdeaula.org will remain on URL (desired) but the page titles, displayed on top of the browser and on the taskbar are gone. They're crucial for we students to locate ourselves. How can I get them to appear?

Also, when I open the page source @ Firefox, this is all I get:

Code:
<html><head>

<title></title></head>
<!-- Redirection Services SJL01WRED03 H1 -->
<frameset rows='100%, *' frameborder=no framespacing=0 border=0>
<frame src="http://darossa.frih.net/notas.html" name=mainwindow frameborder=no framespacing=0 marginheight=0 marginwidth=0></frame>
</frameset>
<noframes>
<h2>Your browser does not support frames.  We recommend upgrading your browser.</h2><br><br>
<center>Click <a href="http://darossa.frih.net/notas.html">here</a> to enter the site.</center>
</noframes></html>


But not the entire html content of a page. Why?
Bondings
The reason is simple, it's because you use frame redirecting.

In my opinion the best thing would be to really use the domain (instead of forwarding). I mean point the nameservers to Frihost and add the domain in DirectAdmin.

I think your problem with the solution is that all the links go to the subdomain since you have absolute links. But you can change that to relative links (link.php indstead of domain.com/link.php) either manually or by a find/replace all instances which is a lot faster.
Da Rossa
Quote:
I mean point the nameservers to Frihost and add the domain in DirectAdmin.

as you could see, I'm a real newbie at setting up domains, and not only at it, but in site managing in general. Thing I know are incidental. By the passage above, did you mean that I changed from the frame to url redirecting?

Quote:

I think your problem with the solution is that all the links go to the subdomain since you have absolute links
I know they seem a waste of time, but they appear to fail less in my hands. Also I've set a hotkey group in AutoHotKey (do you know that fantastic automation program?) to instantly create links for the subject I need with the current date. Such as:

http://www.darossa.frih.net/dir/direito_const2_18-04-09.html

Ok, how could I point the links "to the subdomain"? Sad Please sorry if in this matter I fill your patience tank, because I'm a real noob at this Sad
Bondings
Da Rossa wrote:
Quote:
I mean point the nameservers to Frihost and add the domain in DirectAdmin.

as you could see, I'm a real newbie at setting up domains, and not only at it, but in site managing in general. Thing I know are incidental. By the passage above, did you mean that I changed from the frame to url redirecting?

Quote:

I think your problem with the solution is that all the links go to the subdomain since you have absolute links
I know they seem a waste of time, but they appear to fail less in my hands. Also I've set a hotkey group in AutoHotKey (do you know that fantastic automation program?) to instantly create links for the subject I need with the current date. Such as:

http://www.darossa.frih.net/dir/direito_const2_18-04-09.html

Ok, how could I point the links "to the subdomain"? Sad Please sorry if in this matter I fill your patience tank, because I'm a real noob at this Sad

No, I meant to completely remove the redirecting and instead use our nameservers and setup the domain on Frihost. There should be an option to change the nameservers. Change them to ns1.frih.net and ns2.frih.net. And then you can add the domain to your DirectAdmin account. (it will take from 4 hours to a day to work though)

Here is the DirectAdmin help for getting started (includes domain things).
http://www.site-helper.com/gettingstarted.html
Da Rossa
Well, let's try
Here come two pictures, the first one is about the DNS setup and the second is about the Domain setup.





I'll translate the parts in Portuguese.

in the first one, we have:
DNS information (on left)
on center:
Use: Our DNSs/Your own DNSs (or your host's ones)
the tip in small font at the left is: "select the second option";

Then there are the four identical fields over the apply/cancel buttons at the bottom.

The second picture:
from top to bottom:
Manage the domain
notasdeaula.org

contact information
DNSs (nameservers)

And the table has the following columns names, from left to right: hostname, address, register type (frame redirecting, url redirecting, and so on)


Thats it.


On the DirectAdmin side, where do I begin? I read the domain part of the guide you indicated, but the info is too general and beginning-like. I've already "set up" the domain, meaning I got it, but that's all. I already know about the domain categories and stuff. Then the tutorial moves to the most basic html editing we have.
What's next?? Sad
Bondings
I guess for the dns, it is the option seus proprios DNSs. In the first two boxes fill in ns1.frih.net and ns2.frih.net.

For DirectAdmin, there are 2 options.

First optin, go to' Domain Administration', 'Add another Domain', fill in your Domain name notasdeaula.org and click on create. This will create it as a separte/new domain and your current subdomain and the domain may show different things. You will have to copy the files from the subdomain public_html to the domain one. (it's located in domains/domain_name/public_html)

The second option is to go to 'Domain pointers' and add the domain as a pointer. You need to use the alias option. In this case the domain will show the same thing as your subdomain, but with a different url.

The second option is easier, but the first allows you way more control.
Da Rossa
I'm almost there, I got into the domain setup page and saw the empty public_html folder. RIght. But, does this mean that I'm gonna have to upload every file twice from now on? I asking because the way I upload is not ia a FTP regular program like Filezilla, but I use NVU/Kompozer's built-in upload feature.
Look



At FIlezilla, I spotted the two domain folders: the main one, darossa.frih.net, with all the files in it, and the new, notasdeaula.org, new and fresh, with no files.
mOrpheuS
Da Rossa wrote:
At FIlezilla, I spotted the two domain folders: the main one, darossa.frih.net, with all the files in it, and the new, notasdeaula.org, new and fresh, with no files.

If you want to completely migrate to notasdeaula.org (not using darossa.frih.net anymore) you should move all your files from darossa.frih.net/public_html to the notasdeaula.org/public_html - and change any broken links/references manually.
This way, you just need to upload your changes into notasdeaula.org/public_html from now on.

If you want your site to be accessible using both addresses, you should look into setting up your new domain as a "domain pointer". That is, setup notasdeaula.org as a pointer/alias to darossa.frih.net.
This way, you can continue making changes to darossa.frih.net/public_html just like before, and the same will reflect at notasdeaula.org.
Bondings
You could also redirect everything from your subdomain to your domain (once the domain is fully working). Then you would only need to upload the new code to your domain public_html folder.

If you place the following file (named .htaccess) directly in the public_html folder of your subdomain, every page will redirect to the same one, but with the domain name replacing the subdomain. (code not tested, but should work fine)
Code:
#Options +FollowSymlinks
RewriteEngine On
RewriteCond %{HTTP_HOST} ^darossa.frih.net$ [OR]
RewriteCond %{HTTP_HOST} ^www.darossa.frih.net$
RewriteRule (.*)$ http://www.notasdeaula.org/$1 [R=301,L]

By the way, the domain seems to be setup fine and I already get the default DirectAdmin page for it. So normally you should only upload the content to the domain (and if possible change all/most links to the domain name in the content). And then once tested you can try the redirect.
Da Rossa
Well, let me put calmly what I'm really seeking:

- Make the notasdeaula.org the main entry point for the site, so people can get used to it.
Since there are many people that still have http://www.darossa.frih.net/notas.html in their bookmarks, so I'd like to...
- Have http://www.darossa.frih.net/notas.html display a page with the message: "we've changed. Please visit notasdeaula.org. Click here to go there if you're not redirected automatically".
- www.notasdeaula.org, http://www.notasdeaula.org or http://notasdeaula.org should display exactly what you see at http://www.darossa.frih.net/notas.html, preserved the page title, which is variable according to the date. As you can see, the title contains the date in which the page was last updated. This is because when I first got the notasdeaula.org to work, "Mozilla Firefox" was the only thing displaying at the page title, the window title and the taskbar title. But the actual title is very relevant for the purpose of the site;
- Once notasdeaula.org is working as said above, then I'd like to, when the people click on one of the class links we have in the central table, which point to that particular class (class associated to a subject and date), the wintitle should be something like: Direito Civil - 21/03/09, as you can see at http://www.darossa.frih.net/dir/direito_civil2_21-03-09.html". This is because, even after we leave the home page to access a link for a particular class, the document title at the window top/taskbar remained "notasdeaula.org" or "mozilla Firefox".

Well, I know that appear to be kinda picky, but I know that's possible once things are set up. The main problem in here is about synchronizing the understanding of directAdmin's administration panel along with "Edom's", the company from which I bought the domain.


@ Morph: I got you! But about this:
Quote:
That is, setup notasdeaula.org as a pointer/alias to darossa.frih.net.

Can this be done by preventing the visitor's browser to change the url on address bar? As far as I know I can use the frame redirecting, but this would lead to the problem in topic #4 above.
@ Bondings: right now, which one is the subdomain and which one is the domain? I don't remember having set a particular subdomain.

Edit: And thanks so far! I'm getting there!
mOrpheuS
Da Rossa wrote:
@ Morph: I got you! But about this:
Quote:
That is, setup notasdeaula.org as a pointer/alias to darossa.frih.net.

Can this be done by preventing the visitor's browser to change the url on address bar? As far as I know I can use the frame redirecting, but this would lead to the problem in topic #4 above.
@ Bondings: right now, which one is the subdomain and which one is the domain? I don't remember having set a particular subdomain.

OK ... now it's more clear ...
Since you want the browser URL's to read notasdeaula.org/<something> - you need to move your existing files from darossa.frih.net/public_html to notasdeaula.org/public_html . (pointer/alias are not recommended)

Also, since you want user with old bookmarks to still be able to access your site - you need to setup 301 redirects (see Bondings' post above).
This method will also update your site indexing on search engines.
Bondings wrote:
Code:
#Options +FollowSymlinks
RewriteEngine On
RewriteCond %{HTTP_HOST} ^darossa.frih.net$ [OR]
RewriteCond %{HTTP_HOST} ^www.darossa.frih.net$
RewriteRule (.*)$ http://www.notasdeaula.org/$1 [R=301,L]

You need to put the code into darossa.frih.net/public_html/.htaccess
Then when a visitor tries to access darossa.frih.net/somepage.html - they get redircted to notasdeaula.org/somepage.html (the URL displayed in their browser also changes appropriately).
Da Rossa
Humm, I'm slow but I'm getting there.
I copied all files from the darossa.frih.net domain to notasdeaula.org, creating something like a mirror folder. Then, I deleted the file notasdeaula.org/index.html (which, under http://www.darossa.frih.net/notas.html, is the home/main page) and renamed the existing notas.html to index.html.

The result so far is: when someone goes to notasdeaula.org, they see the exact same page as http://www.darossa.frih.net/notas.html. From there, when they click any link to read a class note, they're redirected to, for example, http://www.darossa.frih.net/dir/direito_penal2_30-03-09.html.

As you can see, so far we don't have something like http://www.notasdeaula.org/direito_penal2_30-03-09.html which is what I want. And I, newbie, have all links with absolute paths, none relative... this will make things harder, right?

Moreover, the logic says that, in the current state, I'm gonna have to double upload each new file, one for darossa.frih.net and other to notasdeaula.org. Remember that the goal is to have the site display notasdeaula.org/<something> in the address bar, and have the people be redirected from darossa.frih.net/dir/<something: to notasdeaula.org/dir/<something>. What's the next move?

Edit:
Just to test I uploaded the .htaccess file to darossa.frih.net/public_html/ :
Code:
#Options +FollowSymlinks
RewriteEngine On
RewriteCond %{HTTP_HOST} ^darossa.frih.net$ [OR]
RewriteCond %{HTTP_HOST} ^www.darossa.frih.net$
RewriteRule (.*)$ http://www.notasdeaula.org/$1 [R=301,L]


But it returned a 404 error. I think it might be about the fact in bold above. What should I change in the .ht code above?
Bondings
Add a .htaccess file in the public_html of notasdeaula.org.
Code:
Redirect 301 notas.html http://www.notasdeaula.org/

This should redirect http://www.notasdeaula.org/notas.html to http://www.notasdeaula.org/

Then for the files in dir:
Code:
Redirect 301 /dir/l http://www.notasdeaula.org/


So if you add those 2 redirect to the file, it should work I hope.
Code:
#Options +FollowSymlinks
RewriteEngine On
Redirect 301 notas.html http://www.notasdeaula.org/
Redirect 301 /dir/ http://www.notasdeaula.org/
Da Rossa
I moving everything to the notasdeaula.org domain, leaving the http://www.darossa.frih.net domain for my old things. I'm currently under the "maintenance". I upload my files with Filezilla, right? and, under notasdeaula.org domain, I see, navigating the folders via ftp, that a public_html folder is always created under the main public_html folder. And no matter what; I delete the child folder (that contained only a cgi-bin file) and soon after it showed up again. Why?

About the .htaccess: Once it's done the moving (and changing the links from absolute to relative) I'll think about the .htaccess files.
Related topics
Buying a New Domain
i got a domain but...
new domain
Problem loging in with new domain
Creating a new phpbb forum on my new domain.
nameservers to new domain
NEW DOMAIN - Best Site on Science!!!
How to move SQL database to new domain?
my new domain, appraise it, come in bulk...
how can i visit my new domain
problem setting up new domain
Just Got New Laptop Cost AU$1200
how is my new domain
US$1 New Domain Promotions at Doteasy
Reply to topic    Frihost Forum Index -> Support and Web Hosting -> Web Hosting Support

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2011 Frihost, forums powered by phpBB.