Pawan_Agarwal Posted June 24, 2013 Share Posted June 24, 2013 I want to ask you some thing, I hope you can help me, I have uploaded my website as activebiz.in, you may have a look.. Suppose I have 3 website on my web-space, 1] activebiz.in 2] abc123.in 3] abc2345.in Please understand that activebiz, abc123 and abc2345 are 3 folders that have been placed in www folder in webspace. how to place the website files of all the 3 websites so that when I access [1], it must access files belonging to activebiz folder in www folder only. I just type activebiz.in in URL and it gets redirected automatically to /www/activebiz/index.php....... if I want to access abc123.in, it must access files belonging to abc123 folder in www folder only. I just type abc123.in in URL and it gets redirected automatically to /www/abc123/index.php....... if I want to access abc2345.in, it must access files belonging to abc2345 folder in www folder only. I just type abc2345.in in URL and it gets redirected automatically to /www/abc2345/index.php....... Please tell the solution soon............ Warm Regards Quote Link to comment https://forums.phpfreaks.com/topic/279517-how-to-access-website-on-web-space/ Share on other sites More sharing options...
txmedic03 Posted June 26, 2013 Share Posted June 26, 2013 Create a .htaccess file containing: RewriteEngine On RewriteCond %{HTTP_HOST} ([^\.])\.in$ [NC] RewriteRule ^\/(.*)$ /www/%1/$1 [R=301,L] Assuming that /www is actually in the root of the file system and not in /home/{username}/www like I imagine it actually is. Quote Link to comment https://forums.phpfreaks.com/topic/279517-how-to-access-website-on-web-space/#findComment-1438003 Share on other sites More sharing options...
trq Posted June 27, 2013 Share Posted June 27, 2013 I have provided you with links explaining this already. Do not double post. Quote Link to comment https://forums.phpfreaks.com/topic/279517-how-to-access-website-on-web-space/#findComment-1438125 Share on other sites More sharing options...
Pawan_Agarwal Posted June 28, 2013 Author Share Posted June 28, 2013 Thanks txmedic03 for telling the solution. Please elaborate more on this, what must be the complete name of ".htaccess" file ?? And the home directory for www folder is /home/[user name]/www/ ,please elaborate more on what you have explained in last post I have created user.htaccess file and placed it in www folder, now what else ?? Quote Link to comment https://forums.phpfreaks.com/topic/279517-how-to-access-website-on-web-space/#findComment-1438388 Share on other sites More sharing options...
Pawan_Agarwal Posted July 1, 2013 Author Share Posted July 1, 2013 I am still not getting the answer .......... Quote Link to comment https://forums.phpfreaks.com/topic/279517-how-to-access-website-on-web-space/#findComment-1438817 Share on other sites More sharing options...
trq Posted July 1, 2013 Share Posted July 1, 2013 Then do some research. You don't learn by asking questions alone. I'd start by asking your host. If its some cheap hosting, it's not likely they are going to support running multiple sites. Quote Link to comment https://forums.phpfreaks.com/topic/279517-how-to-access-website-on-web-space/#findComment-1438881 Share on other sites More sharing options...
Pawan_Agarwal Posted July 18, 2013 Author Share Posted July 18, 2013 who you call cheap hosting, you idiot !!!!! Every domain has a different procedure to host the website with multiple domains........ Quote Link to comment https://forums.phpfreaks.com/topic/279517-how-to-access-website-on-web-space/#findComment-1441256 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.