View Full Version : OsCommerce
productor
11-11-06, 07:44 PM
After installation when I try to loggin from the from page of oscommerce I get "redirected" to the front page of joomla, I think imght have to do with htaccess, but I dont know. Can anybody help?
The website is http://online-imagebank.com/store/catalog
Post your .htaccess here. I can't tell what is wrong just from the symptom.
Did you really want osC in /store/catalog?
productor
11-11-06, 08:10 PM
Options +FollowSymlinks +Indexes
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !\.(jpg|jpeg|gif|png|css|js|pl|txt)$
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*) index.php
IndexOptions -FancyIndexing
# Fix for the missing-trailing-slash for directories
# on htaccess-redirected domains/subdomains.
RewriteCond s%{HTTPS} ^((s)on|s.*)$ [NC]
RewriteRule ^/*(.+/)?([^.]*[^/])$ http%2://%{HTTP_HOST}/$1$2/ [L,R=301]
#now point second domain to a folder in htdocs
RewriteBase /
RewriteCond %{HTTP_HOST} ^terepaima\.?com [NC,OR]
RewriteCond %{HTTP_HOST} ^www.terepaima\.?com [NC]
RewriteCond %{REQUEST_URI} !/terepaima/
RewriteRule ^(.*)$ terepaima/$1 [L]
RewriteCond s%{HTTPS} ^((s)on|s.*)$ [NC]
RewriteRule ^/*(.+/)?([^.]*[^/])$ http%2://%{HTTP_HOST}/$1$2/ [L,R=301]
#now point second domain to a folder in htdocs
RewriteBase /
RewriteCond %{HTTP_HOST} ^nuevomedio\.?com [NC,OR]
RewriteCond %{HTTP_HOST} ^www.nuevomedio\.?com [NC]
RewriteCond %{REQUEST_URI} !/nuevomedio/
RewriteRule ^(.*)$ nuevomedio/$1 [L]
RewriteCond s%{HTTPS} ^((s)on|s.*)$ [NC]
RewriteRule ^/*(.+/)?([^.]*[^/])$ http%2://%{HTTP_HOST}/$1$2/ [L,R=301]
#now point second domain to a folder in htdocs
RewriteBase /
RewriteCond %{HTTP_HOST} ^tecnomedio\.?com [NC,OR]
RewriteCond %{HTTP_HOST} ^www.tecnomedio\.?com [NC]
RewriteCond %{REQUEST_URI} !/tecnomedio/
RewriteRule ^(.*)$ tecnomedio/$1 [L]
I don't fully understand all that you have here, but looking at the URL for the store login, I don't see how you're redirecting it to the subfolder where the store resides, since there's no domain to match. I think your rule that comes into effect when HTTPS is on is messing you up here. Perhaps you need to add the htdocs subfolder to HTTPS_SERVER?
vBulletin v3.6.0, Copyright ©2000-2009, Jelsoft Enterprises Ltd.