How to Remove the File Extension and Variables From the URL | PHP Tutorial | Learn PHP Programming. In this PHP tutorial you will learn how to hide the .php extension from your website URL, while still having the variables passed using PHP in the URL.
➤ GET ACCESS TO MY LESSON MATERIAL HERE!
First of all, thank you for all the support you have given me!
I am really glad to have such an awesome community on my channel. It motivates me to continue creating and uploading content! So thank you!
I am now using Patreon to share improved and updated lesson material, and for a small fee you can access all the material. I have worked hard, and done my best to help you understand what I teach.
I hope you will find it helpful 🙂
Material for this lesson:
Nguồn: https://svdpch.org/
Xem thêm bài viết khác: https://svdpch.org/cong-nghe/
thank you very much.!
image cs and js error? any solution for that? evyrthing else working fine with db fetch.. but image css errors
Should we really write those sentences for each page? Is there any way to make it recognize the page name automatically?
My htacess file doesnt work on my xampp server
Thanks a lot i was looking for this tutorial for a long 😍😍😍
Hey, i managed to change the url, but the .css is not loaded
Hello, can you make this for my site (I pay of course if necessary). I am afraid not to mess all my site :). More detalils after your answer
Hi… could you tell me the rewrite rule for hiding post names in address bar so that users though they copy and paste url in addressbar does't work.
Does anyone know how he is using $_GET on the rewritten URL? As soon as I reWrite the URL my $_GET variables become undefined. I've searched the internet for hours and can't figure out how this is working for him.
Hello, Daniel. Thank you for the tutorial. Do you know how I would check if the requested URL contains any file with the extension "php" and responds with HTTP code 403? I want to make my Apache web server respond with 403 Access Denied to any request for a .php-file regardless if that file exists or not.
This method doesn't work if there are js and CSS files included in the PHP page. Any help with that?
Imagine i have
example.com/edit/profile?id=1 (where edit is a real folder and inside it i have profile.php)
I want the rule to be
example.com/edit/profile/1
Can I do this with pure PHP? I've been trying and didn't manage it to get it working
I love this guy and how he simplifies difficult technical things. You are the best who ever teach the .htaccess RewriteEngine.
My CSS is not working .htaccess is working perfectly but css not
may I know your computer specs for web development? I noticed that you have a lot of apps on your taskbar I just wonder, what computer specs I need to have for web development
Thank you bro, you have saved my life!
Thank you
NOt working brother help plz (me.tahazzot@gmail.com)
its not working in my site
www.stutimahima.in
thank you it was useful
Php God 💛
Not working css
Verry interesting. But how can i rewrite this?
website.com/folder/admin/h_4&id_24
Will this actually effect search engines such as Google to index webpages?
Thanks
it is not working with me, is this because I am not online?
THANK YOUUUUUU!! I've been looking for this exact tutorial for ages.
After a long search on google i found this that solved my problem.
very good tutorial.
the lesson is wonderfully done and only lacks proper httpconf editing for when nobody managed to run .htaccess, but in this case this part deserves to be made in its own ova, i mean episode 😀 thanks teacher i always learn and get updated a lot from this channel.
If anybody has the problem of css and images not loading: With this url rewrite, you need to use absolute paths.
Before: " css/style.css"
Now: "/www/mysite/css/style.css"
Same goes for your images and javascript. Thank me later.
how can i do this on nginx??
please can u describe how to send data in url using the same process like ie test.php?id=12 how this can be done plz do reply
Thank you so much it worked perfect for me but the css styling isn't showing. Does anyone have any idea why?