|
Posted by Alan Silver on 08/22/07 15:40
In article <46cc34d2$0$11217$6e1ede2f@read.cnntp.org>, gosha bine
<stereofrog@gmail.com> writes
>On 22.08.2007 11:38 Alan Silver wrote:
>> Hello,
>> Sorry for the newbie question, but I've only been at PHP for a
>>couple of days, and I'm trying to get some stuff done as fast as
>>possible. I'm an experienced ASP.NET programmer, and am trying to
>>find some equivalent stuff in PHP.
>> In ASP.NET there is a method called Server.Transfer which transfers
>>the request to a different page from the one that the user requested,
>>but without doing a redirect. The user gets sent headers as though
>>they were seeing the page they requested.
>> Does PHP have such a function? I have seen the function...
>> header('Location: page.php');
>> ...but these seems to be a redirect, which is not the same thing. I
>>don't want the headers altered as I want the search engines to see the
>>page with the original URL.
>> TIA for any help.
>
>include()
Didn't work. I'm using Wordpress on a Windows platform, and I want to
use a permalink structure that gives blog links like
http://www.fred.com/a-blog-post instead of http://www.fred.com/?p=3 as
the former is much more search engine friendly. As I'm on Windows, I
don't have the .htaccess file where I could add the code to do the URL
rewriting, so I'm looking for other ways to do this. As this "blog" (it
isn't really) is only going to have a small number of pages, I was
hoping I could just set up a file that would be called from
http://www.fred.com/a-blog-post and have it send out the content of
http://www.fred.com/?p=3 instead. I tried include() but it didn't work.
Thanks anyway. I think it's going to be easier to copy the resulting
HTML into a static page and have that instead!
--
Alan Silver
(anything added below this line is nothing to do with me)
Navigation:
[Reply to this message]
|