Jump to content
Larry Ullman's Book Forums

Rewrite Rules - Easyphp, Localhost


Recommended Posts

Hi Larry,

 

I am using EsyPHP for both Ex1 and Ex2. I have configured the server and set up the data base. My problem is in example2.  The index.php is working but It doesn't link properly to  Coffee, Goodies, Sales etc. I localized the problem - it is in .htaccess (copied from the book downloads) . The  .htaccess file itself is enabled and recognized. However the Rewrite Rules are not working. For example  when I click “Sales” the generated URL is http://localhost:8080/shop/sales/.  The same result with “Goodies”- http://localhost:8080/shop/goodies/.

 

Please help! What might be wrong with my settings.

 

Thank you,

Christo

 

P.S. I checked the problems posted in the list but I was not able to find an adequate response addressing my problem.

Link to comment
Share on other sites

Now I got another problem.  (I am using the ex2 code from the book downloads.)  When I  browse "Goodies" an then click  "View All Mugs Products" I got the following error message:

 

An error occurred in script 'C:\web\Ex2\html\views\list_products3.html' on line 62:
Undefined index: sale_price
 

How can I fix it.  Please help!

 

Thank you,

Christo

Link to comment
Share on other sites

 Share

×
×
  • Create New...