You are here: Re: can you redirect every existing html page through a php function? « PHP Programming Language « IT news, forums, messages
Re: can you redirect every existing html page through a php function?

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация