62: How to Remove the File Extension and Variables From the URL | Remove .php in URL | PHP Tutorial



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/

33 thoughts on “62: How to Remove the File Extension and Variables From the URL | Remove .php in URL | PHP Tutorial”

  1. Should we really write those sentences for each page? Is there any way to make it recognize the page name automatically?

    Reply
  2. 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

    Reply
  3. 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.

    Reply
  4. 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.

    Reply
  5. 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.

    Reply
  6. 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

    Reply
  7. I love this guy and how he simplifies difficult technical things. You are the best who ever teach the .htaccess RewriteEngine.

    Reply
  8. 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

    Reply
  9. 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.

    Reply
  10. 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.

    Reply
  11. 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

    Reply

Leave a Comment