wemustdesign Posted March 3, 2010 Share Posted March 3, 2010 I have wrote a rewrite rule to get my url as short as possible. The first section works but the second doesn't. Any suggestions appreciated: -------------------------------------------------------------------------------------- url: index.php?uk=newcastle outputs fine as: /newcastle/ using rewrite rule: RewriteRule ^([^/\.]+)/?$ index.php?uk=$1 [L] -------------------------------------------------------------------------------------- I cannot get the second rule to work. I don't know if I have an error inb my code or if it is not possible to shrink the rule so much. The url: index.php?uk=newcastle&type=small this is what I want to work: /newcastle/small this is the rule but doesn't work RewriteRule ^([^/\.]+)/([^/\.]+)/?$ index.php?uk=$1&type=$2 [L] -------------------------------------------------------------------------------------- Quote Link to comment Share on other sites More sharing options...
Dennis1986 Posted March 3, 2010 Share Posted March 3, 2010 Try with /newcastle/small/ Quote Link to comment Share on other sites More sharing options...
wemustdesign Posted March 3, 2010 Author Share Posted March 3, 2010 yeah I had tried with / and without that but doesn't solve it Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.