LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 01-20-2009, 09:12 AM   #1
apache2
LQ Newbie
 
Registered: Nov 2008
Posts: 23

Rep: Reputation: 15
How can I forward a domain to another URL?


I'm currently working on this site:

http://webs.ath.cx:8000/users/flyertrade/index.php

I want to buy a domain for it to make it easier on others.
1) How can I point a domain to this site, even though it has subfolders?
2) Which company should I register with?
3) Can the :8000 be avoided in the domain?

Thanks
 
Old 01-20-2009, 09:59 AM   #2
phantom_cyph
Senior Member
 
Registered: Feb 2007
Location: The Tropics
Distribution: Slackware & Derivatives
Posts: 2,472
Blog Entries: 1

Rep: Reputation: 128Reputation: 128
You need to look into it a little more. When you register a domain, you point to where the site is. If you do it correctly, you aren't "redirecting" anything persay. You'll type in the domain and it will go to where ever you said your site was. You won't see the url you posted above anywhere.

I like godaddy myself.
 
Old 01-20-2009, 10:20 AM   #3
sir-lancealot
Member
 
Registered: Aug 2007
Posts: 346

Rep: Reputation: 31
You could do a simple thing if you register that domain. You could register and just create a basic index home page with a meta refresh that would re-direct you to that other site. You could also use some php functions (if the server supported it) to include the other content, but that is going ahead.

The other question about the port (:8000), depends on your ISP. Your webserver is listening on port 8000 (usually when ISP's block 80), so if your ISP allows it, you can just change your webserver to listen on the default port 80, restart and no longer need :8000.

Regards.
Lr
 
Old 01-20-2009, 10:20 AM   #4
rweaver
Senior Member
 
Registered: Dec 2008
Location: Louisville, OH
Distribution: Debian, CentOS, Slackware, RHEL, Gentoo
Posts: 1,833

Rep: Reputation: 167Reputation: 167
Quote:
Originally Posted by apache2 View Post
I'm currently working on this site:

http://webs.ath.cx:8000/users/flyertrade/index.php

I want to buy a domain for it to make it easier on others.
1) How can I point a domain to this site, even though it has sub folders?
2) Which company should I register with?
3) Can the :8000 be avoided in the domain?

Thanks
1) You would buy a domain at one of the registrars
2) GoDaddy works well for me
3) That depends. If you pay to have domain hosting somewhere (godaddy, cybrhost, aplus, or whatever) and move your site there, then sure, no 8000, no sub directories.

What it looks like you're doing presently is hosting the domain on your machine or under your isps personal web space where the web server is running on port 8000. You could redirect from your domain page to your webs.ath.cx:8000/users/flyertrade/index.php site, but that url will still be visible in the end.
 
Old 01-21-2009, 01:44 AM   #5
datopdog
Member
 
Registered: Feb 2008
Location: JHB South Africa
Distribution: Centos, Kubuntu, Cross LFS, OpenSolaris
Posts: 806

Rep: Reputation: 41
If you have another server with apache on it you can use mod_proxy to mask the port 8000
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
URL rewriting for sub-domain scls19fr Linux - Server 6 10-05-2008 11:56 PM
.htaccess domain / url forwarding max_tcs Linux - Software 1 12-17-2007 10:40 AM
DNSMASQ: Forward queries with no domain senorsnor Linux - Networking 1 10-30-2006 04:57 AM
What do two forward slashes in a url mean? (not the inital 2) johnMG Linux - Networking 2 06-28-2005 10:27 AM
Apache directory preceding domain in url MasterC Linux - Networking 9 03-14-2005 06:32 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 11:55 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration