Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Putting index.php outisde of root


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

I have a solution can get your way if I donot miss your question.

Use Browser Meta Redirection, there have 3 way. Quote from FAQ in Community.

You can create a index.html or index.?? file in your root and left the originally file and structure.

 

http://www.oscommerce.com/community/faq,5-19/q,21

 

Create a index.html file in /catalog/ and /admin/ with the following:

 

 

 

<html>

<head>

<title>Redirecting...</title>

<meta HTTP-EQUIV="Refresh" CONTENT="0; URL=default.php">

<body>

</body>

</html>

 

 

PHP Redirection Script

Create a index.php file in /catalog/ and /admin/ with the following:

 

 

 

<?php

header('location: default.php');

?>

 

 

Javascript Redirection

Create a index.html file in /catalog/ and /admin/ with the following:

 

 

 

<head>

<title>Redirecting...</title>

<meta http-equiv="Refresh" content="0; url=default.php">

</head>

 

<script language="javascript1.1"><!--

location.replace('default.php');

//--></script>

Fan of OSC system.................

Comming From China.............

Link to comment
Share on other sites

appreciate the hard work in finding that script (although javascripts wouldn't be needed a simple redirect tag in the META data would be ok).

 

However, I'm looking for something more permanent. I think I need to change something in configure.php but not sure where?

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...