Guest Posted April 24, 2004 Posted April 24, 2004 Sorry, I am very very new to php thing. I read instruction on php pages, but not everything is clear to me. Someone told me to use .htaccess to make home page to osCommerce creased home page. I cannot understand how I am supposed to do that. Can someone show me with code? Another problem I have is.. my domain name is ighawaii.com. I added "sub-domain" to this server called naturallypet.com. I want people to type naturallypet.com and go to the osCommerc created home page, and have separate homepage for ighawaii.com if possible. If not, I would like to have both domain name point to home page. How can I do this? Mahalo
Aalst Posted April 24, 2004 Posted April 24, 2004 to make home page to osCommerce creased home page. I do not understand what you want to do here. Can you please try to explain it agian. Another problem I have is.. my domain name is ighawaii.com. I added "sub-domain" to this server called naturallypet.com. I want people to type naturallypet.com and go to the osCommerc created home page, and have separate homepage for ighawaii.com if possible. If not, I would like to have both domain name point to home page. How can I do this? naturallypet.com is a domain not a sub-domain. a subdomain would be: naturallypet.ighawaii.com in this example naturallypet is the sub-domain of the ighawaii.com domain. If you have a second domain called naturallypet.com and you want to direct it to a directory on your ighawaii.com like ighawaii.com/naturallypet/ you can do this. You can do it through your registar and/or your web-host this would be called redirecting any one or both of them should be able to do this for you. The other is a multi-hosted domain which you would have to do with your web-host. Basicly, if your main domain is domain1.com, and you need to multi-host domain2.com, usually you will need to create a subdomain "domain2" from the web-hosts control panel. When you create a subdomain, it will automatically create a folder in your public_html, of the same name as of subdomain, e.g. public_html/domain2/ for the domain2.domain1.com. You then upload files for domain2.com in public_html/domain2/ which will work as an independent website accessible as http://domain2.com and/or http://www.domain2.com You will have to contact your web-host to make sure they support multi-hosted domains and then how they handle it. I hope that helps... -Aalst
Guest Posted April 27, 2004 Posted April 27, 2004 in this example naturallypet is the sub-domain of the ighawaii.com domain. If you have a second domain called naturallypet.com and you want to direct it to a directory on your ighawaii.com like ighawaii.com/naturallypet/ you can do this. You can do it through your registar and/or your web-host this would be called redirecting any one or both of them should be able to do this for you. This is what I have. So, how do I configure.htaccess so that people type naturlllypet.com, it goes to ighawaii.com/oscommerce/catalog.default.php? I've look at .htaccess file, but I am not sure how I supposed to write it.
Aalst Posted April 28, 2004 Posted April 28, 2004 This is what I have. So, how do I configure.htaccess so that people type naturlllypet.com, it goes to ighawaii.com/oscommerce/catalog.default.php? I've look at .htaccess file, but I am not sure how I supposed to write it. .htaccess file is a security file for restricting access to files and directories. I told you how you can do this, and it has nothing to do with /htaccess. naturallypet.com is a DOMAIN and it has to be registared with the internic through a registrar. Your registrar should have a service that can do this redicrection for you. Also if you have a 3rd party host they most likely also have a service to help you with the redirection. If it is self hosted you can talk to the webmaster/administrator about this.
Aziz Posted April 28, 2004 Posted April 28, 2004 dont know whats going on but let me add this: to redirect it is easier to make an index.php file in the place u want to redirect with the following too line: <? $link = "Location: "; //change the next line to the directing to address $link .= "http://www.yahoo.com"; header($link); exit(); ?> --------------------------------
Guest Posted April 29, 2004 Posted April 29, 2004 Aziz, In what file do I put this codein? Aalst, I already have natruallypet folder and working naturallypet.com. When someone type naturallypet.com, it is directing to "index" file within naturallypet folder. When I created oscommerce store, I put oscommerce as catalog folder in the configuration file. So, do I put the whole oscommerce folder in naturallypet folder? Do I have to change the catalog folder's name to naturallypet, and put catalog, admin, extra folder inside without oscommerce folder?
Aalst Posted April 29, 2004 Posted April 29, 2004 I already have natruallypet folder and working naturallypet.com. When someone type naturallypet.com, it is directing to "index" file within naturallypet folder. When I created oscommerce store, I put oscommerce as catalog folder in the configuration file. So, do I put the whole oscommerce folder in naturallypet folder? Do I have to change the catalog folder's name to naturallypet, and put catalog, admin, extra folder inside without oscommerce folder? Okay so you have a working domain with an index.html then you can just add this line to header portion of your index file: <META http-equiv="refresh" content="0; URL=http://www.yourdomain.com/"> This will redirect visitors browser to what every web address you want to set as the URL. Make sure this is in the <HEAD> section of the index file. -Aalst
Recommended Posts
Archived
This topic is now archived and is closed to further replies.