Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 1 of 1
  1. #1
    New Coder
    Join Date
    Feb 2005
    Posts
    44
    Thanks
    0
    Thanked 0 Times in 0 Posts

    RewriteRule with a restraint ??

    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?
    Last edited by rayzun; 03-05-2007 at 05:37 AM. Reason: added variable urls


 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •