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?
-
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)
Amr ElGarhy : how to create these virtual hosts?Ivan : 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. -
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.
Amr ElGarhy : So the problem is in the websites its self, not in something i can manage in the hosting?Ivan : Probably. I didn't notice you're running IIS, so in that case I can't help you (I thought you were using Apache)From Ivan
0 comments:
Post a Comment