Русские видео

Сейчас в тренде

Иностранные видео


Скачать с ютуб HTACCESS + PHP | Forcefully Add Ending Slash (/) In URL On Rewrite Rule | ErrorDocument в хорошем качестве

HTACCESS + PHP | Forcefully Add Ending Slash (/) In URL On Rewrite Rule | ErrorDocument 4 года назад


Если кнопки скачивания не загрузились НАЖМИТЕ ЗДЕСЬ или обновите страницу
Если возникают проблемы со скачиванием, пожалуйста напишите в поддержку по адресу внизу страницы.
Спасибо за использование сервиса savevideohd.ru



HTACCESS + PHP | Forcefully Add Ending Slash (/) In URL On Rewrite Rule | ErrorDocument

Forcefully add slash at the end of URL using htaccess and php by redirecting using ErrorDocument. ------------------------------- Code Link:- https://unpossiblepog.blogspot.com/20... Download Code:- https://unpossiblepog.com/codes/php+h... Subscribe my Channel:- http://www.youtube.com/user/SanketRoo... Facebook Page:-   / unpossiblens   Twitter Account:-   / unpossiblepog   Blog :- https://unpossiblepog.blogspot.in/ ------------------------------- Hey guys, we shall create a code to force browser to add slash at the end of URL using HTACCESS and PHP. Make sure to use INCOGNITO mode while implementing this because sometimes the HTACCESS code remains in a cookies which won’t help to run the updated code of HTACCESS. Currently in folder, we have some PHP files, each file contains some text. And we have the REWRITE RULE in HTACCESS file which will allow you to run the file without using the “.php” extension. And the rule contains an ending slash in first parameter. So if you enter the URL without extension and end with slash, it will run that page. But if you remove the ending slash, it will give you a 404 error. The best solution is to forcefully add ending slash in URL using the code. So in HTACCESS, write the following code, code link is given in the description. Notice that this file is inside the “tutorial” folder which is inside HTDOCS folder of xampp. You have to add the URL accordingly. So I have already created an error.php page which will forcefully add slash. Code is given in the description. Our strategy is to send the current URL as a request parameter when error occurs. And as you can see, it redirects and ends with slash. So that is it, thanks for watching. Like share and subscribe.

Comments