View previous topic :: View next topic |
Author |
Message |
bernie67 -
Joined: 08 Apr 2011 Posts: 1
|
Posted: Fri Apr 08, 2011 8:37 am Post subject: multiple rewriting rules problem |
|
|
Hi!
I managed to convert my .htaccess rewrite rules, however I can´t get them all to work, only the one I put first.
I´ve tried different combinations with Next Action but no success.
Ex:
regex: ^/([A-Za-z0-9_-]+)$
rewrite to: /user.php?u_url=$1
works fine by itself
regex: ^/([^\.]+)$ (to get rid of .php ext)
rewrite to: /$1.php
works fine by itself
Whichever rule I put on top works, but then the other one fails.
I´ve tried all sorts of combinations with the other settings but I feel I´m missing something obvious here.
Please advice,
Bernie |
|
Back to top |
|
|
admin Site Admin
Joined: 03 Mar 2002 Posts: 1298
|
Posted: Fri Apr 08, 2011 2:22 pm Post subject: Re: multiple rewriting rules problem |
|
|
bernie67,
Try enabling URL rewriting debugging to understand why each rule is triggered or not.
From what you've given us as rules, depending on the URL, it looks like these two rules are running fine but since their scope are mutually exclusive, they seem to you as if only one of them is actually being taken into account. _________________ Follow @abyssws on Twitter
Subscribe to our newsletter
_________________
Forum Administrator
Aprelium - https://aprelium.com |
|
Back to top |
|
|
|