https://github.com/hrdtbs/vscode-apacheconf-snippets
Thanks for over 160,000 installs π Apache Conf Snippets for VS Code. Install β
https://github.com/hrdtbs/vscode-apacheconf-snippets
apache htaccess vscode-extension
Last synced: 5 months ago
JSON representation
Thanks for over 160,000 installs π Apache Conf Snippets for VS Code. Install β
- Host: GitHub
- URL: https://github.com/hrdtbs/vscode-apacheconf-snippets
- Owner: hrdtbs
- License: mit
- Created: 2017-09-20T21:37:15.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2024-07-21T08:46:06.000Z (almost 2 years ago)
- Last Synced: 2024-07-22T08:57:52.962Z (almost 2 years ago)
- Topics: apache, htaccess, vscode-extension
- Homepage: https://marketplace.visualstudio.com/items?itemName=eiminsasete.apacheconf-snippets
- Size: 1.93 MB
- Stars: 8
- Watchers: 3
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
Thanks for over 64000 installsπ
# Apache Conf Snippets for VS Code
This extension for Visual Studio Code adds snippets for Apache Conf (.htaccess file).

## Requirement
[mrmlnc.vscode-apache](https://marketplace.visualstudio.com/items?itemName=mrmlnc.vscode-apache)
## Usage
Type part of a snippet, press `enter`, and the snippet unfolds.
### Apache Conf Snippets
- Rewrite and Redirection
| Snippet | Purpose |
| ------------------------------------ | -------------------------------- |
| `a-force-www` | Force www |
| `a-force-www-in-a-generic-way` | Force www in a Generic Way |
| `a-force-non-www` | Force non-www |
| `a-force-non-www-in-a-generic-way` | Force non-www in a Generic Way |
| `a-force-https` | Force HTTPS |
| `a-force-https-behind-a-proxy` | Force HTTPS Behind a Proxy |
| `a-force-trailing-slash` | Remove Trailing Slash |
| `a-redirect-a-single-page` | Redirect a Single Page |
| `a-redirect-using-redirectmatch` | Redirect Using RedirectMatch |
| `a-alias-a-single-directory` | Alias a Single Directory |
| `a-alias-paths-to-script` | Alias Paths To Script |
| `a-redirect-an-entire-site` | Redirect an Entire Site |
| `a-alias-clean-urls` | Alias βCleanβ URLs |
| `a-exclude-url-from-redirection` | Exclude URL from Redirection |
| `a-allow-to-refresh-in-react-router` | Allow to refresh in react-router |
- Security
| Snippet | Purpose |
| ------------------------------------------------- | --------------------------------------------- |
| `a-deny-all-access` | Deny All Access |
| `a-deny-all-access-except-yours` | Deny All Access Except Yours |
| `a-allow-all-access-except-spammers'` | Allow All Access Except Spammers' |
| `a-deny-access-to-hidden-files-and-directories` | Deny Access to Hidden Files and Directories |
| `a-deny-access-to-backup-and-source-files` | Deny Access to Backup and Source Files |
| `a-disable-directory-browsing` | Disable Directory Browsing |
| `a-disable-image-hotlinking` | Disable Image Hotlinking |
| `a-disable-image-hotlinking-for-specific-domains` | Disable Image Hotlinking for Specific Domains |
| `a-password-protect-a-directory` | Password Protect a Directory |
| `a-password-protect-a-file-or-several-files` | Password Protect a File or Several Files |
| `a-block-visitors-by-referrer` | Block Visitors by Referrer |
| `a-prevent-framing-the-site` | Prevent Framing the Site |
- Performance
| Snippet | Purpose |
| ----------------------- | ------------------- |
| `a-compress-text-files` | Compress Text Files |
| `a-set-expires-headers` | Set Expires Headers |
| `a-turn-etags-off` | Turn eTags Off |
- Miscellaneous
| Snippet | Purpose |
| ------------------------------------------------ | -------------------------------------------- |
| `a-compress-text-files` | Compress Text Files |
| `a-set-expires-headers` | Set Expires Headers |
| `a-turn-etags-off` | Turn eTags Off |
| `a-set-php-variables` | Set PHP Variables |
| `a-custom-error-pages` | Custom Error Pages |
| `a-force-downloading` | Force Downloading |
| `a-prevent-downloading` | Prevent Downloading |
| `a-allow-cross-domain-fonts` | Allow Cross-Domain Fonts |
| `a-auto-utf-8-encode` | Auto UTF-8 Encode |
| `a-switch-to-another-php-version` | Switch to Another PHP Version |
| `a-disable-internet-explorer-compatibility-view` | Disable Internet Explorer Compatibility View |
| `a-serve-webp-images` | Serve WebP Images |
## Installation
1. Install Visual Studio Code 1.10.0 or higher
1. Launch Code
1. From the command palette `Ctrl`-`Shift`-`P` (Windows, Linux) or `Cmd`-`Shift`-`P` (OSX)
1. Select `Install Extension`
1. Choose the extension
1. Reload Visual Studio Code