![]() |
VOOZH | about |
dotnet add package uwap.RedirectPlugin --version 1.0.2
NuGet\Install-Package uwap.RedirectPlugin -Version 1.0.2
<PackageReference Include="uwap.RedirectPlugin" Version="1.0.2" />
<PackageVersion Include="uwap.RedirectPlugin" Version="1.0.2" />Directory.Packages.props
<PackageReference Include="uwap.RedirectPlugin" />Project file
paket add uwap.RedirectPlugin --version 1.0.2
#r "nuget: uwap.RedirectPlugin, 1.0.2"
#:package uwap.RedirectPlugin@1.0.2
#addin nuget:?package=uwap.RedirectPlugin&version=1.0.2Install as a Cake Addin
#tool nuget:?package=uwap.RedirectPlugin&version=1.0.2Install as a Cake Tool
Plugin for WebFramework that adds simple static redirects.
Website: https://uwap.org/projects/redirect-plugin
Changelog: https://uwap.org/changes/redirect-plugin
You can add this plugin to your WF project by installing the NuGet package: uwap.RedirectPlugin
You can also download the source code and reference it in your project file.
Once installed, add the following things to your program start code:
You can do all that with a single line of code before starting the WF server:<br/><code>PluginManager.Map("any/r", new uwap.WebFramework.Plugins.RedirectPlugin());</code>
To create a redirect from <code>[mapped path]/[redirect path]</code> to <code>[target]</code>, create a new file <code>../Redirects/[redirect path].txt</code> (you can also create subfolders) and enter <code>[target]</code> as the content.
Currently, all instances of the project use the same folder for their redirects. The redirects are stored in memory during runtime and updated by the worker.
Example: After mapping the plugin to <code>uwap.org/r</code> and creating a file <code>../Redirects/test.txt</code> containing <code>https://github.com/pmpwsk</code>, visitors will be redirected from <code>https://uwap.org/r/github</code> to <code>https://github.com/pmpwsk</code>.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net9.0 net9.0 is compatible. net9.0-android net9.0-android was computed. net9.0-browser net9.0-browser was computed. net9.0-ios net9.0-ios was computed. net9.0-maccatalyst net9.0-maccatalyst was computed. net9.0-macos net9.0-macos was computed. net9.0-tvos net9.0-tvos was computed. net9.0-windows net9.0-windows was computed. net10.0 net10.0 was computed. net10.0-android net10.0-android was computed. net10.0-browser net10.0-browser was computed. net10.0-ios net10.0-ios was computed. net10.0-maccatalyst net10.0-maccatalyst was computed. net10.0-macos net10.0-macos was computed. net10.0-tvos net10.0-tvos was computed. net10.0-windows net10.0-windows was computed. |
This package is not used by any NuGet packages.
This package is not used by any popular GitHub repositories.