tiknam88 Posted December 16, 2007 Posted December 16, 2007 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
digilee Posted December 16, 2007 Posted December 16, 2007 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
sdrio Posted December 17, 2007 Posted December 17, 2007 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.
germ Posted December 17, 2007 Posted December 17, 2007 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 >
Guest Posted December 17, 2007 Posted December 17, 2007 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(); ?>
germ Posted December 17, 2007 Posted December 17, 2007 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 >
Guest Posted December 17, 2007 Posted December 17, 2007 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
germ Posted December 17, 2007 Posted December 17, 2007 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 >
germ Posted December 17, 2007 Posted December 17, 2007 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 >
Guest Posted December 17, 2007 Posted December 17, 2007 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.
tiknam88 Posted December 20, 2007 Author Posted December 20, 2007 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?
DN71 Posted December 20, 2007 Posted December 20, 2007 did you remove the '/catalog/' entries from both your configuration.php files? Should change those to just '/'
notubes_pete Posted December 20, 2007 Posted December 20, 2007 you can move the hole catalog folder to the root.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.