hellkvist.org Forum Index hellkvist.org
Discussions about the free software on hellkvist.org
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

subdomain

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    hellkvist.org Forum Index -> Peffisaur
View previous topic :: View next topic  
Author Message
emiljansson



Joined: 03 Sep 2004
Posts: 2

PostPosted: Mon Sep 20, 2004 11:34 pm    Post subject: subdomain Reply with quote

Any one experiences with .htaccess file in a subdomain, how should i write the file then? it is in there own kind of root...

Best-
E
Back to top
View user's profile Send private message
Peffis
Site Admin


Joined: 09 Sep 2003
Posts: 324
Location: Sweden

PostPosted: Tue Sep 21, 2004 10:47 pm    Post subject: Reply with quote

How do you mean?

If you access Peffisaur at http://subdomain.domain.com it's still just the same .htaccess I think. I think Apache translates it so that it looks like it's the root of that domain.

I haven't tried this myself but if it doesn't then I think it would be just like having it in a subdirectory. If an access to http://subdomain.domain.com in reality means something like http://domain.com/subdomain then you would need to put /subdomain as "root" in the .htaccess and the rewrite rule would be /s/blablabla /subdomain/home.php?id=

and so on...

But my guess is that you don't have to do anything special at all. Where I host peffis.com it acts as a "subdomain" to hellkvist.org. An access to peffis.com is equivalent to hellkvist.org/peffis....but I have no change to .htaccess. Apache changes it all to look like the files are in the "root".
Back to top
View user's profile Send private message Visit poster's website
dsas



Joined: 11 Jun 2005
Posts: 1
Location: UK

PostPosted: Sat Jun 11, 2005 5:27 pm    Post subject: Reply with quote

just to confirm it is the same .htaccess, however if you try to access that subdomain as domain.com/peffis rather than peffis.domain.com, you'll encounter errors.

I don't know much about .htaccess to suggest a way so both will work, I just use one and stick to it...
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    hellkvist.org Forum Index -> Peffisaur All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group