{"slug": "phanan--htaccess", "title": "Htaccess", "description": "\u2702A collection of useful .htaccess snippets.", "github_url": "https://github.com/phanan/htaccess", "stars": "13K", "tag": "Back-End Development", "entry_count": 4, "subcategory_count": 49, "subcategories": [{"name": "Table of Contents", "parent": "", "entries": [{"name": "Rewrite and Redirection", "url": "#rewrite-and-redirection", "description": ""}, {"name": "Security", "url": "#security", "description": ""}, {"name": "Performance", "url": "#performance", "description": ""}, {"name": "Miscellaneous", "url": "#miscellaneous", "description": ""}]}, {"name": "Force www", "parent": "Rewrite and Redirection", "entries": []}, {"name": "Force www in a Generic Way", "parent": "Rewrite and Redirection", "entries": []}, {"name": "Force non-www", "parent": "Rewrite and Redirection", "entries": []}, {"name": "Force non-www in a Generic Way", "parent": "Rewrite and Redirection", "entries": []}, {"name": "Force HTTPS", "parent": "Rewrite and Redirection", "entries": []}, {"name": "Force HTTPS Behind a Proxy", "parent": "Rewrite and Redirection", "entries": []}, {"name": "Force Trailing Slash", "parent": "Rewrite and Redirection", "entries": []}, {"name": "Remove Trailing Slash", "parent": "Rewrite and Redirection", "entries": []}, {"name": "Redirect a Single Page", "parent": "Rewrite and Redirection", "entries": []}, {"name": "Redirect Using RedirectMatch", "parent": "Rewrite and Redirection", "entries": []}, {"name": "Alias a Single Directory", "parent": "Rewrite and Redirection", "entries": []}, {"name": "Alias Paths to Script", "parent": "Rewrite and Redirection", "entries": []}, {"name": "Redirect an Entire Site", "parent": "Rewrite and Redirection", "entries": []}, {"name": "Alias \u201cClean\u201d URLs", "parent": "Rewrite and Redirection", "entries": []}, {"name": "Exclude URL from Redirection", "parent": "Rewrite and Redirection", "entries": []}, {"name": "Deny All Access", "parent": "Security", "entries": []}, {"name": "Deny All Access Except Yours", "parent": "Security", "entries": []}, {"name": "Allow All Access Except Spammers'", "parent": "Security", "entries": []}, {"name": "Deny Access to Hidden Files and Directories", "parent": "Security", "entries": []}, {"name": "Deny Access to Backup and Source Files", "parent": "Security", "entries": []}, {"name": "Disable Directory Browsing", "parent": "Security", "entries": []}, {"name": "Disable Image Hotlinking", "parent": "Security", "entries": []}, {"name": "Disable Image Hotlinking for Specific Domains", "parent": "Security", "entries": []}, {"name": "Password Protect a Directory", "parent": "Security", "entries": []}, {"name": "Password Protect a File or Several Files", "parent": "Security", "entries": []}, {"name": "Block Visitors by Referrer", "parent": "Security", "entries": []}, {"name": "Block Specific User Agents", "parent": "Security", "entries": []}, {"name": "Prevent Framing the Site", "parent": "Security", "entries": []}, {"name": "Content Security Policy (CSP)", "parent": "Security", "entries": []}, {"name": "Prevent MIME Type Sniffing", "parent": "Security", "entries": []}, {"name": "Set Referrer Policy", "parent": "Security", "entries": []}, {"name": "Set Permissions Policy", "parent": "Security", "entries": []}, {"name": "Remove Server Signature", "parent": "Security", "entries": []}, {"name": "Compress Text Files", "parent": "Performance", "entries": []}, {"name": "Set Expires Headers", "parent": "Performance", "entries": []}, {"name": "Set Cache-Control Headers", "parent": "Performance", "entries": []}, {"name": "Turn eTags Off", "parent": "Performance", "entries": []}, {"name": "Set PHP Variables", "parent": "Miscellaneous", "entries": []}, {"name": "Custom Error Pages", "parent": "Miscellaneous", "entries": []}, {"name": "Custom Maintenance Page", "parent": "Miscellaneous", "entries": []}, {"name": "Force Downloading", "parent": "Miscellaneous", "entries": []}, {"name": "Prevent Downloading", "parent": "Miscellaneous", "entries": []}, {"name": "Allow Cross-Domain Fonts", "parent": "Miscellaneous", "entries": []}, {"name": "Enable CORS", "parent": "Miscellaneous", "entries": []}, {"name": "Auto UTF-8 Encode", "parent": "Miscellaneous", "entries": []}, {"name": "Set Custom MIME Types", "parent": "Miscellaneous", "entries": []}, {"name": "Switch to Another PHP Version", "parent": "Miscellaneous", "entries": []}, {"name": "Serve WebP/AVIF Images", "parent": "Miscellaneous", "entries": []}], "name": ""}