CodeCanyon

Mod Rewrite Simulator - PHP mod_rewrite

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

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

$4Regular Licence

$4

Regular Licence a website (commercial, personal, client), or intranet site project - Details

$20Extended Licence

$20

Extended Licence a website template for sale (including on ThemeForest or ActiveDen) - Details

22 Purchases 2 Comments

Buyer Rating
12345 ( 6 ratings )
themac

themac

  • Has been a member for 2-3 years
  • Exclusive Author
  • Sold between 10 000 and 50 000 dollars
  • Bought between 10 and 49 items
  • Austria
  • Referred between 10 and 49 users
View Portfolio
Created 20 February 10
Compatible Browsers FireFox 2, FireFox 3, IE6, IE7, IE8, Opera, Safari
Software Version PHP 5.x
Software Framework N/A
Files Included PHP
by
by
by
by
by