Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Redirect to catalog/index.php ? How?


Wanwan

Recommended Posts

Posted

Greetings,

 

I have read some posting regarding on how we have to relocate our catalog/index.php to the root, so when customers type in www.mydomain.com, the catalog/index.php will displays.

 

 

But, my question today is, how I can redirect the page if customers come to my site, without me moving all the catalog's file to the root of the server?

 

 

For instant, I type in www.mydomain.com, the page will direct me to www.mydomain.com/catalog/index.php how could I do this?

Wanwan -- %_%_

Posted
Greetings,

 

I have read some posting regarding on how we have to relocate our catalog/index.php to the root, so when customers type in www.mydomain.com, the catalog/index.php will displays.

But, my question today is, how I can redirect the page if customers come to my site, without me moving all the catalog's file to the root of the server?

For instant, I type in www.mydomain.com, the page will direct me to www.mydomain.com/catalog/index.php

 

 

Hi There, This is an easy fix. Simply place this code on your index or home page in the root directory.

 

<META HTTP-EQUIV="refresh" CONTENT="0; url=http://www.yourdomain.com/catalog/index.php">

 

You can delay the redirect by placing a number where the "0" is.

 

Mike

Posted
Hi There, This is an easy fix. Simply place this code on your index or home page in the root directory.

 

<META HTTP-EQUIV="refresh" CONTENT="0; url=http://www.yourdomain.com/catalog/index.php">

 

You can delay the redirect by placing a number where the "0" is.

 

Mike

 

 

Thanks to CamDru!

Wanwan -- %_%_

Posted

I would like to comment on this if you dont mind, I would suggest creating an html page with a simple background color that simply states "You are being redirected to our webstore" "If your not redirected in 5 seconds please click refresh"

 

Then change your coding from 0 to 5 second delay.

 

Now why ask I suggest this, because so many dirty sites out there redirect you to other pages, customers who get redirected without notice may think your directing to a phony site, or unsecure site. The courtesy of telling them they are being directed acknowledes the fact that the redirect was intentionally done.

Archived

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

×
×
  • Create New...