Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

How do redirect page


ICrazyBoy

Recommended Posts

Posted

I have problem.

 

how do i set redirect page from http://www.rogueshirts.com/ to http://www.rogueshirts.com/index.php?manufacturers_id=3.

 

I try to set in cpanel not work and try to config in index.php not work too.

 

php code

 

header('Location:  [url="http://www.rogueshirts.com/index.php?manufacturers_id=3'%3b%29;"]http://www.rogueshirts.com/index.php?manuf...ers_id=3');[/url]

 

 

Help me plz

 

Thank you.

Posted

I would try setting up the redirect in .htaccess, but rather than redirect a main site to a manufacturer's page, why don't you change the www.yoursite.com page for it to show what is currently in the manufacturer's page?

~ Don't mistake my kindness for weakness ~

Posted

don't see the logic!! but

 

at the start of index.php after the first <?php put

 

if (!isset($_GET['manufacturers_id'])) tep_redirect(tep_href_link(FILENAME_DEFAULT, 'manufacturers_id=3'));

Sam

 

Remember, What you think I ment may not be what I thought I ment when I said it.

 

Contributions:

 

Auto Backup your Database, Easy way

 

Multi Images with Fancy Pop-ups, Easy way

 

Products in columns with multi buy etc etc

 

Disable any Category or Product, Easy way

 

Secure & Improve your account pages et al.

Posted

Oh!! working Thank you spooks

 

 

require('includes/application_top.php');

 if (!isset($_GET['manufacturers_id'])) tep_redirect(tep_href_link(FILENAME_DEFAULT, 'manufacturers_id=3'));

  • 4 weeks later...
Posted

Hey spooks, I was wondering if I could use a similar technique to solve my problem. I recently installed SEO Urls and now when ever a customer adds a product to the shopping cart, they are redirected to the new products page (when display cart after buy now is disabled in admin). Is there some way I can have them remain on the same page when an item is added to the cart? Please help, I have very limited knowledge of php. ThankS!

  • 1 month later...
Posted

After getting setup with various search engines, I see many 404 errors. for example of just one link, the following link encounters a 404 error code:

 

http://brs-giftshop.com/oscommerce2/catalog/links_submit.php

 

The correct link is:

 

http://brs-giftshop.com/links_submit.php

 

with ideas from google search, I came up with this method to solve the issue, but seems like I am doing something wrong. I put the below code into the .htaccess file in the root dir. It will redirect visitors to correct page.

 

redirect 301 /oscommerce2/catalog/links_submit.php http://brs-giftshop.com/links_submit.php

 

But I haven't had oscommerce/catalog for over a year. My store is now http://brs-giftshop.com/ So do Ineed to this for every 404 error or is do i need to enter something using wild cards or this a search engine issue?

 

Thanks.

 

Benntt

Posted
After getting setup with various search engines, I see many 404 errors. for example of just one link, the following link encounters a 404 error code:

 

http://brs-giftshop.com/oscommerce2/catalog/links_submit.php

 

The correct link is:

 

http://brs-giftshop.com/links_submit.php

 

with ideas from google search, I came up with this method to solve the issue, but seems like I am doing something wrong. I put the below code into the .htaccess file in the root dir. It will redirect visitors to correct page.

 

redirect 301 /oscommerce2/catalog/links_submit.php http://brs-giftshop.com/links_submit.php

 

But I haven't had oscommerce/catalog for over a year. My store is now http://brs-giftshop.com/ So do Ineed to this for every 404 error or is do i need to enter something using wild cards or this a search engine issue?

 

Thanks.

 

Benntt

 

Issue resolved. Found out I could do in cpanel. Pages is being redirected.

 

Bennett

Archived

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

×
×
  • Create New...