View previous topic :: View next topic |
Author |
Message |
Caldus -
Joined: 14 May 2003 Posts: 4
|
|
Back to top |
|
|
Tom Chapman -
Joined: 09 Jul 2005 Posts: 933 Location: Australia
|
Posted: Sun Feb 04, 2007 12:16 am Post subject: |
|
|
Mmk.. Thats lovely... |
|
Back to top |
|
|
Caldus -
Joined: 14 May 2003 Posts: 4
|
Posted: Sun Feb 04, 2007 12:32 am Post subject: |
|
|
Umm ... OK?
I was asking a question ... how do I go about changing the URLs to look like that for my web server? |
|
Back to top |
|
|
aprelium -
Joined: 22 Mar 2002 Posts: 6800
|
|
Back to top |
|
|
cmxflash -
Joined: 11 Dec 2004 Posts: 872
|
Posted: Sun Feb 04, 2007 5:56 pm Post subject: |
|
|
Caldus wrote: | Umm ... OK?
I was asking a question ... how do I go about changing the URLs to look like that for my web server? |
Actually, there isn't a single question mark in your first post, making it a statement rather than a question.
I'm not an expert on regular expressions, however I think redirecting /application/(.*)/(.*) to /application/index.php?$1&$2 should solve your problem. |
|
Back to top |
|
|
pkSML -
Joined: 29 May 2006 Posts: 952 Location: Michigan, USA
|
Posted: Mon Feb 05, 2007 11:29 pm Post subject: |
|
|
For more info about regex and rewriting, check out the documentation --> http://localhost:9999/doc/hosts-configuration.html#HOSTS-URLREWRITE
A word to the wise: you should begin the regular expression match with a caret. ^/index.php/(.*)/(.*)/(.*)
The caret is another way of saying "begins with". Just the regex /index.php/(.*)/(.*) will match with /some_dir/sub_dir/index.php/243/ad
Another word of advice: If are three slashes in the URL regex, you will need to have three parameters in the user's request URL. Otherwise, it won't match. But if you just have ^/index.php/(.*) you could run into trouble. Know how many parameters the user's request URL will have. _________________ Stephen
Need a LitlURL?
http://CodeBin.yi.org |
|
Back to top |
|
|
Jokerham -
Joined: 24 May 2016 Posts: 3
|
Posted: Tue Jun 21, 2016 5:15 am Post subject: |
|
|
Is there a way to allow multiple parameters, instead of making a redirection for all the parameter counts possible?
I mean can we have following conditions
^/index.php/(.*)
^/index.php/(.*)/(.*)
^/index.php/(.*)/(.*)/(.*)
^/index.php/(.*)/(.*)/(.*)/(.*)
^/index.php/(.*)/(.*)/(.*)/(.*)/(.*)
... and so forth ...
into a single condition? |
|
Back to top |
|
|
admin Site Admin
Joined: 03 Mar 2002 Posts: 1298
|
Posted: Fri Oct 07, 2016 12:46 pm Post subject: |
|
|
Jokerham wrote: | Is there a way to allow multiple parameters, instead of making a redirection for all the parameter counts possible?
I mean can we have following conditions
^/index.php/(.*)
^/index.php/(.*)/(.*)
^/index.php/(.*)/(.*)/(.*)
^/index.php/(.*)/(.*)/(.*)/(.*)
^/index.php/(.*)/(.*)/(.*)/(.*)/(.*)
... and so forth ...
into a single condition? |
What would be the redirection target for all these rules? Can you provide some examples (original URL=> rewritten URL)? _________________ Follow @abyssws on Twitter
Subscribe to our newsletter
_________________
Forum Administrator
Aprelium - https://aprelium.com |
|
Back to top |
|
|
|