Skip to content

ricallinson/php-rewrite

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Php-rewrite

Build Status

Apache rewrite rule generator packaged as a php-require module.

Example

This module reads comments in PHP files;

<?php
// @route GET /index.html
echo "Hello, world!";

And generates a .htaccess file from them;

RewriteEngine On
RewriteBase /

RewriteCond %{REQUEST_METHOD} GET
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^index.html$ /foo/bar/file.php [L,QSA]

About

Generates a configuration for the Apache mod_rewrite module from comments found in PHP files.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages