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
Usage
Type part of a snippet, press enter , and the snippet unfolds.
Apache Conf Snippets
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 |
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 |
Snippet |
Purpose |
a-compress-text-files |
Compress Text Files |
a-set-expires-headers |
Set Expires Headers |
a-turn-etags-off |
Turn eTags Off |
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
- Install Visual Studio Code 1.10.0 or higher
- Launch Code
- From the command palette
Ctrl -Shift -P (Windows, Linux) or Cmd -Shift -P (OSX)
- Select
Install Extension
- Choose the extension
- Reload Visual Studio Code
| |