|
|
#10 (permalink) |
|
Race Surpass
Super #1
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]
Code:
Redirect permanent /mysstiewolfestar http://www.mysstiewolfestar.com
__________________
|
|
|
|
|
|
#11 (permalink) | |
|
Surpass Fan
On a golden path...
Joined in Mar 2006
Hosted on SH100
458 posts
Gave thanks: 75
Thanked 17 times
|
Quote:
__________________
SH100 , SH131 & SH124 |
|
|
|
|
|
|
#12 (permalink) |
|
Race Surpass
Super #1
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.
__________________
|
|
|
|
|
|
#14 (permalink) |
|
Race Surpass
Super #1
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.
__________________
|
|
|
|
|
|
#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 |
|
|
|
|
|
#16 (permalink) |
|
Race Surpass
Super #1
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.
__________________
|
|
|
|
|
|
#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! ![]() |
|
|
|