Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

redirect php page


ErikOS

Recommended Posts

Posted

Create an index.html or an index.php in your root as follows.

 

 

<html>

<head>

<title>My Site</title>

<meta http-equiv="refresh" content="0;url=www.mydomain.com/catalog">

</head>

</html>

 

 

HTH

Tom

Posted

you can do it via php . ..

 

create an index.php, douse the index.html, and use this:

 

 

<? header('Location: /index.php'); ?>

 

where location points where you want it to go, ie catalog/index.php

Posted
Does anyone no the sytax to redirect the www.mydomain.com to www.mydomain.com/catalog? :-"

Try adding the following line to the .htaccess page:

 

Redirect /index.html http://www.[yoursite].com/catalog/index.php

Posted

in all reality what you should do is move your store up one level, so when they go to your domain they are in the store, not via a redirect, as the search engines dont like that much

Posted
in all reality what you should do is move your store up one level, so when they go to your domain they are in the store, not via a redirect, as the search engines dont like that much

 

Work great! :thumbsup:

Posted

The only form of redirect which search engines do not mind is one from .htaccess in your root directory.

 

e.g.

Redirect index.php http://yoursite.com/catalog/index.php

 

Just leave a blank index.php in your root directory, with just opening and closing php tags, and this redirect will push people coming to http://www.yourdomain.com to http://www.yourdomain.com/catalog/index.php

 

Vger

Archived

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

×
×
  • Create New...