https://github.com/pecuchet/wp-htaccess
htaccess boilerplate for wordpress
https://github.com/pecuchet/wp-htaccess
apache2 htaccess wordpress
Last synced: 5 days ago
JSON representation
htaccess boilerplate for wordpress
- Host: GitHub
- URL: https://github.com/pecuchet/wp-htaccess
- Owner: pecuchet
- Created: 2018-09-13T14:23:31.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-09-13T14:28:11.000Z (over 7 years ago)
- Last Synced: 2025-03-05T14:16:19.427Z (about 1 year ago)
- Topics: apache2, htaccess, wordpress
- Size: 1.95 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# WordPress htaccess boilerplate for Apache 2.4
See also:
- [Creare/WP-htaccess](https://github.com/Creare/WP-htaccess/blob/master/.htaccess)
- [roots/wp-h5bp-htaccess](https://github.com/roots/wp-h5bp-htaccess/blob/master/h5bp-htaccess.conf)
## Disabling access log for specific file types
```
# in your .htaccess
SetEnvIf Request_URI "\.(css|js|png|jpe?g|gif|svg|map|woff2|ico)(\?.*)?$" dontlog
# in httpd.conf or httpd-vhosts.conf
CustomLog ${APACHE_LOG_DIR}/access.log combined env=!dontlog
```