Kruse Posted April 25, 2009 Posted April 25, 2009 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.
spooks Posted April 25, 2009 Posted April 25, 2009 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.
Kruse Posted April 25, 2009 Author Posted April 25, 2009 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 ?
spooks Posted April 25, 2009 Posted April 25, 2009 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.
Kruse Posted April 25, 2009 Author Posted April 25, 2009 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.
spooks Posted April 25, 2009 Posted April 25, 2009 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.
fbrace Posted April 25, 2009 Posted April 25, 2009 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)
offie Posted May 6, 2009 Posted May 6, 2009 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
Recommended Posts
Archived
This topic is now archived and is closed to further replies.