Package Data | |
---|---|
Maintainer Username: | miladimos |
Maintainer Contact: | miladimos@outlook.com (miladimos) |
Package Create Date: | 2022-02-04 |
Package Last Update: | 2022-04-09 |
Home Page: | |
Language: | PHP |
License: | MIT |
Last Refreshed: | 2024-12-11 15:14:19 |
Package Statistics | |
---|---|
Total Downloads: | 62 |
Monthly Downloads: | 1 |
Daily Downloads: | 0 |
Total Stars: | 1 |
Total Watchers: | 1 |
Total Forks: | 0 |
Total Open Issues: | 0 |
A redirector package
Seo Toolkit for laravel projects
composer require laravelir/redirector
Laravelir\Redirector\Providers\RedirectorServiceProvider::class, # provider
'Redirector' => Laravelir\Redirector\Facades\Redirector::class # aliases
php artisan redirector:install
for redirector service add this middleware
'redirector => \Laravelir\Redirector\Http\Middleware\RedirectorMiddleware::class,
for enforce https this middleware
'enforce_https' => \Laravelir\Redirector\Http\Middleware\RedirectorEnforceHttps::class,
add this to env:
REDIRECTOR_ENFORCE_HTTPS=true
use Laravelir\Redirector\Services;
$redirector = resolve(Redirector::class);
$redirector->store($source_url, $destination_url, $response_code);
$redirector->shouldRedirect(Request $request);
$redirector->redirect(Request $request);
enable/disable www to non-www
add slashed to end of all routes or remove it
force redirect http to https
add route hit counter
implements features of wordpress plugins like redirect-301, SEO Redirection Premium, safe-redirect-manager, Yoast seo Pro, Rank Math
add redis - file - Mysql - Mongodb engine Repository
add redirect ro lower
abort index.php page to 404
add exclude urls for redirects
add wildcard params (Regular Expression Constraints)
composer test
Please see CHANGELOG for more information on what has changed recently.
Please see CONTRIBUTING for details.
Please review our security policy on how to report security vulnerabilities.
The MIT License (MIT). Please see License File for more information.