Search the Community
Showing results for tags 'rewrite rules'.
-
Hello Larry, Thank you for the publishing of your book. We are using it at school to learn development of an e-commerce site. I wanted to share with you an issue me and some of my classmates have run into in chapter 7. I am testing the ex2 site locally with the following specs: PHP 7.1.33 MySQL 5.7.28 using Local.app by flywheel to run local Apache server Using PHPStorm to run and debug my code. It seems like my .htaccess rules are not working, but I am not sure why the rules are not redirecting correct, Kind of having a hard time understanding if it's the htaccess file or my headers.html, or home.html files? I attached a zipped file of my configurations. The code in my htaccess file is just like the Ex2 2016 code download, except I have subdirectories "/homework/ex2/html/" as the rewriteBase value (2nd edition book, page 201, Using Subdirectories). We were asked to place our site files into a subdirectory. I'll attach my htaccess file, headers.html, and home.html in a separate zip file (Files-modified-ex2site.zip). The main issues is that my secondary links to the site sections are producing broken images. I explain this in more detail in the Chapter 7 bugs zip file. I have tried multiple relative and absolute path edits, but the current set up is the best I could figure out to access most of the files on my local test browser. Any help is appreciated. Chapter 7 Bugs to fix.zip Files-modified-ex2site.zip Chapter 7 Bugs to fix.zip