Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Redirect from home to catalog?


Phire

Recommended Posts

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

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

  • 1 year later...

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

  • 4 months later...
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 ?

 

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

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.

 

 

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...