Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Please help, redirecting homepage.


tiknam88

Recommended Posts

Posted

Please help!

 

I am trying to creat a redirection for my homepage for example when people type www.myweb.com and then it will jump to www.myweb.com/catalog automaticly.

 

How I can do that??

 

 

Thanks

Posted

Put this above the closing title tag in your header:

<meta http-equiv="refresh" content="0;URL=http://www.myweb.com/catalog" />

SolarFrenzy

Solar powered gadgets at down to earth prices.

 

CheekyNaughty

Promoting British Design

Posted

Alternatively, there's no reason not to put the files in the root in the first place. I don't think there are any heavy implications to moving it, all links within OSC seem to be relative.

Posted

Some people will tell you doing it this way:

 

<meta http-equiv="refresh" content="0;URL=http://www.myweb.com/catalog" />

Get's you "black balled" by some of the major search engines.

 

I really don't know.

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Posted
Some people will tell you doing it this way:

 

<meta http-equiv="refresh" content="0;URL=http://www.myweb.com/catalog" />

Get's you "black balled" by some of the major search engines.

 

I really don't know.

 

just use

 

<?php  
header("location:http://www.myweb.com/catalog"); 
exit();
?>

Posted

The same people will tell you they don't like that either...

 

I've heard it's best to use .htaccess, or move the shop to the root.

 

Just depends on who and what you believe I guess....

:lol:

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Posted
The same people will tell you they don't like that either...

 

I've heard it's best to use .htaccess, or move the shop to the root.

 

Just depends on who and what you believe I guess....

:lol:

 

Unless you are going to re-do the whole cart tho isnt that how OsCommerce works? the main function OsCommerce reloads pages us the php function

Posted

That is how it works, after you get to the home page.

 

I guess the theory would be the search engines don't like getting redirected immediately.

 

Like I said, I aint no authority on the subject.

:blush:

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Posted

I'd like to see someone post a "generic" .htaccess redirect example we all could learn from.

 

I tried it here:

 

Click Me

 

But I'm .htaccess illiterate 'cuz it did't work, I guess...

:)

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Posted
I'd like to see someone post a "generic" .htaccess redirect example we all could learn from.

 

I tried it here:

 

Click Me

 

But I'm .htaccess illiterate 'cuz it did't work, I guess...

:)

 

yea same here I dont know much about .htaccess, you are correct about search engines not liking being reidrected straight away I forgot about how you was using it at 1st.

Posted

how easy to move the page into root? I tried and all link shows broken?? colour and background all gone? what do I need change to get all link back on working?

Posted

did you remove the '/catalog/' entries from both your configuration.php files? Should change those to just '/'

Archived

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

×
×
  • Create New...