The PHP alternative to apache’s mod_rewrite
PHP mod_rewrite 1.0
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://mrws.envato.homac.at/, there’s also a link to a version of SGM 3.1 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
[eltd_button size=”huge-full-width” type=”outline” text=”Download & Demo Links” custom_class=”#” icon_pack=”font_awesome” fa_icon=”” link=”” target=”_blank” color=”” hover_color=”” background_color=”” hover_background_color=”” border_color=”” hover_border_color=”” font_size=”” font_weight=”” margin=””]
Demo = Mod Rewrite Simulator – PHP mod_rewrite
[eltd_button size=”huge” type=”” text=”Full Live Demo” custom_class=”” icon_pack=”font_awesome” fa_icon=”fa-laptop” link=”https://codecanyon.net/item/mod-rewrite-simulator-php-mod_rewrite/88186″ target=”_blank” color=”” hover_color=”” background_color=”” hover_background_color=”” border_color=”” hover_border_color=”” font_size=”” font_weight=”” margin=””]
Kindly Note: We update new contents like WordPress Themes, Plugins, PHP Scripts everyday. But remember that you should never use this items in a commercial website. All the contents posted here for development & testing purpose only. We’re not responsible for any damage, use at your own RISK! We highly recommend to buy Mod Rewrite Simulator – PHP mod_rewrite from the The Developer ( themac ) website. Thank you.
Download = Mod Rewrite Simulator – PHP mod_rewrite-[Updated].zip