processwire / processwire-requests

ProcessWire feature requests.
39 stars 0 forks source link

PHP htaccess rewrites #502

Open clsource opened 10 months ago

clsource commented 10 months ago

Short description of the enhancement

Include a processwire_rewrites.php file in index.php to allow PHP handle rewrites instead of .htaccess.

Optional: Steps that explain the enhancement

  1. Provide a processwire_rewrites.php file
  2. The user has to manually include it in index.php
  3. Configure webserver to send all requests to index.php

Current vs. suggested behavior

Current Only apache servers are officially supported.

Suggested Support any webserver by adding an optional include.

Why would the enhancement be useful to users?

Other webservers like YAWS can be used to serve Processwire.

This file gets included at the very beginning of ProcessWire's index.php file, and will perform rewrites and redirects, prior to full ProcessWire bootstrap.

Allowing using other webservers to have the same security levels of Apache, not having to manually migrate .htaccess rules.

Optional: Screenshots/Links that demonstrate the enhancement

matjazpotocnik commented 10 months ago

Similar request https://github.com/processwire/processwire-requests/issues/442