Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I have a shared hosting from godaddy and running there some website:

igurr.com community server website located in the root of the server.

actocity.com wordpress blog located inside a folder called actocity.

amrelgarhy.com wordpress blog located inside a folder called amrelgarhy.

and some others.

My problem is when you go to home page for any website not in the root, such as amrelgarhy.com i see the url like that: http://amrelgarhy.com/amrelgarhy/

How to arrange my websites folders on the server so they all appear as they are on the root of the server?

share|improve this question
add comment

2 Answers 2

up vote 1 down vote accepted

I've always done this by creating virtual hosts for each domain and pointing them to a new folder in a directory such as c:\webroot\sitename.com\ This way, you can prevent anyone who tries just your IP Address from hitting any websites, or you can have better control and keep Google from indexing you twice (it can happen)

share|improve this answer
    
how to create these virtual hosts? –  Amr ElGarhy May 17 '09 at 17:30
    
I don't think you can edit your VHosts on a shared account. There's probably somewhere in GoDaddy's management interface a way for you to specify how and where is each domain hosted. –  Ivan May 17 '09 at 19:26
add comment

Ah, I think I know what's happening. You have installed a CMS on each domain, and you've installed it on a subdirectory in each domain (Community Server, WordPress), that's what they are shown like that.

So, you'd need to modify the .htaccess file in each domain and edit the RewriteRule lines you see there. If you post the content of that file, maybe I can help you get it working.

share|improve this answer
    
So the problem is in the websites its self, not in something i can manage in the hosting? –  Amr ElGarhy May 17 '09 at 21:40
    
Probably. I didn't notice you're running IIS, so in that case I can't help you (I thought you were using Apache) –  Ivan May 17 '09 at 21:46
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.