Menu
PHP BABA LOGO
  • Home
  • Interview Questions
    • PHP String Interview Question
    • PHP Array Interview Qutions
    • jQuery Interview Quetions
    • PHP Interviwe Question on php.ini file
    • htaccess File Interview Quetions
  • About
PHP BABA LOGO

htaccess File Interview Quetions

Posted on May 8, 2017May 18, 2022

<Directory>

</Directory>
400 – Bad request
401 – Authorization Required
403 – Forbidden
404 – File Not Found
500 – Internal Server Error

ErrorDocument 404 /filenotfound.html

DirectoryIndex index.php3 index.php pictures.pl index.html default.htm

——————–
The use of .htaccess files can be disabled completely by setting the AllowOverride directive to none:

AllowOverride None

———–
mod_rewrite directives must go in .htaccess files.

http://httpd.apache.org/docs/2.2/rewrite/intro.html#htaccess

<VirtualHost>

RewriteEngine On
RewriteOptions Inherit

https://alexcican.com/post/how-to-remove-php-html-htm-extensions-with-htaccess/
———————————-

cache files

# 1 Month for most static assets
<filesMatch “.(css|jpg|jpeg|png|gif|js|ico)$”>
Header set Cache-Control “max-age=2592000, public”
</filesMatch>

max-age=2592000 (in secounds  2592000 1 month)

Categories

  • Docker
  • Git
  • Interview Questions
  • Laravel
  • Linux
  • php
  • Salesforce

Recent Posts

  • How to check Salesforce current release version
  • Salesforce Certification Coupons / Vouchers
  • Nested / Cascade query in SOQL
  • Declarative tools in salesforce
  • SalesForce Questions

Recent Posts

  • How to check Salesforce current release version January 12, 2023
  • Salesforce Certification Coupons / Vouchers July 19, 2022
  • Nested / Cascade query in SOQL May 11, 2022
  • Declarative tools in salesforce September 24, 2021
  • SalesForce Questions September 24, 2021
©2023 The Tech Paper | Powered by Abhinav Trivedi