An open API service indexing awesome lists of open source software.

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 β†’

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).

![Use Extension](./img/use-extension-1.gif)

## 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