Download the PHP
package emran-alhaddad/noindex-redirect without Composer
On this page you can find all versions of the php package
emran-alhaddad/noindex-redirect. It is possible to download/install
these versions without Composer. Possible dependencies are resolved
automatically.
Vendor emran-alhaddad Package noindex-redirect Short Description Disable indexing (noindex/nofollow) and optionally redirect frontend requests, with a Statamic CP Utility. License
MIT
After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.
Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.
In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories.
In this case some credentials are needed to access such packages.
Please use the auth.json textarea to insert credentials, if a package is coming from a private repository.
You can look here for more information.
Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
To use Composer is sometimes complicated. Especially for beginners.
Composer needs much resources. Sometimes they are not available on a simple webspace.
If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Disable indexing (noindex, nofollow) for your Statamic site and optionally redirect all frontend requests to another domain — managed from a Control Panel Utility.
Requirements
PHP ^8.1
Statamic ^4.0, ^5.0, or ^6.0
Installation
Control Panel Utility
Go to Control Panel → Utilities → Noindex Redirect.
Settings are stored in storage/app/noindex-redirect/settings.json and will override config/env values until you click Reset to config.
Injects <meta name="robots" content="noindex, nofollow"> into the HTML <head> for text/html responses.
Covers normal frontend pages and frontend 404/unmatched responses.
Optionally manages public/robots.txt (see below).
Still works even if Statamic frontend routes are disabled in config/statamic/routes.php.
robots.txt behavior
Some servers (including local dev setups) will serve public/robots.txt directly and bypass Laravel routes.
If NOINDEX_REDIRECT_MANAGE_PUBLIC_ROBOTS_TXT=true, the addon will:
Write a managed public/robots.txt when indexing is disabled (Disallow: /).
Back up any existing public/robots.txt to storage/app/noindex-redirect/robots.backup.txt before overriding it.
Restore the backup when indexing is re-enabled.
If the public directory is not writable, robots.txt syncing is skipped.
Redirect
When Enable Redirect is enabled and a redirect_url is set, all frontend GET/HEAD requests will be redirected (301) to the configured URL (path + query preserved).
Control Panel, !/ actions (including !/forms), and GraphQL routes are excluded.
License
MIT. See LICENSE.
All versions of noindex-redirect with dependencies
Requiresphp Version
^8.1 statamic/cms Version
^4.0|^5.0|^6.0
Composer command for our command line client (download client)This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free.Standard composer command
The package emran-alhaddad/noindex-redirect contains the following files
Loading the files please wait ...
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.