Printer Friendly Version Print this thread
Email this thread to a friend eMail this thread to a friend
Featured Web Site Template

Hundreds More at Free Site Templates.com!

Web Site Partners
Sponsored Links
Jet City Software
 
Whos Here ?
Reflects user activity within the last 5 minutes
Moderator(s): Dinkar, Logan
Member Message

mj1256
Joined: Jun 05, 2006
# Posts: 918

View the profile for mj1256 Send mj1256 a private message

Posted: 2008-Aug-10 00:54
Edit Message Delete Message Reply to this message

Has any one had or know of any domain aliasing issues using Godaddy hosting.
I've never use godaddy and needed to work on a site on godaddy.

They told me that all of the domains in an account go into and share one folder.
Thus, they have one htaccess file.

Can anyone fill me in on this.



g1smd
Staff
Joined: Jul 28, 2002
# Posts: 10438

View the profile for g1smd Send g1smd a private message

Posted: 2008-Aug-10 09:55
Edit Message Delete Message Reply to this message

It is easy to use .htaccess for domain canonicalisation, or for rewriting (that's rewriting and not redirecting) different domain requests to different server folders.

[ Message was edited by: g1smd 08/10/2008 05:00 pm ]





beth_lk
Staff
Joined: Jun 23, 2004
# Posts: 1247

View the profile for beth_lk Send beth_lk a private message

Posted: 2008-Aug-10 23:02
Edit Message Delete Message Reply to this message

I have one client who hosts and domain is hosted by godaddy - where as I am not super fond of them and think there are better options out there, I have not had any issues



mj1256
Joined: Jun 05, 2006
# Posts: 918

View the profile for mj1256 Send mj1256 a private message

Posted: 2008-Aug-11 00:14
Edit Message Delete Message Reply to this message

domain canonicalisation works


nothing else does



SportsGuy
Staff
Joined: Aug 30, 2002
# Posts: 3600

View the profile for SportsGuy Send SportsGuy a private message

Posted: 2008-Aug-11 01:06
Edit Message Delete Message Reply to this message

OK, first off, GD's customer service is lacking. There is no other way to say this. I know, because I've been a client for almost 4 years now, and I've had everything with them from a hosting solution for a website, to the current dedicated server I run today.

They told me that all of the domains in an account go into and share one folder.

This might be true in terms of all your domains are held in one account, so if you want to make DNS changes, for example, the domains appear in one folder in their interface.

Thus, they have one htaccess file.

To my knowledge, the only way to be using an htaccess file via them is by having a dedicated Linux server - that's why I ended up where I am today - it was important for me to be able to set up htaccess files on any domain I set up.

So, if this client has a dedicated server with GD, then simply set up each domain as normal, remove the index.html from the root (optional), and slip a dedicated htaccess into the root of each domain. Set a 301 redirect in each unique htaccess to point the user to the desired live domain.

Job done.



g1smd
Staff
Joined: Jul 28, 2002
# Posts: 10438

View the profile for g1smd Send g1smd a private message

Posted: 2008-Aug-11 01:51
Edit Message Delete Message Reply to this message

I point all of the domains at the one folder and so the one .htaccess file operates for all of the domains, redirecting for all but one domain. It matters not, that the new HTTP request is coming back to the same folder, on the same physical server, because this time the correct domain name is being requested and the content will now be served.



mj1256
Joined: Jun 05, 2006
# Posts: 918

View the profile for mj1256 Send mj1256 a private message

Posted: 2008-Aug-11 04:08
Edit Message Delete Message Reply to this message

but that is only one piece of what I do in the htaccess. I build sites with joomla, drupal, wordpress, etc,

They each have SEO/SEF moduals and components that require entries in the htaccess. also, each site needs its own htaccess file due to this.

this is the part I cannot get to work.

Its also complicated as they cache the file and it only updates every few hours. So I can never see my edits in real time.

to try to get around the same folder issue, I changed the / on the set up to /folder1, /folder2.

now I can install sites in their own folders and each should theoritically have their own .htaccess file.

now, are these seen as subdirectories of each domain because of the aliasing and sharing?

if that is the case, then I need
rewritebase /
correct?

or
rewritebase /folder1

and then, as godaddy processes the php files before the .htaccess, it was recommended in the GD help files that I have to direct the site on which version of the mysql db to use, so I added this to tell it to use php5 for php5 files and 4 for 4 blaa blaa.
AddHandler x-httpd-php5 .php
AddHandler x-httpd-php .php4

but why does it process php files first?

shouldn't .htaccess come first.

why can't they just play like any normal linux server



mj1256
Joined: Jun 05, 2006
# Posts: 918

View the profile for mj1256 Send mj1256 a private message

Posted: 2008-Aug-11 22:30
Edit Message Delete Message Reply to this message

OK, just in case anyone was following along

The synax in the godaddy FAQ's and help files is wrong.

the recommended


Code: [copy]





its actually


Code: [copy]





because of me they need to change the FAQ and Help files and said they would (yeah...right!). It took me hours to convince them they had an error.

I win, they lose :)




g1smd
Staff
Joined: Jul 28, 2002
# Posts: 10438

View the profile for g1smd Send g1smd a private message

Posted: 2008-Aug-12 00:50
Edit Message Delete Message Reply to this message

Even that is wrong. Accepted convention is to use:

RewriteCond and HTTP_HOST and RewriteRule.

On the last line I would replace the NC with L as well.






mj1256
Joined: Jun 05, 2006
# Posts: 918

View the profile for mj1256 Send mj1256 a private message

Posted: 2008-Aug-12 01:15
Edit Message Delete Message Reply to this message

I know, I tried several different versions,including the one you pointed out, none worked

how can they just create their own way of doing it...argh!



SportsGuy
Staff
Joined: Aug 30, 2002
# Posts: 3600

View the profile for SportsGuy Send SportsGuy a private message

Posted: 2008-Aug-12 01:25
Edit Message Delete Message Reply to this message

...they do it that way to try to guide folks into getting more expensive options. Frustrate you to no end, then suggest an upsell where they manage the work for you...for another $200/month.

It's part of the reason why I have a dedicated server - and trust me, they have NO customer support. Their CS team is basically a sales filtering team.



mj1256
Joined: Jun 05, 2006
# Posts: 918

View the profile for mj1256 Send mj1256 a private message

Posted: 2008-Aug-12 15:28
Edit Message Delete Message Reply to this message

absolutely correct, I also work with dedicted servers whenever possible.

godaddy throttles upstream and downstream bandwidth
caches the mysql
caches the .htaccess file
there are file owner ship issues
uses aliasing and redirects
websites share the same folder, imagine the file conflicts

blaa blaa

nightmare



g1smd
Staff
Joined: Jul 28, 2002
# Posts: 10438

View the profile for g1smd Send g1smd a private message

Posted: 2008-Aug-12 23:39
Edit Message Delete Message Reply to this message

They have also been known to block Googlebot from spidering all their client websites, from what I remember a few years back.


You are not permitted to post messages in this forum or topic, because of one or more of the following reasons:
  1. You have not yet logged in, or registered properly as a member
  2. You are a member, but no longer have posting rights.
  3. This is a private forum, for which you do not have permissions.

If you are a recent member, it's possible that you simply have not yet confirmed your account. Please check your email for a message entitled 'JimWorld Forums: Confirm Your Account' and follow the instructions contained within.

If you cannot find this message, click here to Re-Send it.

If you are still experiencing problem, please read the Login Assistance Article for some advice on what may be causing your login not to work properly.

Switch to Advanced Editor and ... Create a New Topic or Reply to this Thread

New posts Forum is locked
© 1995  ·  iWeb, Inc  ·  DBA JimWorld Productions