Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

How do you redirect your site to the /catalog/ folder?


JamesS

Recommended Posts

Does anyone know how to redirect your domain name to the /catalog/ folder? I have tried multiple times to have my web host do this for me, but they insist that it is handled by osCommerce automatically. I have also tried to redirect it manually myself in my Control Panel at my webhost, but when I do this, by adding /catalog/ to my file path, it does pull up the catalog however the format is complely incorrect.

 

Does anyone have any thoughts? How did you get the address bar to read www.yoursite.com/CATALOG/ or whatever you named your site folder?

 

Thanks for your input.

Link to comment
Share on other sites

Does anyone know how to redirect your domain name to the /catalog/ folder? I have tried multiple times to have my web host do this for me, but they insist that it is handled by osCommerce automatically. I have also tried to redirect it manually myself in my Control Panel at my webhost, but when I do this, by adding /catalog/ to my file path, it does pull up the catalog however the format is complely incorrect.

 

Does anyone have any thoughts? How did you get the address bar to read www.yoursite.com/CATALOG/ or whatever you named your site folder?

 

Thanks for your input.

 

You should be able to do this from your Cpanel.

 

When you do the redirect you put nothing in the first field so you are basically rerouting /. Then in the second field you put http://www.yourwebsite.co.uk/yourcatalogfolder/

I don't bother doing backups. I love the thrill of screwing it all up!

Link to comment
Share on other sites

You should be able to do this from your Cpanel.

 

When you do the redirect you put nothing in the first field so you are basically rerouting /. Then in the second field you put http://www.yourwebsite.co.uk/yourcatalogfolder/

 

Are you talking about the Cpanel at my Webhost? If so I tried what you suggested and the out come was

www.yourwebsite.com/catalog/catalog/catalog/catalog/catalog/catalog/catalog/on and on...

 

Or are you talking about the osCommerce admin Cpanel?

Link to comment
Share on other sites

There are a couple of ways I know about

1) a 301 redirect. Google it and you'll find loads about it however many hosting companies don't like it as it involves editing the .htaccess file.

2) get you index page to refresh to your catalog index page.

place this in your index page (your root index not catalog one)

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

 

Martin

Link to comment
Share on other sites

There are a couple of ways I know about

1) a 301 redirect. Google it and you'll find loads about it however many hosting companies don't like it as it involves editing the .htaccess file.

2) get you index page to refresh to your catalog index page.

place this in your index page (your root index not catalog one)

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

 

Martin

 

Thank you the Meta HTTP worked great - my hosting company wanted to charge me an unreasonable amount of money to default this page. This was a perfect solution.

Link to comment
Share on other sites

Unfortunately, it isn't. The search engine's don't like that kind of redirect. The best solution is to move your shop to the root directory, especially since you are not using it for anything else.

 

Jack

Support Links:

For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc.

All of My Addons

Get the latest versions of my addons

Recommended SEO Addons

Link to comment
Share on other sites

Unfortunately, it isn't. The search engine's don't like that kind of redirect. The best solution is to move your shop to the root directory, especially since you are not using it for anything else.

 

Jack

 

Thanks - I did not know that, but I like the fact that it goes into the /catalog/ folder. Are there any other solutions? When I try to redirect this in my Cpanel at my hosting site it does it incorrectly - it multiply the /catalog entry so it reads site.com/catalog/catalog/catalog/etc.

Link to comment
Share on other sites

Hi James

Jack may have a point, however I have a site that works fine using a refresh. I do think google may have a bit of an issue so if I were you I'd look for a forum on SEO and ask there. I've used a few in the past and they've been very informative. I'm not sure but I think sitepoint have quite a good one.

Good luck

Martin

Link to comment
Share on other sites

Thanks - I did not know that, but I like the fact that it goes into the /catalog/ folder. Are there any other solutions? When I try to redirect this in my Cpanel at my hosting site it does it incorrectly - it multiply the /catalog entry so it reads site.com/catalog/catalog/catalog/etc.
I prefer to use .htaccess for redirects but you can use this too. Just place it in the top of your index.html file in the root.
<?
Header( "HTTP/1.1 301 Moved Permanently" ); 
Header( "Location: http://www.your_domain.com/catalog/folder" ); 
?>

But please note that this is not the way you want to go if you want to index well in the search engine listings. They don't like go deeper than three levels and you are telling them to start there. Moving to the root is the way to go if you want to have a successful site.

 

Jack

Support Links:

For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc.

All of My Addons

Get the latest versions of my addons

Recommended SEO Addons

Link to comment
Share on other sites

I prefer to use .htaccess for redirects but you can use this too. Just place it in the top of your index.html file in the root.
<?
Header( "HTTP/1.1 301 Moved Permanently" ); 
Header( "Location: http://www.your_domain.com/catalog/folder" ); 
?>

But please note that this is not the way you want to go if you want to index well in the search engine listings. They don't like go deeper than three levels and you are telling them to start there. Moving to the root is the way to go if you want to have a successful site.

 

Jack

 

 

Thanks for the input everyone - I think the best way for me to do it would be to move it to the root folder to get the best results on SEO, so I will go ahead and do it that way, but it is nice to have these methods in my back pocket for future reference.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...