You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I tried to give a empty string to $route and it works for the index page, but obviously the other links in the page doesn't work.
I also try to create an .htaccess file in the public directory and I try to change the Apache root folder in httpd.conf but it doesn't work for me and give me back an error 500.
The text was updated successfully, but these errors were encountered:
I also try to create an .htaccess file in the public directory and I try to change the Apache root folder in httpd.conf but it doesn't work for me and give me back an error 500.
This is the right approach, you'll need the .htaccess file in the public directory and the public directory will need to be the DocumentRoot.
@patriziasunny did you solve the url rewrite issue? I had the same problem, drove me crazy for over a week. I solved it by changing DocumentRoot in httpd.conf to "C:/xampp/htdocs/Project/public". (Along with the .htaccess file.)
I see you tried that and it didn't work, but I'm certain that's what did it for me. Don't know if WAMP and XAMPP handle it the same.
I'm almost a year behind you, been working thru the book over last 2 months, running into new roadblocks every day/week, taking at least a few days to solve each one. I got thru Categories and I think that was running ok, but now I hit another wall with Permissions.
I'm hoping to find some noobie like me to collaborate with in working through the book and duplicating the website/framework. And trying to wrap my head around the whole process. Are you still working on it?
Thanks
Nate
Hello and thanks for this book!
First of all I'm on php so maybe it's a silly question.
I have a problem when a try to rewrite URL on chapter 9:
I think that the problem is in the following line on Cms-EntryPoint-Class (index.php)
$route = ltrim(strtok($_SERVER['REQUEST_URI'], '?'), '/');
because it duplicate my URL after "public":
http://localhost/Project2/phpmysql6-Sessions-CheckUser-Secured/public/project2/phpmysql6-sessions-checkuser-secured/public/
I tried to give a empty string to $route and it works for the index page, but obviously the other links in the page doesn't work.
I also try to create an .htaccess file in the public directory and I try to change the Apache root folder in httpd.conf but it doesn't work for me and give me back an error 500.
The text was updated successfully, but these errors were encountered: