Open KiwiwPete07 opened 8 years ago
Wow. For a url request you must give me the page you where in, and post the files you just updated. Please use http://pastebin.com for them, or else this will become difficult to read and help :3
EDIT: It turned out I had misspelled .htaccess ...
I get the same error. I'm on a Mac using MAMP as the server if that has to do with anything, port 80 for Apache and port 3306 for MySQL. This is my code: http://pastebin.com/7mtSexwC and this is my what I get from the debug console
Array
(
[base] =>
[call_utf8] =>
[call] =>
[call_parts] => Array
(
[0] =>
)
[query_utf8] => page=about-us
[query] => page=about-us
[query_vars] => Array
(
[page] => about-us
)
)
Thanks in advance, I really appreciate your videos!
.htaccess
file, because by the code given, the /home should be searching in /series/dynamic/AtomCMS/home
and not /series/dynamic/AtomCMS/admin/home
.My way to approach the urls thing was with these lines of codes: http://pastebin.com/7ShTX84e
Also check that link for the .htaccess
file.... and remember to place it where your index.php is located!!!!
(better if both place on the host folder)
PLEASE READ THE CODE CAREFULLY
An easy mistake to make is to misspell the .htaccess
, so doble check that.
if you keep having issues, please look up in your apache config (httpd.conf) for the apache mod_rewrite
module, it must be enabled (not after a #
).
Google will help :P
Thank you very much for your help. I edited my post quite fast after I submitted it since I found the error (misspelled .htaccess) so the issue is resolved. But thanks anyway. I'll surely donate when I get my student loans the 25th :). Your videos are truly helpful and easy to follow.
Well, I always end up misspelling that file too :D .
btw i'm not the creator of the video series, i'm just helping everyone. (It's my way of giving thanks to the author for teaching me php :3)
This series is great - thanks so much for putting them up.
I have one issue I am unable to resolve. In 'Part 49 - Using PHP to Handle a Clean URL' you start explaining about clean URLs, and we set up .htaccess, put in the get_path function in sandbox etc - all good so far. Then you use your debugger to show the path array - all good - EXCEPT you then suggest adding 'home' after the base to see how that shows up in the path array. When I put 'home' in the address bar, I get this browser error:
"Not Found The requested URL /series/dynamic/AtomCMS/admin/home was not found on this server. Apache/2.4.12 (Ubuntu) Server at localhost Port 80"
Can you help me?
Thanks
Peter