Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

How to link directly to catalog/


Kruse

Recommended Posts

Posted

I got it working. :rolleyes:

 

I think this must be a minor problem every user of the osCommerce have had.

 

The visitor should get directed to the catalog/ for the shop to open, since the osCommerce leaves no index.* in the root how do you do this nicely ?

 

Since the shop isn't 'a part of' the site, but more the site it self.

 

I have been thinking of a index.html in the root that doesn't do anything than direct to the catalog/index.php (?)

Although it seems clumsy in my eyes.

... and by the may how do direct to another page without any visitor clicking. 'href' wont do it, as far as I know.

Posted

you can redirect a page automatically with,

 

 <meta http-equiv="refresh" content="20; URL=http://www.mysite.com/">

 

but google often objects to this practice, so best to avoid.

 

you can do a silent redirect with htaccess, just put something like:

 

 

RewriteEngine on

RewriteCond %{HTTP_HOST} ^.*$
RewriteRule ^/?$ "http\:\/\/www\.mysite\.com\/catalog\/" [R=301,L]

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

Thank you spooks.

I assume the htacces should be in the root (?).

 

What are the searchengine visibillity perspective in this approach ?

 

I mean will google be able to see the page ?

Posted

yes

 

there is no page, you just make a text file called .htaccess (check if u have one already)

 

google will be happy, will see he redirect & the 301 tells it its permanent.

 

 

http://www.askapache.com/htaccess/apache-htaccess.html

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

Which kind of editor is used to edit/dreate these htacces files ?

Notepad adds strange characters and have problems with reasonable line wrapping.

Dreamweaver CS3 wont know of them.

Posted

i use wordpad

 

the filetype is text, but u must save as .htaccess (with the leading . )

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

Why not just move the entire store to the root directory and do away with "catalog" altogether.

 

If you do this you just have to remove all instances of the catalog directory from both the config.php files,

 

one in catalog/includes/

 

the other in admin/includes

 

Fred

Frederick C Brace,III PA-C

www.21st-tees.com (osc)

www.tanda-designs.com (osc)

  • 2 weeks later...
Posted
you can redirect a page automatically with,

 

 <meta http-equiv="refresh" content="20; URL=http://www.mysite.com/">

 

but google often objects to this practice, so best to avoid.

 

you can do a silent redirect with htaccess, just put something like:

 

 

RewriteEngine on

RewriteCond %{HTTP_HOST} ^.*$
RewriteRule ^/?$ "http\:\/\/www\.mysite\.com\/catalog\/" [R=301,L]

 

Thanks for this info, worked a treat for me. Offie :D

Archived

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

×
×
  • Create New...