This is a discussion on mod rewrite within the Apache Web Server forums, part of the Web Server and Related Forums category; Take this URL, http://example.org/SOME_REQUEST_HERE I want to check if SOME_REQUEST_HERE is a directory (-d) or not, if ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
Take this URL, http://example.org/SOME_REQUEST_HERE
I want to check if SOME_REQUEST_HERE is a directory (-d) or not, if it is, go to it, if it isn't, then rewrite it like this RewriteRule ^([^/]+)?$ index.php?request=$1 what I have now is this... RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^([^/]+)?$ index.php?request=$1 when I echo the $_GET array (using PHP) I have an array that looks like this... array ( users = index.php ) that's not what I want... I want users = SOME_REQUEST_HERE any help is appreciated thanks. |
|
|||
|
On 2006-05-10 02:00:36 -0700, Robert Ionescu <robsiegen@googlemail.com> said:
> bryan wrote: >> this still doesn't work, it gives me an error > > Which error? What can you find in your RewriteLog (needs to be enabled first)? how do I enable the Rewritelog? am I able to generate a proxy log, too? thanks! b |
|
|||
|
Bob wrote:
> how do I enable the Rewritelog? With RewriteLog logs/rewrite.log RewriteLoglevel 5 > am I able to generate a proxy log, too? The new mod_proxy versions (2.2 branch) should log something into the error.log, if you set the Loglevel directive from e.g. error to debug. -- Robert |
|
|||
|
On 2006-05-10 23:41:14 -0700, Robert Ionescu <robsiegen@googlemail.com> said:
> Bob wrote: >> how do I enable the Rewritelog? > > With > RewriteLog logs/rewrite.log > RewriteLoglevel 5 > >> am I able to generate a proxy log, too? > > The new mod_proxy versions (2.2 branch) should log something into the > error.log, if you set the Loglevel directive from e.g. error to debug. this is totally helpful, thanks! I probably don't need the proxy log (famous last words), but any way to get such a log in Apache 2.0.x? this is gravy, the rewrite log will make things seriously easier for me next week, at the client site. thanks much! b. |