Welcome! Log In Create A New Profile

Advanced

Please convert this mod rewrite rule

April 11, 2011 06:15PM
Hi,

<IfModule mod_rewrite.c>
# Tell PHP that the mod_rewrite module is ENABLED.

SetEnv HTTP_MOD_REWRITE On
Options +FollowSymLinks
RewriteEngine on
RewriteRule test-(.*)\.htm$ inc/tesmodrewite.php?q=test_$1
RewriteRule test2-(.*)\.htm$ /inc/tesmodrewite.php?q=test_$1
RewriteRule pm-(.*)\.(jpg|png|gif|html)$ index.php?pm=$1
RewriteRule pt-(.*)\.(jpg|png|gif|html)$ index.php?pt=$1
RewriteRule dt-(.*)\.(jpg|png|gif)$ index.php?dt=$1
RewriteRule dm-(.*)\.(jpg|png|gif)$ index.php?dm=$1
RewriteRule di-(.*)\.(jpg|jpeg|png|gif|bmp)$ index.php?di=$1
RewriteRule page(.*)\.html$ gallery.php?p=$1
</IfModule>


Thanks


Thanks
Subject Author Posted

Please convert this mod rewrite rule

alex1950 April 11, 2011 06:15PM

Re: Please convert this mod rewrite rule

Francis Daly April 11, 2011 06:52PM

Re: Please convert this mod rewrite rule

alex1950 April 11, 2011 07:56PM

Re: Please convert this mod rewrite rule

Igor Sysoev April 12, 2011 02:20AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 56
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready