{"id":23893338,"url":"https://github.com/sumpygump/static-subdir","last_synced_at":"2026-06-15T18:31:34.399Z","repository":{"id":15524169,"uuid":"18258632","full_name":"sumpygump/static-subdir","owner":"sumpygump","description":"WordPress plugin for serving static files in a subdirectory","archived":false,"fork":false,"pushed_at":"2014-04-23T14:01:23.000Z","size":168,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-23T06:12:28.917Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sumpygump.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-03-30T06:02:49.000Z","updated_at":"2014-04-23T14:01:24.000Z","dependencies_parsed_at":"2022-08-04T05:00:10.477Z","dependency_job_id":null,"html_url":"https://github.com/sumpygump/static-subdir","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/sumpygump/static-subdir","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sumpygump%2Fstatic-subdir","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sumpygump%2Fstatic-subdir/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sumpygump%2Fstatic-subdir/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sumpygump%2Fstatic-subdir/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sumpygump","download_url":"https://codeload.github.com/sumpygump/static-subdir/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sumpygump%2Fstatic-subdir/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34376121,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-15T02:00:07.085Z","response_time":63,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-01-04T14:17:48.691Z","updated_at":"2026-06-15T18:31:34.381Z","avatar_url":"https://github.com/sumpygump.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Static Subdir WordPress Plugin\n\nThis plugin allows you to specify a virtual URL path and have static content\nserved from a provided directory on disk.\n\nExample: Set the virtual path to a value like `downloads`, meaning that users\ncould visit `http://mysite.com/downloads/example.txt` to download the file.\nThe plugin will look for the file `example.txt` at the path specified by the\n*real path* setting.\n\n## Prerequisites\n\nThis plugin requires:\n\n- PHP 5.3+\n- [composer](http://getcomposer.org).\n\nIf you don't already have composer installed on your system, please follow the\ninstructions at [getcomposer.org/download/](https://getcomposer.org/download/).\n\nI recommend a system-wide installation in your `~/bin` directory. Make sure\nthis path exists and is in your systems `$PATH`.\n\n    $ cd ~/bin\n    $ curl -sS https://getcomposer.org/installer | php -- --filename=composer\n\n## Installation\n\n1. Clone this repo or put the .zip file of this plugin into the\n   `wp-content/plugins` directory of your WordPress site. It should be at\n   `wp-content/plugins/static-subdir`.\n\n2. In a terminal, run the command `composer install` while in the static-subdir\n   directory. This will install the dependencies and put them in the `vendor`\n   sub-directory.\n\n3. Go to the Plugins page in your wp-admin to see the plugin and activate it.\n\n## Usage\n\nOnce activated, there will be a settings page where you can set the following\nfields:\n\n- Virtual Path\n- Real Path\n\nThe *virtual path* is a sub-path for your static files from the root of your\nWordPress URL. Setting it to `downloads` will designate the path\nhttp://mysite.com/downloads to be the place where your desired files will be\nserved.\n\nThe *real path* is a location on disk (relative to the WordPress site root, or\nABSPATH) where the directory exists where the files are stored.\n\nSet these two values as desired and then click the button Save Changes. This\nwill register a rewrite rule with WordPress for the virtual path. Note that you\nmust enable permalinks on your site for this plugin to work. Do that in your\nwp-admin panel under Settings \u003e Permalinks. The value must be set to anything\nother than \"default.\"\n\n## Supported Content-Types\n\nThe plugin will serve up files in the real path specified and will send the\nfollowing MIME types in the `Content-Type` header for the following file\nextensions:\n\n- css: text/css\n- gz: application/x-gzip\n- html: text/html\n- ico: image/ico\n- jpg: image/jpg\n- json: application/json\n- js: text/javascript\n- log: text/plain\n- png: image/png\n- rar: application/x-rar-compressed\n- tar: application/x-tar\n- txt: text/plain\n- zip: application/zip\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsumpygump%2Fstatic-subdir","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsumpygump%2Fstatic-subdir","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsumpygump%2Fstatic-subdir/lists"}