Phire Posted September 22, 2002 Share Posted September 22, 2002 How do you redirect from your home domain (www.xxxxx.com) to the catalog home, and is there any way to mask the url so it appears as www.xxxxxx.com ? Link to comment Share on other sites More sharing options...
jasonv Posted September 22, 2002 Share Posted September 22, 2002 Make this your index.php (or default.php, depending) in the root: <?php header( "Location: /catalog"); ?> and change to suit. Link to comment Share on other sites More sharing options...
Phire Posted September 22, 2002 Author Share Posted September 22, 2002 you mean make that my place holder in my root dir? instead of index.html? Link to comment Share on other sites More sharing options...
jasonv Posted September 23, 2002 Share Posted September 23, 2002 you mean make that my place holder in my root dir? instead of index.html? Unless your index.html is doing something for you. I suspect not. If there's nothing in "/" and you need it to go to "/catalog", the code listed above will do that for you. Link to comment Share on other sites More sharing options...
burt Posted September 23, 2002 Share Posted September 23, 2002 Sorry, that won't work as intended in some browsers. <?php header("Location: http://www.yourdomain.com/catalog/default.php"); exit; ?> is correct, by using an absolute URL, as per rfc2616 14.30 For the original poster, would it be an idea to move your catalog into root and then do away with the catalog directory entirely and therefore the need for any form of re-direct ? Link to comment Share on other sites More sharing options...
Phire Posted September 23, 2002 Author Share Posted September 23, 2002 ahhh good idea.... but for now I could just write that file, no? Link to comment Share on other sites More sharing options...
Guest Posted July 30, 2004 Share Posted July 30, 2004 Hi, I don't quite understand if the above is the answer to my query - I have a page configured as my home page - in my root directory - it is called - index.html - it has some information on the website with links to my gallery and shop. What I want to do it do away with this page and when someone logs in they go directly to my catalog with has a path of http://www.scrapboxx.com/catalog I want this to be my homepage so that when people type http://www.scrapboxx.com - they get this page not my index.html If anyone can explain how do I do this I would appreciate it. thanks in advance Maria Link to comment Share on other sites More sharing options...
Guest Posted December 16, 2004 Share Posted December 16, 2004 How do you redirect from your home domain (www.xxxxx.com) to the catalog home, and is there any way to mask the url so it appears as www.xxxxxx.com ? <{POST_SNAPBACK}> the easiest and most secure way to do this is to add the following line to your .htaccess file in the main www directory: DirectoryIndex index.php this tells any incoming browser to use index.php (or whatever you specify) as the main page. If this statement doesnt exist in your .htaccess, it sends them to index.htm or index.html by default. Link to comment Share on other sites More sharing options...
sarahlyao Posted December 22, 2004 Share Posted December 22, 2004 the easiest and most secure way to do this is to add the following line to your .htaccess file in the main www directory: DirectoryIndex index.php this tells any incoming browser to use index.php (or whatever you specify) as the main page. If this statement doesnt exist in your .htaccess, it sends them to index.htm or index.html by default. <{POST_SNAPBACK}> where is the .htaccess? i could not find it in /www sarah www.thewhitedragon.us Complete metaphysical supplies Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.