|
Posted by michael on 03/29/06 09:59
> But the problem I'm having with this is that, if I rewrite all URLs and send
> them to dopage.php, and then in dopage.php I'm calling curl to open a page
> of my website, at that point it gets redirected the same way and there's an
> infinite loop.
I'm confused why you're using curl to get the page content. Is there a
specific reason for it that using "include (filename);" would not
handle?
If you need to use curl, I'd recommend checking out Apache's
documentation on rewrite rules at
http://httpd.apache.org/docs/2.2/rewrite/rewrite_guide.html Check out
the areas in regards to rewritecond while will conditionally allow you
to rewrite the url.
Navigation:
[Reply to this message]
|