nomad Posted June 17, 2013 Share Posted June 17, 2013 Hi Larry, First of all this Effortless E-Commerce has been very helpful in my understanding of build e-commerce sites. I truly feel it is the best resource out there on the subject. I am new to PHP and MySQL, and your books have helped me learn in a short period of time. My question has to do with .htaccess and mod_rewrite. I am using Yahoo Small Business as a host (for now), but they do not allow .htaccess. I know it would be easier for me to change hosting services, but I cannot at the moment, so I need to find a way around this problem. You stated on page 175 under the Tips sidebar that 'If you can’t use mod_rewrite on your server, just skip this section and change every URL in the HTML files accordingly.' Where exactly would I change these URLs? Is there an alternative to this similar to the alternatives for the stored procedures? Thank you in advance. Link to comment Share on other sites More sharing options...
HartleySan Posted June 17, 2013 Share Posted June 17, 2013 What I think he means is that you have to change all the URLs to the actual URLs. So for example, instead of maybe using a URL like the following: example.com/2/white-coffee-mug/ You need to use a less appealing URL that links directly to the page with the right parameter(s) like the following: example.com/index.php?item=2 Does that make sense? Link to comment Share on other sites More sharing options...
nomad Posted June 17, 2013 Author Share Posted June 17, 2013 Yes, this does make sense. I have seen this done before. Is this just a matter of me creating a variable for product id numbers and putting them in the URL? Link to comment Share on other sites More sharing options...
HartleySan Posted June 17, 2013 Share Posted June 17, 2013 Yes, that's it. While you're using PHP to generate your HTML, you'll need some sort of loop structure to create all the links with the proper IDs. Link to comment Share on other sites More sharing options...
nomad Posted June 17, 2013 Author Share Posted June 17, 2013 Ok, I think I got it...(hopefully)...I'm going to tinker with it and see what I can come up with...thanks. Link to comment Share on other sites More sharing options...
Recommended Posts