Sorry, not sure if you mean:
1) its not the case that zencart must be in root dir of url,
or
2)not the case that the default RewriteBase is correct??
I am fairly sure there is a problem with the .htaccess file as I did a test with very simple rule in .htaccess to redir * to ssu_check.php and then everything typed in url goes to ssu_check.php
So the way I see it as a total newbie, is that the default SSU .htaccess rules are incorrect (I know nothing about apache so could easily be wrong).
When ssu is enabled all the links on the main page are rewritten but mod_rewrite cannot find them as the rewrite rules don't say how to change the urls to the correct zencart "html GET" format?????
Has anyone got a working .htaccess file they can post, or point me to a quick reference on writing mod_rewrite scripts????
Also may there be problems due to the name and ID delimiters used???
I have not been able to find answers from searching the forums.
Sorry to ask all these (possibly stupid) questions, as I say I'm a newbie, I hope when I have the answers my questions will be able to help others.
Regards to all.
He meant
2)not the case that the default RewriteBase is correct??
You need to fix that.
Maybe this will help you. If your zen cart is not in your root, then you need to change the
RewriteBase/my_folder
#### BOF SSU
Options +FollowSymLinks -MultiViews
RewriteEngine On
RewriteCond %{HTTP_HOST} ^thegoodshepherdstore.com$ [NC]
RewriteRule ^(.*)$ http://www.thegoodshepherdstore.com/$1 [R=301,L]
# Make sure to change "test_site" to the subfolder you install ZC. If you use root folder, change to: RewriteBase /
RewriteBase /
# Deny access from .htaccess
RewriteRule ^\.htaccess$ - [F]
RewriteCond %{SCRIPT_FILENAME} !-f
RewriteCond %{SCRIPT_FILENAME} !-d
RewriteRule ^(.*) index.php?/$1 [E=VAR1:$1,QSA,L]
#### EOF SSU
Last edited by countrycharm; 20 Feb 2009 at 08:50 PM.
Is your site Upgraded to the current version 1.5.4 Yet?
zencart-upgrades-website-installation
##############################################################
########################################################
################################################################
THE IMPORTANT POINT AS FAR AS I CAN SEE IS TO COMMENT OUT THE OPTIONS LINE!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
##########################################################
#############################################################
###########################################################
It now seems to work.
But i seem to notice a slight preformance hit, has anyone done any benchmarks?.
Probably the wrong place to post this as I am not a zen dev and know nothing about php, but from a brief look at some of the code it seems to suck, though I am biased to C as that is what I know about.
That said I am grateful to the all the devs, as you may have saved me having to write a whole system myself.
It is probably still better extending a system I have no experience with than working from scratch,
I am considering writing a barcode module, anyone interested?
or have any pointers on where to start?
If you can provide us a link, I can check the site.
I came from a C background as well, but again imagine you have to code a website with C, I dont think it's fun :). Surely php is slower than C, but we are not doing any heavy computing here, the difference is not noticeable.
Zencart, I believe, does have bar-code module working as well.
I no longer provide installation support on forum for all my modules. However, if there are real bugs with the modules please feel free to contact me
I am afraid I don't have a link available, I'm just setting up the site on a vmware test system. I may be uploading it to a fasthosts server in the next few weeks, but there are loads of things to get cleared like supplier details, security audit, and testing.
I have been told there will be a total of around 8,000 products from 20 suppliers and I will be given images and spreadsheet data to put in the system next week. I want to get a basic system setup before I start adding the data. My problem seems to have been fixed by commenting out :
#Options +FollowSymLinks -MultiViews
from the .htaccess file.
Of course if that line works OK for others it still leaves the question why it breaks my system, I guess due to some apache config issues.
As I said the system is a stock centos 5 system so other centos users may have the same problem.
I will post back when I have uploaded to the fasthosts server, which should as far as I could manage have an identical config to the vmware test system I created.
Or if you are really interested I could put the vmware image up for you to download and test (though it would be a 600Mb image).
I did start to write a webshop system in C almost 10 years ago, but dumped the whole idea for what seemed like a far more elegant system written in C, which then never got used due to SEO problems and javascript weaknesses.
I think its all the $ chars before variables that puts me off php?.
Anyway thanks for the help, I will post back if I get to the root of the problem.