PHP htaccess rewrites
Opened this issue · 1 comments
clsource commented
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
- Provide a
processwire_rewrites.php
file - The user has to manually include it in
index.php
- 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
- This is were the idea came from Pantheon Rewrites
- WPEngine deprecated .htaccess files https://wpengine.com/support/htaccess-deprecation/
matjazpotocnik commented
Similar request #442