IPB

Welcome Guest ( Log In | Register )



Tags
This content has not been tagged yet
 
Closed TopicStart new topic

2nd Domain Name


Shengeta
no avatar
Advanced Member
*******
Group: Members
Posts: 122
Joined: 5-August 05
Member No.: 10,317
myCENT:ZERO



Post #1 post Jul 22 2006, 10:00 PM
This is a question that can be for Trap17 hosted sites as well, but since I'm not a hosted member of Trap17 anymore and now a computinghost member I will ask it here.


I have a domain name set to the name servers ns1.computinghost.com and the ns2 one, this is my 1st Domain name so everything on my site is like mysite.com with all the subdirectories etc.

Well I bought 2 new Domain names and pointed them to the same name servers and I've tried tons of things but I can't them to work the way I want them to work.


Replacing my real domain names will be:
original domain name: mysite.com
2nd domain name: mysite2.com
3rd domain name: mysite3.com


I want something like this: mysite.com/forums = mysite2.com. I at least got mysite2.com to redirect to mysite.com/forums but I want the forums to say mysite2.com instead of mysite.com/forums.

Is there a way to get everything to work like this in the cpanel? Do I HAVE to use the harder method: mod_rewrite in a .htaccess file in my root folder? If so what is the code I would have to write?

Once I can do this I will do the same with mysite3.com to another area of my site.


EDIT: Nevermind i fixed it. Here is what I did. I parked the domain, mysite2. Mysite2 would be the same as mysite so I had to change the .htaccessfile in the www/ directory so it includes:

CODE

RewriteEngine On
Options +FollowSymlinks
RewriteBase /
RewriteCond %{HTTP_HOST} ^www.domain.*
RewriteCond %{REQUEST_URI} !/subdir/
RewriteRule ^(.*)$ /subdir/$1
RewriteCond %{HTTP_HOST} ^domain.*
RewriteCond %{REQUEST_URI} !/subdir/
RewriteRule ^(.*)$ /subdir/$1


Repacing the word "domain" saying "mysite2" and the word "subdir" with forums. Then I went to the global conf in the forums to make sure all links are written as mysite2.com. Using mysite.com/forums can still work though.

This post has been edited by Shengeta: Jul 23 2006, 12:11 AM
Go to the top of the page
+Quote Post
FallenSage
no avatar
Newbie
*
Group: Members
Posts: 7
Joined: 1-July 06
Member No.: 25,911



Post #2 post Jul 22 2006, 10:40 PM
I don't have any experience with this but I think I understand you need to into your cpanel and click on addon domains. There is an option to set up a redirection there.
Go to the top of the page
+Quote Post
Shengeta
no avatar
Advanced Member
*******
Group: Members
Posts: 122
Joined: 5-August 05
Member No.: 10,317
myCENT:ZERO



Post #3 post Jul 22 2006, 11:28 PM
No that isn't it, I already have that redirection set up.

People type in mysite2.com and it goes to mysite.com/forums, but the URL bar says mysite.com/forums instead of mysite2.com. Why buy spend money on a domain name when it isn't even displayed?
Go to the top of the page
+Quote Post
FallenSage
no avatar
Newbie
*
Group: Members
Posts: 7
Joined: 1-July 06
Member No.: 25,911



Post #4 post Jul 23 2006, 12:27 AM
Oh I understand now. I've seen this problem somewhere else and don't know how to do that sry. sad.gif
Go to the top of the page
+Quote Post
serverph
no avatar
Ancient Enigma
**************
Group: [MODERATOR]
Posts: 1,873
Joined: 11-July 04
From: under the stars
Member No.: 76
myCENT:88.66



Post #5 post Jul 23 2006, 06:33 PM
problem resolved as per topic author's EDIT remarks. thread closed.
Go to the top of the page
+Quote Post

Closed TopicStart new topic

Collapse

> Similar Topics

    Topic Title Replies Topic Starter Views Last Action
No New Posts   4 Echo_of_thunder 220 11th November 2008 - 04:05 PM
Last post by: Echo_of_thunder
No New Posts   12 dragonfang00 428 16th December 2008 - 05:57 PM
Last post by: miladinoski
No New Posts   1 zip_mc 330 31st July 2004 - 03:16 PM
Last post by: OpaQue
No New Posts   3 t3h_m0nst3r 331 29th July 2004 - 09:25 PM
Last post by: t3h_m0nst3r
No New Posts   1 t3h_m0nst3r 315 30th July 2004 - 03:33 AM
Last post by: Thunder
No New Posts   1 Lal 325 4th August 2004 - 04:43 AM
Last post by: OpaQue
No New Posts   8 bk2070 772 18th February 2008 - 05:54 PM
Last post by: bk2070
No New Posts   3 SSS 355 4th August 2004 - 04:58 AM
Last post by: OpaQue
No New Posts   3 icleric 393 4th August 2004 - 07:50 AM
Last post by: OpaQue
No New Posts   1 itasor 428 4th August 2004 - 08:08 AM
Last post by: OpaQue
No New Posts   1 khaz 386 4th August 2004 - 07:17 AM
Last post by: OpaQue
No New Posts   1 dask 297 4th August 2004 - 07:39 AM
Last post by: OpaQue
No New Posts   2 itasor 320 6th August 2004 - 05:24 PM
Last post by: OpaQue
No New Posts   2 dask 542 7th August 2004 - 05:42 AM
Last post by: chinfo
No New Posts   1 Donegal 280 9th August 2004 - 08:52 AM
Last post by: OpaQue


 



RSS Open Discussion Time is now: 8th January 2009 - 08:24 PM