...

View Full Version : RewriteRule with a restraint ??



rayzun
03-05-2007, 05:36 AM
Im loading a rule to create special url..
The problem, is getting out of control because the rule I made has no limit in its structure ...

my.htaccess file:

Code:
AddHandler application/x-httpd-php .htmlop
Options +FollowSymLinks
RewriteEngine on

RewriteRule finders-(.*)\.htmlop /index.php [NC,L]

Good example url :
domain.com/finders-ground.htmlop

Bad, problem url's :
domain.com/finders-ground.htmlop.htmlop
domain.com/finders-express.htmlop-
domain.com/finders-ground-express.htmlop-

To fix this I've tried :
Redirect /finders-(.*).htmlop.htmlop http://domain.com/405.html

but ,any ideas?



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum