Mod Rewrite Simulator - PHP mod_rewrite

by themac

The PHP alternative to apache’s mod_rewrite

PHP mod_rewrite 1.0

Keep in touch with updates and subscribe to
Keep Up To Date

If you have a mod_rewrite using web-project and your server doesn’t support mod_rewrite you should usually turn the friendly urls in your documents into “ugly ones”, and this could take time :/

with the php mod_rewrite you could skim over this workings

just set your ErrorDocument 404 in the .htaccess to the PHP file which is using modrewrite.class.php and this should do the work :)

A list of things you could do with this class can be found under http://mac.homac.net/projects/TF_PHPModRewrite/, there’s also a link to a version of SGM2 .0 which is running with php mod_rewrite instead of using apache’s mod_rewrite
php mod_rewrite doesn’t support all features of apache’s mod_rewrite but you really can use a lot of known rules

I’m thankful for your inputs

This class simulates the work of apache’s mod_rewrite function It could be used for servers where the mod_rewrite function isn’t enabled The .htaccess or another mod_rewrite rules containing file will be parsed by this class usuallly SEO -friendly URLs will return a 404 when mod_rewrite isn’t work – but this class works within the 404 target and simulates the friendly urls, so you don’t have to correct your paths

Requirements

possibilty to set ErrorDocument 404 for your webserver

Future plans

Adding possibility to define rules and rewritebase within the class/error doument. So you don’t have to use an external file, if you don’t want to

I hope you like it
mac

free counters

$6

Prepaid customers
pay just $4 - how? Prepay Your Account With our deposit system not only will purchasing be much faster, but we’ll also take $2 off the price! Find Out More Price

You must sign in or sign up to purchase this item.

Purchase 5 purchases

File Types Included
PHP
Item Attributes
Created 20 February 10
PHP Version 5.x
MySQL Version N/A
PHP Framework N/A
Compatible Browsers FireFox 2, FireFox 3, IE6, IE7, IE8, Opera, Safari
PHP Files Included PHP