| 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: 862 Location: Bucyrus, Ohio
|
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?
My PBA sites | http://CodeBin.yi.org | http://Abyss-Websites.com |
|
| Back to top |
|
 |
|