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

preview_player
Показать описание
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 :)

Рекомендации по теме
Комментарии
Автор

Watching Daniel teaching php, feels like when I started programming in late 2015, thanks to your videos.

matttepp
Автор

Hei...I just felt blessed to found your tut on youtube...No one ever taught like you...Bundle of thanks

nancyfazal
Автор

hell that htaccess has some annoying syntax..

TheLeontheking
Автор

you are the best bro! i have been watching your php tutorial for month & today is the last episode .nobody teaches as clearly as you taught.i just want you to know i learnt php from you! thank you so much! i know php, java script, html, css nd boostrap ! will you suggest me a book or some thing ! or should i start doing web devoulopment project on my own to check out and improve my skill!? once again ! thank you so much!

ahmedjubayer
Автор

THANK I've been looking for this exact tutorial for ages.

idHawk
Автор

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.

olekristianmller-hansen
Автор

If your script doesn't load javascript and css when you redirect using htaccess as shown here, it is because the location of this files were not found by the server. You can add this tag in your html head section of your script: <base href="/your_folder_name/"> or just <base href="/"> incase you are not in a particular custom folder (i.e if you are in xampp/htdocs/ or if you are on a server you are on home/public_html/).
Make sure the paths to your files are correctly written

joelnjoroge
Автор

Thanks, just what I needed for a specific part of my project.

Ditzj
Автор

Neat stuff. I will use it to rewrite .html files to .php files and also to remove the .php files from the URL. All while still being able to parse legacy links that used the old URLs.

gustavinus
Автор

nice bro! Your my idol in your every explanation, it so clear and understable! keep up.... May God Guide you..

codeseven
Автор

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 :D thanks teacher i always learn and get updated a lot from this channel.

HomelessDeamon
Автор

Thank You So Much
Your Are Really Helping

Abhishek-iqes
Автор

After all day searching, you saved me ! <3 very helpful video even for someone who have not followed the series !

VietLe-eqyk
Автор

Brilliant, thanks, well explained. Now off to try and implement!

webcodefun
Автор

Explained very well. Exactly what I needed.

williepietersen
Автор

Greetings, one really GOOD tutorial i gotta say, but i have one question if you dont mind... is there a particular reason why when i load the same url with the new parameters it wont grab the css file? shows up all the information but without visuals. and when i used the normal paremeters the css do loads up.

jorgecid
Автор

Hello sir, I used your method but when I change old url to new css and js isn't applied. Can you tell how to fix it?

the-pratik
Автор

..


Thank you
This tutorial is very helpful with short URL script ❤️.

Mutlaq
Автор

Hi Daniel, thank you for the tutorial. I did as your, everything is ok, but images. All images is added "article/" before image, and make it could not be showed. for example : files/picture.jpg become article/files/picture.jpg
Could you give any solution for that issues?
Thank you.
Hue Le

leluonghue
Автор

Hi Daniel, this part is clear, but what if I send a variable via web form in the input tag and wanna to appear in the "clean" url? For example, I have input tag with name=town and value=zagreb and wanna url to be */town/zagreb ?

nebojsa