Amazing video, thank you so much for it! You helped me fix my page redirects with it. 😊For anyone else who's looking for redirects from one page to another: Redirect from one page to another, same domain: 36:19 Redirect from one page to another, different domain: 37:29
@DevDrawer11 ай бұрын
Thanks for watching. I am glad it helped you out.
@phillipsengineer3 жыл бұрын
You make this so clear. About a year ago, I was looking for a .htaccess tutorial and found nothing that made sense to me. Thanks so much!!
@DevDrawer3 жыл бұрын
You're very welcome!
@pinnaclewd Жыл бұрын
Thank you, I have been looking for something like this for a long long time. Top Man :-)
@DevDrawer Жыл бұрын
There is also a part 2 with a few more commands.
@mikhailmcrae59242 жыл бұрын
This was amazing. Been trying figure this out all week.
@DevDrawer2 жыл бұрын
Glad it helped! There is also another .htaccess video that goes into my advanced directives that may help you in the future: kzbin.info/www/bejne/l4aXaayHfc1sp5Y This video and that one should cover most if not all of your .htaccess bases.
@xerox25528 ай бұрын
Excel master class about the htaccess file.
@DevDrawer8 ай бұрын
Thank you for watching. I am glad it made an impact.
@teddymakeni Жыл бұрын
Thanks Dev Drawer! I'll be joining this channel.
@DevDrawer Жыл бұрын
That is great to hear. Glad you could make it.
@mr_howto-everthing Жыл бұрын
Thanks bro, after struggling for 3 months🥰🥰
@DevDrawer Жыл бұрын
Happy to help
@gabrielolivares23312 жыл бұрын
This is really awesome tutorial. Great work man.
@DevDrawer2 жыл бұрын
Thanks a ton! I am glad you like it.
@cepi242 жыл бұрын
Where is the video mentioned in the beginning? Thsnks
@DevDrawer2 жыл бұрын
The video you are looking for is here: kzbin.info/www/bejne/pambkpiHaJaDe5I
@tunarmemmedov19611 ай бұрын
hey , in htaccess file i consistently get engine rewrite not allowed here error,what can cause it
@Niqnex7 ай бұрын
Great work. Keep it up...
@DevDrawer7 ай бұрын
Thanks.
@realist87743 жыл бұрын
At 15:33 you forget to escape the dots. And why did you switch the L and the R=301?
@DevDrawer3 жыл бұрын
I think it was just that way in the doc notes I wrote for the tutorial. In this case, it does not matter the placement of the L, as the 3xx processes automatically, in other instances, it should go last so it ends the loop. You are absolutely correct about escaping the dots. Since I was on my local I could not test it but the dots in the domain should be escaped (\.) like the other places.
@rossgeography2 жыл бұрын
The .htaccess directives / commands are quite gnarly - how / where do you learn the syntax? EDIT: at the end of the video you say you learned through a mixture of experience and google and indeed there are some decent articles - the Apache docs offer more info - but if ever a DSL? (Apache C) was ripe for a makeover with some more understandable JSON or similar config files it's these directives - there seems to be hundreds of them even though only
@DevDrawer2 жыл бұрын
This may be helpful for you: www.askapache.com/htaccess/ When I was learning about it, there was not really a central place to learn all of what you can do. So it was mostly trial and error. I don't forsee it getting a makeover anytime soon since it is a very powerful way to modify your server as it is. I do agree a JSON style format would be helpful but once you learn more about it, it makes more sense. Also, I probably use less than 10% of what is available. I mainly stick to the rewrites and caching abilities.
@rossgeography2 жыл бұрын
@@DevDrawer thanks v.much for taking the time to reply - will investigate link - thanks again for original video - Weekend well :)
@sonoftroy85723 жыл бұрын
Great content about htaccess, how’d you learn so much about htaccess? Is there a book we can read about it or web app with documentation?
@DevDrawer3 жыл бұрын
Hmmm, mostly what I added was from experience with projects. Mostly googling certain situations throughout my career. This may help in some cases. I just found it via search. I don't use it so I cannot tell you how much is there but it looks like it could cover a lot of situations: www.plesk.com/blog/various/comprehensive-guide-to-htaccess/
@abdoben8333 жыл бұрын
good explanation , all details I needed in one video.
@DevDrawer3 жыл бұрын
Glad it helped. .htaccess files can be tricky.
@kristianworkinger21382 жыл бұрын
Quick question: In the RegEx, should your forward slash next to your whitespace be escaped?
@DevDrawer2 жыл бұрын
I responded to this a while ago, but yes you are absolutely correct about escaping the dots. Since I was on my local I could not test it but the dots in the domain should be escaped (\.) like the other places.
@siddhantchilke11592 жыл бұрын
Great work. Thank you.
@DevDrawer2 жыл бұрын
I am glad you liked it
@liveinhouse3 жыл бұрын
Can you explain what Options MultiViews is for?
@DevDrawer3 жыл бұрын
The Multiviews option allows the server to do a filename pattern match. For example, if it is enabled, /dir/foo may not exist so your server will look within /dir/ for a file with a name of foo.* It will then assign them as the same media and encoding as if you requested it by name, it will then choose the best match with the requirements of your request. Basically, it can help hide extensions so /dir/foo.php becomes /dir/foo Keep in mind that foo is a directory, it will use the index of the directory, not foo.php. I hope this helps.
@liveinhouse3 жыл бұрын
@@DevDrawer Thanks i understand now
@chiefkeeflovessosa2 жыл бұрын
how can i make a folder forbidden for users to access??
@DevDrawer2 жыл бұрын
I have another video for advanced techniques that may help. Check it out here: kzbin.info/www/bejne/l4aXaayHfc1sp5Y
@chancenyasulu99722 жыл бұрын
thanks you are best
@DevDrawer2 жыл бұрын
Happy to help. Share the love.
@benlee35452 жыл бұрын
May I know what programming language this hta is written in? Example order deny, allow.. what language is that? Hope someone can advise as I am totally new in this.
@DevDrawer2 жыл бұрын
It is written in Apache. Not really a programming language but more of explicit directives for an Apache / Linux server.
@benlee35452 жыл бұрын
@@DevDrawer alright. Thank you. Will try to find some tutorial for total newbie.
@josealejandrosanchez41802 жыл бұрын
bueno video, estaba buscando como funciona framework laravel con htaccess, gracias !
@DevDrawer2 жыл бұрын
Gracias por ver, me alegra que te haya gustado.
@Mr.Rytman2 жыл бұрын
Do i need to make a “.htaccess” in the main folder, or can i just make one in my secret folder?
@DevDrawer2 жыл бұрын
The .htaccess file works per level so the main folder would cover all files and folders, but you can also place it in subfolders and it will only cover that folder. You can have multiples files that do different things.
@nmature20033 жыл бұрын
If you are using the index.php MVC code, how do you setup a 404?
@DevDrawer3 жыл бұрын
Since you are routing the pages through your index.php, you would use functions or classes to set up the content. This includes the 404 page. I hope this helps.
@andresraso5619 ай бұрын
great video
@DevDrawer9 ай бұрын
Great to hear. Glad you liked it
@thenumbersw3 жыл бұрын
nice work bro
@DevDrawer3 жыл бұрын
Thanks, I am glad you like it
@mohamedaminelabidi96302 жыл бұрын
thank you
@DevDrawer2 жыл бұрын
Your welcome.
@thawzin2772 жыл бұрын
Wow wow wow great bro
@DevDrawer2 жыл бұрын
I am glad you liked it. I also have another video with advanced .htaccess tips in case you have not seen it: kzbin.info/www/bejne/l4aXaayHfc1sp5Y