PHPackages                             gamajo/codeception-redirects - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Testing &amp; Quality](/categories/testing)
4. /
5. gamajo/codeception-redirects

AbandonedArchivedLibrary[Testing &amp; Quality](/categories/testing)

gamajo/codeception-redirects
============================

Codeception Redirects Module

0.5.0(6y ago)1120.3k31MITPHPPHP ^7.0

Since Mar 19Pushed 6y ago1 watchersCompare

[ Source](https://github.com/gamajo/codeception-redirects)[ Packagist](https://packagist.org/packages/gamajo/codeception-redirects)[ Docs](https://github.com/GaryJones/codeception-redirects)[ RSS](/packages/gamajo-codeception-redirects/feed)WikiDiscussions develop Synced today

READMEChangelog (10)Dependencies (5)Versions (13)Used By (1)

Codeception Redirects Module
============================

[](#codeception-redirects-module)

Uses the REST module to check URLs for `Location` response headers and `301` HTTP Status response codes, or redirects between protocols.

Handy for checking that `.htaccess` or other methods of web page redirects have been set up correctly.

If test fails stores last shown page in `output` dir.

Status
------

[](#status)

- Maintainer: **GaryJones**
- Stability: **alpha**
- Contact:

*Please review the code of non-stable modules and provide patches if you have issues.*

Configuration
-------------

[](#configuration)

None, but ensure that the REST module is enabled and has a `url` set.

### Example (`acceptance.suite.yml`)

[](#example-acceptancesuiteyml)

```
modules:
    enabled:
        - Redirects
        - REST:
            url: 'http://localhost'
```

Example Usage
-------------

[](#example-usage)

### 301 Permanent Redirects

[](#301-permanent-redirects)

Here's a Cest which checks 301 redirects. We turn off automatic following of redirects in the Symfony Browserkit client, so that it doesn't just follow the redirects to the final destination.

```
