hi from bangkok, 2;24am here and i found your videos, very helpful, really thank you. Great to repeat everyting again. i am going to have a interview for junior php developer position and must say that your videos made me relax and more confident. was actully nervous. thanks for explaining all in simple ways. appriciated
Even though I somewhat already understand .haccess I'm still fuckin with you curtis. THIS IS A NOTE TO THE NEW COMER WHO IS MAYBE READING COMMENTS TRYING TO FIND THE RIGHT TUTORIAL, I BELIEVE CURTIS IS ON PROPER TASK, I AM GONNA CONTINUE ON AND FOLLOW THROUGH. Thank you sir.
Hi! Why should we do the line 5 if we have the !-d above on line 3? I mean, !-d == "don't use rewrite rule if this is a directory", and config, core, css, js are directories.
The .htaccess file did not work for me. I had to look around for some solutions and checked my error_log. Don't know why but I had to rewrite it to some degree and this is what worked for me : RewriteEngine On RewriteCond %(REQUEST_FILENAME) !-f RewriteCond %(REQUEST_FILENAME) !-d RewriteCond $1 !^(index\.php|config|core|css|fonts|js) RewriteRule ^(.*)$ ./index.php/$1 [L] Maybe someone needs this just try it out if your .htaccess file is not working and you get an internal server error or error 500...
Yo Im getting an error my pc is running on windows: Server error! The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there was an error in a CGI script. If you think this is a server error, please contact the webmaster. Error 500 localhost Apache/2.4.41 (Win64) OpenSSL/1.1.1c PHP/7.4.1
Im not sure what you mean by additional word on the url. This is an industry standard because many developers found this to be a very good way to organize code and makes urls friendlier in the process. If you dont like the url structure this way Im not sure you will like working with the code in this way and you may be better off with a different approach. My encouragement to you though is to try this way and maybe by the time you build a project of your own this way you may really learn to love it. At the very least you will be ready for a job with other developers that work this way.
Curtis Parham i mean for example, if the user typed in the url www.mywebsite.com/folder and if that folder doesn't exist i want to redirect him to the main page of the website which is www.mywebsite.com without leaving /folder in the url.
Mine does not work. The code is all correct. I don't use xxamp. I installed PHP 7.3 and Apache 2.4 manually. Is there any config I need to do with the server?
It does work as long as you have mod rewrites enabled on the server and it has to be an apache server. If you are trying to use nginx you have to convert the .htaccess for that server
finally !!! thxs dude, as a web dev student starting apache i can't fathom how much this help
hi from bangkok, 2;24am here and i found your videos, very helpful, really thank you. Great to repeat everyting again. i am going to have a interview for junior php developer position and must say that your videos made me relax and more confident. was actully nervous. thanks for explaining all in simple ways. appriciated
Qq1
its working now after many tutorials I watched finally I found the thanks sir.
awesome., verygood demonstration about .htaccess
Good job
Even though I somewhat already understand .haccess I'm still fuckin with you curtis.
THIS IS A NOTE TO THE NEW COMER WHO IS MAYBE READING COMMENTS TRYING TO FIND THE RIGHT TUTORIAL, I BELIEVE CURTIS IS ON PROPER TASK, I AM GONNA CONTINUE ON AND FOLLOW THROUGH.
Thank you sir.
So clear tutorial very beneficial! May Allah bless you with Islaam if you arent yet!
How do you enable server side include files
Hi Curstis, I have a problem with htaccess file with windows 10 it doesn't work but with mac it's working
Hi! Why should we do the line 5 if we have the !-d above on line 3? I mean, !-d == "don't use rewrite rule if this is a directory", and config, core, css, js are directories.
lol ye, basically if u remove line 5 its the same, and also why not including QSA in rewriteRule?
The .htaccess file did not work for me. I had to look around for some solutions and checked my error_log. Don't know why but I had to rewrite it to some degree and this is what worked for me :
RewriteEngine On
RewriteCond %(REQUEST_FILENAME) !-f
RewriteCond %(REQUEST_FILENAME) !-d
RewriteCond $1 !^(index\.php|config|core|css|fonts|js)
RewriteRule ^(.*)$ ./index.php/$1 [L]
Maybe someone needs this just try it out if your .htaccess file is not working and you get an internal server error or error 500...
I cant thank you enough. God Bless you.
this isn't working
thank you this laso served me
This works for me ... thanks !!
thanks that worked for me
Yo Im getting an error my pc is running on windows:
Server error!
The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there was an error in a CGI script.
If you think this is a server error, please contact the webmaster.
Error 500
localhost
Apache/2.4.41 (Win64) OpenSSL/1.1.1c PHP/7.4.1
hi thanks for the video, how can i get ride of that additional word on the url ?
Im not sure what you mean by additional word on the url. This is an industry standard because many developers found this to be a very good way to organize code and makes urls friendlier in the process. If you dont like the url structure this way Im not sure you will like working with the code in this way and you may be better off with a different approach. My encouragement to you though is to try this way and maybe by the time you build a project of your own this way you may really learn to love it. At the very least you will be ready for a job with other developers that work this way.
Curtis Parham i mean for example, if the user typed in the url
www.mywebsite.com/folder and if that folder doesn't exist i want to redirect him to the main page of the website which is www.mywebsite.com without leaving /folder in the url.
For those who want to learn more about .htaccess file -
www.htaccess-guide.com/
and what if you arent gonna use php?
bye
Mine does not work. The code is all correct. I don't use xxamp. I installed PHP 7.3 and Apache 2.4 manually. Is there any config I need to do with the server?
Well I do believe you have to enable the ability for .htaccess files to modify server config, you may just need to look up how to enable that.
it doesn't work on real httpd server
It does work as long as you have mod rewrites enabled on the server and it has to be an apache server. If you are trying to use nginx you have to convert the .htaccess for that server
@@CurtisParhamFreeSkills You are right! Thanks