Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Page Not Found Redirect


Guest

Recommended Posts

Hello all, I recently switched my site to osCommerce from Magento. I had my site up and running for a few months before I made the switch and now there are links out there pointing to my old pages... (which are long gone). In Magento, they had some php or something that came up whenever someone typed in a link that gone that said, "Sorry, that page can't be found." However, it still had my header and footer and looked just like my store so the customer could easily just click the home page or anything to navigate from the error message.

 

I am looking to find some code to figure out how to do this for my new site? Because I still have people with direct links to old category pages and old product pages, they are getting an error message but it doesn't take them to my store or give them options to find a working link.

 

Any help would be appreciated! Thanks! :)

 

Bradi

Link to comment
Share on other sites

redirect 301 /old-file-name.htm http://www.sitename.com/new-file-name.htm

 

 

 

you need to use .htaccess in your site and redirect all your old links of store to the new links , that way you wont get 404 pages

 

cheers

 

How do I do the .htaccess if I don't know what the old links are? Each time I added a product it created the html page that displayed when someone viewed my product. In the Magento website, you could type anything following the domain name and it would give you a "we're sorry" error but the error page still looked like my store so you could easily navigate away. Here is an example. If I had something like that I wouldn't have to know all the old links exactly right?

 

I'm new to this so if that doesn't make sense I'm sorry. :) Basically I liked that feature about the Magento shopping cart and was wondering if I could use it in osCommerce. :)

 

Thanks, Bradi

Link to comment
Share on other sites

redirect 301 /old-file-name.htm http://www.sitename.com/new-file-name.htm

 

 

 

you need to use .htaccess in your site and redirect all your old links of store to the new links , that way you wont get 404 pages

 

cheers

 

 

how do we do that? I'm guessing there is a way to phrase it for it to be read properly, right?

 

Thanks

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...