In this PHP tutorial, you will learn the basics of apache configuration files & how to work with them. You will also learn how to rewrite URLs using .htaccess files & the difference between .htaccess & httpd.conf files and why you should not use .htaccess files.
NOTE
At 13:20 I copied htaccess content into vhosts config, if it does not work for you or you are setting rewrite rules globally then try the following instead:
RewriteCond %{LA-U:REQUEST_FILENAME} !-f
RewriteCond %{LA-U:REQUEST_FILENAME} !-d
The reason for it is because LA-U (look-ahead URL based) is needed for the proper value of REQUEST_FILENAME in some cases. More info on it can be read on https://httpd.apache.org/docs/current/mod/mod_rewrite.html (search for LA-U)
SOME OF THE WAYS YOU CAN SUPPORT THE CHANNEL
NOTE
At 13:20 I copied htaccess content into vhosts config, if it does not work for you or you are setting rewrite rules globally then try the following instead:
RewriteCond %{LA-U:REQUEST_FILENAME} !-f
RewriteCond %{LA-U:REQUEST_FILENAME} !-d
The reason for it is because LA-U (look-ahead URL based) is needed for the proper value of REQUEST_FILENAME in some cases. More info on it can be read on https://httpd.apache.org/docs/current/mod/mod_rewrite.html (search for LA-U)
SOME OF THE WAYS YOU CAN SUPPORT THE CHANNEL
- Category
- Program With Gio
- Tags
- php8, learn php, php tutorial

Be the first to comment