Closed Thread Icon

Topic awaiting preservation: "invisible" redirection (Page 1 of 1) Pages that link to <a href="https://ozoneasylum.com/backlink?for=13034" title="Pages that link to Topic awaiting preservation: &amp;quot;invisible&amp;quot; redirection (Page 1 of 1)" rel="nofollow" >Topic awaiting preservation: &quot;invisible&quot; redirection <span class="small">(Page 1 of 1)</span>\

 
poi
Paranoid (IV) Inmate

From: France
Insane since: Jun 2002

posted posted 01-11-2004 06:53

Is there a way to make a redirection via a .htaccess that will leave the URL as is in the address bar of the browser ? In fact I wanna redirect the requests of XML feeds to a PHP script that will check their validity and update them if needed, but keep the whole thing invisible to the end user. I've tried to use a RewriteRule ( see below ) so far, but it changes the URL in the address bar.

RewriteEngine On
RewriteRule ^(.*\.xml)$ /updateXmlFeed.php?$1

In the end, I could use a set of FilesMatch + ForceType directives, but I'd have to turn my PHP script into a sort of "fake" folder and use the REQUEST_URI. And I wish to avoid that as much as possible.

I'm almost sure that's one those stupid things you regret to ask once you know but any help is welcome. I've tried to look in the documentation & FAQ of Apache, the FAQ of the Asylum, Google ... in vain. I probably don't know how to call what I'm looking for



[This message has been edited by poi (edited 01-21-2004).]

Tyberius Prime
Paranoid (IV) Mad Scientist with Finglongers

From: Germany
Insane since: Sep 2001

posted posted 01-11-2004 11:53

to quote the apache mod_rewirte documentation
<BLOCKQUOTE><FONT face="Verdana, Arial">quote:</font><HR>
'last

poi
Paranoid (IV) Inmate

From: France
Insane since: Jun 2002

posted posted 01-11-2004 17:10

Tyberius Prime: Thank you very much.

1. I made a chocolate cake yesterday, do you want a piece instead of a cookie ?

2. Indeed, I had read the infos of [L] directive but hadn't understood it that way. But in fact it was certainly due to the fact that I made my RewriteRule point to an absolute URL ( http://127.0.0.1/ ... ) during a test

I was sure it was stupid.



[This message has been edited by poi (edited 01-11-2004).]

[This message has been edited by poi (edited 01-21-2004).]

« BackwardsOnwards »

Show Forum Drop Down Menu