KB Home | Advanced Search | News | Glossary | Login
Navel Knowledge Base Logo
Home » Categories » Apache » .htaccess Configuration
All Categories
Collapse
Category
Apache (16)
Collapse
Category
.htaccess Configuration (6)
article
Deny direct public access to all files in directory
article
Deny direct access to all .php files
article
Allow file directory listing using .htaccess
article
.htaccess - how to force “www.” in a generic way?
article
The ’Access-Control-Allow-Origin’ header with Giant Apache!
article
The ’Access-Control-Allow-Origin’ header contains multiple values
Expand
Category
Configuration (5)
article
Apache - Internal Server Error - LimitInternalRecursion
article
Server error: Connection reset by peer | End of script output before headers
article
"End of script output before headers" in Apache + PHP
article
How to Change the Apache Error Messages
article
PHP Warning: PHP Startup: Unable to load dynamic library ’curl’
Expand
Category
App Tools (4)
Expand
Category
CentOS (11)
Expand
Category
CMS (2)
Expand
Category
CSS Tricks (4)
Expand
Category
Electronis > (1)
Expand
Category
JavaScript (9)
Expand
Category
jQuery (5)
Expand
Category
Linux (1)
Expand
Category
Linux Command Line (13)
Expand
Category
MikroTik (1)
Expand
Category
MySQL (25)
Expand
Category
Network (2)
Expand
Category
Nginx (1)
Expand
Category
PHP (12)
Expand
Category
PHP Tricks (2)
Expand
Category
Smarty (1)
empty
Category
Smarty Tricks (0)
Expand
Category
SSL (1)
Expand
Category
Third-party (2)
Expand
Category
TypeScript (1)
Expand
Category
Virtualization (18)
Expand
Category
VMware (1)
Expand
Category
Webmin (10)
Expand
Category
Windows (8)
Expand
Category
WordPress (9)
.htaccess Configuration Articles RSS FeedIcon Subscriber Subscribe
.htaccess - how to force “www.” in a generic way?
Viewed 1237 times since Sat, Feb 20, 2021
RewriteEngine On RewriteCond %{HTTP_HOST} !="" RewriteCond %{HTTP_HOST} !^www\. [NC] RewriteCond %{HTTPS}s ^on(s)| RewriteRule ^ http%1://www.%{HTTP_HOST}%{REQUEST_URI} [R=301,L]Ref:https://stackoverflow.com/questions/4916222/htaccess-how-to... Read More
The ’Access-Control-Allow-Origin’ header contains multiple values
Viewed 771 times since Mon, Oct 19, 2020
SetEnvIf Origin "^(https?://localhost|https://[a-z]+\.my\.base\.domain)$" ORIGIN_SUB_DOMAIN=$1 Header set Access-Control-Allow-Origin: "%{ORIGIN_SUB_DOMAIN}e" env=ORIGIN_SUB_DOMAINRef:https://stackoverflow.com/questions/22343384/the... Read More
The ’Access-Control-Allow-Origin’ header with Giant Apache!
Viewed 765 times since Mon, Oct 19, 2020
  SetEnvIf Origin ^(https?://(?:.+\.)?aonesalons\.com(?::\d{1,5})?)$ CORS_ALLOW_ORIGIN=$1 Header append Access-Control-Allow-Origin %{CORS_ALLOW_ORIGIN}e env=CORS_ALLOW_ORIGIN The 'Access-Control-Allow-Origin' header... Read More
Allow file directory listing using .htaccess
Viewed 606 times since Fri, Nov 26, 2021
Options +IndexesIndexOptions FancyIndexing FoldersFirst SuppressIcon NameWidth=* DescriptionWidth=* Read More
Deny direct access to all .php files
Viewed 599 times since Wed, Dec 22, 2021
<Files *.php> Order allow,deny Deny from all</Files> Read More
Deny direct public access to all files in directory
Viewed 495 times since Wed, Dec 22, 2021
  <Files *.*> Order allow,deny Deny from all</Files> Read More
 
Subscribe to knowledgebase
Get notified when new articles are added to the knowledgebase.