All Projects → OwenMelbz → domain-enforcement

OwenMelbz / domain-enforcement

Licence: other
Laravel 5+ Middleware to enforce a single domain on your application. e.g non-www. to www.

Programming Languages

PHP
23972 projects - #3 most used programming language

Projects that are alternatives of or similar to domain-enforcement

mongoose-slug-plugin
Slugs for Mongoose with history and i18n support (uses speakingurl by default, but you can use any slug library such as limax, slugify, mollusc, or slugme)
Stars: ✭ 21 (-16%)
Mutual labels:  redirect
laravel-backup-shield
🔒Password protection (and encryption) for your laravel backups.
Stars: ✭ 32 (+28%)
Mutual labels:  laravel-5-package
panichd
Ticketing system for Laravel 5.1 - 8.x. Allows to create new tickets via form only. Includes file attachments, ticket tags, filtering, scheduling and e-mail notifications.
Stars: ✭ 78 (+212%)
Mutual labels:  laravel-5-package
TwitterSearch2Gephi
This windows CLI app lets you collect data from twitter via REST API and convert it into a CSV data set that can be used with Gephi. Other social networks (Reddit, Youtube, WWW) are also supported.
Stars: ✭ 21 (-16%)
Mutual labels:  www
artisan-shortcuts
🍰 Register shortcuts to execute multiple artisan commands
Stars: ✭ 56 (+124%)
Mutual labels:  laravel-5-package
vps
A laravel 5 package to easily create and maintain vps on digital ocean
Stars: ✭ 59 (+136%)
Mutual labels:  laravel-5-package
laravel-pagetitle
Laravel package for managing page titles in blade views
Stars: ✭ 19 (-24%)
Mutual labels:  laravel-5-package
smart-schema
A Laravel package to enable auto generation of forms
Stars: ✭ 18 (-28%)
Mutual labels:  laravel-5-package
Settings
A Laravel multi-tenant settings manager
Stars: ✭ 36 (+44%)
Mutual labels:  laravel-5-package
Laravel-Unsplash-Wrapper
A Laravel wrapper for Unsplash API's.
Stars: ✭ 21 (-16%)
Mutual labels:  laravel-5-package
laravel-jarvis
Achieve Your Ambition With Me .
Stars: ✭ 32 (+28%)
Mutual labels:  laravel-5-package
cdek-sdk
SDK для СДЭК
Stars: ✭ 38 (+52%)
Mutual labels:  laravel-5-package
laravel-docweaver
Product documentation generation package for Laravel.
Stars: ✭ 36 (+44%)
Mutual labels:  laravel-5-package
laravel-materialize-css
Materialize CSS Framework for Laravel 5
Stars: ✭ 45 (+80%)
Mutual labels:  laravel-5-package
maintenance-mode
An enhanced maintenance mode for Laravel.
Stars: ✭ 117 (+368%)
Mutual labels:  laravel-5-package
openredir
redirect file open operations via LD_PRELOAD
Stars: ✭ 23 (-8%)
Mutual labels:  redirect
wechat-redirect
📨微信跳转-微信浏览器中直接唤起本地浏览器和App
Stars: ✭ 67 (+168%)
Mutual labels:  redirect
lara-block-io
A Laravel Package/Facade for the Block.io API
Stars: ✭ 22 (-12%)
Mutual labels:  laravel-5-package
devtube
Laravel YouTube and Online Video viewing and download interface.
Stars: ✭ 30 (+20%)
Mutual labels:  laravel-5-package
laravel-google-ads
Google Adwords API for Laravel
Stars: ✭ 60 (+140%)
Mutual labels:  laravel-5-package

Laravel 5+ Domain / APP_URL Enforcement

An automatic piece of middleware for Laravel 5+, which will force users to access your application via what is defined in the APP_URL - especially useful for SEO forcing non-www users to www etc, unless specified in the ignore list

Usage

  1. Install via composer composer require owenmelbz/domain-enforcement

  2. Register the service provider - typically done inside the app.php providers array e.g OwenMelbz\DomainEnforcement\DomainEnforcementServiceProvider::class

  3. Add ENFORCE_DOMAIN=true to your application environment config e.g .env

  4. Enjoy your stress free architecture agnostic redirects

Configuration

If you publish the config via php artisan vendor:publish --provider="OwenMelbz\DomainEnforcement\DomainEnforcementServiceProvider" you can exclude urls from getting enforced.

Why?

Too often we've wasted time configuring redirections, with proxy systems like CloudFlare, with apache development machines and nginx production, this removes all the headache and can simply be turned off and on at a whim.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].