|
|
|
|
![]() ![]() |
![]() ![]() ![]() ![]() ![]() ![]() ![]() |
Post
#1
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 |
![]() Group: Members
Posts: 7 Joined: 1-July 06 Member No.: 25,911 |
Post
#2
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.
|
![]() ![]() ![]() ![]() ![]() ![]() ![]() |
Post
#3
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? |
![]() Group: Members
Posts: 7 Joined: 1-July 06 Member No.: 25,911 |
Post
#4
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. |
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: [MODERATOR]
Posts: 1,873 Joined: 11-July 04 From: under the stars Member No.: 76 myCENT:88.66 |
|
![]() ![]() |
Similar Topics
| Topic Title | Replies | Topic Starter | Views | Last Action | |||
|---|---|---|---|---|---|---|---|
![]() |
4 | Echo_of_thunder | 220 | 11th November 2008 - 04:05 PM Last post by: Echo_of_thunder |
|||
![]() |
12 | dragonfang00 | 428 | 16th December 2008 - 05:57 PM Last post by: miladinoski |
|||
![]() |
1 | zip_mc | 330 | 31st July 2004 - 03:16 PM Last post by: OpaQue |
|||
![]() |
3 | t3h_m0nst3r | 331 | 29th July 2004 - 09:25 PM Last post by: t3h_m0nst3r |
|||
![]() |
1 | t3h_m0nst3r | 315 | 30th July 2004 - 03:33 AM Last post by: Thunder |
|||
![]() |
1 | Lal | 325 | 4th August 2004 - 04:43 AM Last post by: OpaQue |
|||
![]() |
8 | bk2070 | 772 | 18th February 2008 - 05:54 PM Last post by: bk2070 |
|||
![]() |
3 | SSS | 355 | 4th August 2004 - 04:58 AM Last post by: OpaQue |
|||
![]() |
3 | icleric | 393 | 4th August 2004 - 07:50 AM Last post by: OpaQue |
|||
![]() |
1 | itasor | 428 | 4th August 2004 - 08:08 AM Last post by: OpaQue |
|||
![]() |
1 | khaz | 386 | 4th August 2004 - 07:17 AM Last post by: OpaQue |
|||
![]() |
1 | dask | 297 | 4th August 2004 - 07:39 AM Last post by: OpaQue |
|||
![]() |
2 | itasor | 320 | 6th August 2004 - 05:24 PM Last post by: OpaQue |
|||
![]() |
2 | dask | 542 | 7th August 2004 - 05:42 AM Last post by: chinfo |
|||
![]() |
1 | Donegal | 280 | 9th August 2004 - 08:52 AM Last post by: OpaQue |
|||
|
Open Discussion | Time is now: 8th January 2009 - 08:24 PM |