Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Moving index.php out of catalog/


misohoni

Recommended Posts

I understand that I need to change the "configure" files in order to move the site out of the pre-configured catalog/ directory.

 

However, ., There are many directories in catalog/ I don't want to move them into my root folder. Is there anyway I can keep the files and folders in that directory and only have index.php outside in the root?

Link to comment
Share on other sites

  • 1 year later...
I understand that I need to change the "configure" files in order to move the site out of the pre-configured catalog/ directory.

 

However, ., There are many directories in catalog/ I don't want to move them into my root folder. Is there anyway I can keep the files and folders in that directory and only have index.php outside in the root?

 

 

Is this possible?

Link to comment
Share on other sites

Is this possible?

 

Question, what are you trying to do?

If you just want people browsing to your root to find your site. You can leave index.php in catalog and put a redirect in your root.

 

<META HTTP-EQUIV="Refresh"

CONTENT="0; URL=catalog/index.php">

 

works for me.

 

David

Link to comment
Share on other sites

  • 1 year later...

Do you mean in essence the /catalog/ folder becomes the root, with all other folders staying the same?

 

Changes only to catalog/configure.php or catalog/admin/configure.php as well?

 

Thanks

 

oz

Link to comment
Share on other sites

  • 1 month later...
Do you mean in essence the /catalog/ folder becomes the root, with all other folders staying the same?

 

Changes only to catalog/configure.php or catalog/admin/configure.php as well?

 

Thanks

 

oz

 

 

I am also wondering how to do this. If anyone can go into more detail it would be greatly appreciated.

Link to comment
Share on other sites

Nevermind I just noticed there are a million posts on this. Just move all you files from catalog out into your root. Edit the configure files, includes/configure and admin/includes/configure and thats it.

Link to comment
Share on other sites

I understand that I need to change the "configure" files in order to move the site out of the pre-configured catalog/ directory.

 

However, ., There are many directories in catalog/ I don't want to move them into my root folder. Is there anyway I can keep the files and folders in that directory and only have index.php outside in the root?

 

yes, possible. try to post your configure file. remove db section.

Sugiartha

------------------------------------------

concept of life: enjoy aja!

Link to comment
Share on other sites

Not possible - you need to move all of the files/folders in the 'catalog' folder down into the root of your web. You then edit both configure.php files and just remove the catalog/ entries

 

Vger

Link to comment
Share on other sites

When removing the catalog/entries, how do I edit lines with just the "catalog/" and no "entries"? Such as the fallowing:

 

define('HTTP_COOKIE_PATH', '/catalog/');

define('HTTPS_COOKIE_PATH', '/catalog/');

define('DIR_WS_HTTP_CATALOG', '/catalog/');

define('DIR_WS_HTTPS_CATALOG', '/catalog/');

define('DIR_WS_CATALOG', '/catalog/'); // absolute path required

 

Or do I need to do anything to them at all?

 

Thanks

Link to comment
Share on other sites

When removing the catalog/entries, how do I edit lines with just the "catalog/" and no "entries"? Such as the fallowing:

 

define('HTTP_COOKIE_PATH', '/catalog/');

define('HTTPS_COOKIE_PATH', '/catalog/');

define('DIR_WS_HTTP_CATALOG', '/catalog/');

define('DIR_WS_HTTPS_CATALOG', '/catalog/');

define('DIR_WS_CATALOG', '/catalog/'); // absolute path required

 

Or do I need to do anything to them at all?

 

Thanks

 

 

I think I figured it out, correct me if Im wrong; but if anyone else has problems with this the solution is:

 

define('HTTP_COOKIE_PATH', '/');

define('HTTPS_COOKIE_PATH', '/');

define('DIR_WS_HTTP_CATALOG', '/');

define('DIR_WS_HTTPS_CATALOG', '/');

define('DIR_WS_CATALOG', '/'); // absolute path required

Link to comment
Share on other sites

  • 11 months later...

Archived

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

×
×
  • Create New...