icon Get the most out of Surmunity, read our tips here! Need an interesting blog to read? You've got to read the Surpass Blog! | Welcome! Please register to access all of our features.

» Surpass Web Hosting Forums » Choosing Surpass » Signed Up? » Add-On Domain Tutorial

Signed Up? If you're new with a question, ask here!

Reply
 
LinkBack Thread Tools Search this Thread
Old August 15th, 2007, 8:25 PM   #10 (permalink)
Race Surpass
Super #1
 
MarkRH's Avatar
 
Joined in Jul 2006
Lives in Oklahoma City, OK
Hosted on sh102
1,222 posts
Gave thanks: 18
Thanked 86 times
As a real world example, mysstiewolfestar.com is an add-on domain. If cpanel does its thing right, it will add the following to the .htaccess in /public_html/mysstiewolfestar/
Code:
RewriteEngine on
RewriteCond %{HTTP_HOST} ^mysstiewolfestar.markheadrick.com$ [OR]
RewriteCond %{HTTP_HOST} ^www.mysstiewolfestar.markheadrick.com$
RewriteRule ^(.*)$ http://www.mysstiewolfestar.com/$1 [R=301,L]
I then added the following to it:
Code:
Redirect permanent /mysstiewolfestar http://www.mysstiewolfestar.com
This prevents all methods of accessing it other than mysstiewolfestar.com
MarkRH is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old August 16th, 2007, 10:48 AM   #11 (permalink)
Surpass Fan
On a golden path...
 
Joined in Mar 2006
Hosted on SH100
458 posts
Gave thanks: 75
Thanked 17 times
Quote:
Originally Posted by MarkRH View Post
As a real world example, mysstiewolfestar.com is an add-on domain. If cpanel does its thing right, it will add the following to the .htaccess in /public_html/mysstiewolfestar/
Code:
RewriteEngine on
RewriteCond %{HTTP_HOST} ^mysstiewolfestar.markheadrick.com$ [OR]
RewriteCond %{HTTP_HOST} ^www.mysstiewolfestar.markheadrick.com$
RewriteRule ^(.*)$ http://www.mysstiewolfestar.com/$1 [R=301,L]
That's odd, because I have an add-on domain and I don't have the above in my .htaccess in the add-on domain folder. But it works fine. Could it be that they put it in a different .htaccess file somewhere higher on the server? I am on a shared account.
__________________
SH100 , SH131 & SH124
Sentinel is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old August 16th, 2007, 11:45 AM   #12 (permalink)
Race Surpass
Super #1
 
MarkRH's Avatar
 
Joined in Jul 2006
Lives in Oklahoma City, OK
Hosted on sh102
1,222 posts
Gave thanks: 18
Thanked 86 times
It's possible that it may have been placed into the main http.conf of the server which is probably a more appropriate place for it anyway to keep the user from accidentally deleting it LOL.

If I take it out of mine, then mysstiewolfestar.markheadrick.com is not redirected to the proper domain.
MarkRH is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old August 16th, 2007, 1:17 PM   #13 (permalink)
Surpass Fan
On a golden path...
 
Joined in Mar 2006
Hosted on SH100
458 posts
Gave thanks: 75
Thanked 17 times
Are you on shared or reseller or dedicated?
__________________
SH100 , SH131 & SH124
Sentinel is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old August 16th, 2007, 1:57 PM   #14 (permalink)
Race Surpass
Super #1
 
MarkRH's Avatar
 
Joined in Jul 2006
Lives in Oklahoma City, OK
Hosted on sh102
1,222 posts
Gave thanks: 18
Thanked 86 times
As my signature shows, I'm on SH102, a shared server.

I have:
1 main domain with 2 sub-domains (gallery and blog)
1 parked-domain associated with main domain (www.markrh.com)
3 add-on domains with the pelicar.info domain having 2 sub-domains as well.
MarkRH is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old August 16th, 2007, 2:14 PM   #15 (permalink)
Surpass Fan
On a golden path...
 
Joined in Mar 2006
Hosted on SH100
458 posts
Gave thanks: 75
Thanked 17 times
DOH! Sorry, I should have seen that.
Then I have to ask ... why do you have your .htaccess set up with the rewrite rules in your own directory and I don't? Not that I want to. I'm just curious. Did you do it yourself and I used cPanel and that's why?
__________________
SH100 , SH131 & SH124
Sentinel is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old August 16th, 2007, 3:41 PM   #16 (permalink)
Race Surpass
Super #1
 
MarkRH's Avatar
 
Joined in Jul 2006
Lives in Oklahoma City, OK
Hosted on sh102
1,222 posts
Gave thanks: 18
Thanked 86 times
Whenever I created the add-on domains like a year ago within cPanel, it automagically put them in there. All of the .htaccess files in my add-on domain folders have corresponding entries like that.

Maybe cPanel configurations before/after that added those settings to main http.conf instead. That would be something more for Surpass to answer.

Just like slightly different versions of PHP being installed, not every server is configured exactly, much to the shagrin of support techs I imagine at times.
MarkRH is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old August 28th, 2007, 11:42 PM   #17 (permalink)
Registered User
Fresh Surpasser
 
Joined in Aug 2007
7 posts
Gave thanks: 0
Thanked 0 times
I'm confused.

New Domain Name: (I figure it should be my new domain name, http://sadstoriesofthedeathofkings.com)
Username/directory/subdomain Name:
Password: (duh!)


It's the "Username/directory/subdomain Name:" part that I'm confused about! I tried "sadstoriesofthedeathofkings", thinking that that would count as the subdomain, but no luck. Advice?

If it makes a difference, I only just changed the nameserver info. Thank you so much for having this tutorial!
halfbloodprince is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old August 29th, 2007, 12:02 AM   #18 (permalink)
Registered User
Fresh Surpasser
 
Joined in Aug 2007
7 posts
Gave thanks: 0
Thanked 0 times
Ack! Nevermind, it worked
halfbloodprince is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On