Download the PHP package andersundsehr/reduce-duplicate-content without Composer

On this page you can find all versions of the php package andersundsehr/reduce-duplicate-content. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

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.
Please rate this library. Is it a good library?

Informations about the package reduce-duplicate-content

TYPO3 EXT:reduce_duplicate_content

composer req andersundsehr/reduce-duplicate-content

What dose this Extension do?

it aims to reduce the URL's there the same content is reachable.

The main point is that by default TYPO3's pages are accessible like this: /en/page-a and /en/page-a/.

With one simple setting you can change if you always want trailing Slashes or if you never want them.

This setting only sets the way TYPO3 generates the URL's.
But the content is still accessible by both URL's

This is there this Extension comes in.

How dose it solve this Problem:

We Generate a URL for the Current Page and Language.
If this URL matches the current Request URL (ignoring the Slash at the end.)
Only than we directly compare the URL's.
If they do not match we redirect to the correct URL.

How is it different to studiomitte/redirect2trailingslash

EXT:redirect2trailingslash is only usefull if you always want slashes at the end.
With our approach it is also possible to remove the slashes.
Also it should have way less errors because of the way we compare it with the generated URL's.

If you want Trailing Slashes:

you can configure a routeEnhancer like this:
file: config/sites/.../config.yaml `

If you do not want Trailing Slashes:

you can remove the RouteEnhancer PageType.
or make sure that you do not use the default:

file: config/sites/.../config.yaml `

If you use staticfilecache you need to add these lines in the nginx config:

`

Important! If you use staticfilecache:

If you use staticfilecache, you have to disable the fallback middleware of staticfilecache: image

Change the 307 Status Code:

You can change it in the Extension Settings.

with ♥️ from anders und sehr GmbH

If something did not work 😮
or you appreciate this Extension 🥰 let us know.

We are hiring https://www.andersundsehr.com/karriere/


All versions of reduce-duplicate-content with dependencies

PHP Build Version
Package Version
Requires php Version ~8.1.0 || ~8.2.0 || ~8.3.0
typo3/cms-core Version ^11.5.11 || ^12.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 andersundsehr/reduce-duplicate-content contains the following files

Loading the files please wait ....