Am 01.12.2011 14:44, schrieb Peter Bowers:
On Thu, Dec 1, 2011 at 12:43 PM, 123_dirk<[email protected]>  wrote:
the redirect is working but i can read the URL not as an clearURL.
The browser show  "http://localhost/webneu/pmwiki.php?n=En.Info";
but i need "http://localhost/webneu/En/Info.html";.

...
/* Redirect browser */
header("Location: http://localhost/webneu/pmwiki.php?n=$result";);
If you redirect to http://localhost/webneu/pmwiki.php?n=$result then
cleanurls never come into play at all.

Cleanurls come into play when you go to
http://localhost/webneu/$result and then that gets changed internally
to the ?n=... format.

Basically pmwiki (all PHP programs?) expects to be directed (via url)
to a real file, a real script.  (Usually pmwiki.php)  Then options are
passed to that script via the form ?a=x&b=y&c=z.  However, that is not
as pleasant for humans to view -- we like to think of that Group.Page
as being something real or tangible rather than just an option passed
to a script.  So we like to say example.com/Group/Page.  CleanUrls
simply documents a way to change example.com/Group/Page into
example.com/pmwiki/pmwiki.php?n=Group.Page without troubling the user
with these unpleasant details.  So you can still use the actual
address (?n=Group.Page) and it won't be converted back -- cleanurls
just looks at that and says, "already in the right form - ignore
this."

You want to change your header() line to something like this:
header("Location: http://localhost/webneu/$result";);
-Peter
Sorry but this can't work.

I would call myself again and not my page.

Ok, i can see now the right name of my page but thats all.


_______________________________________________
pmwiki-users mailing list
[email protected]
http://www.pmichaud.com/mailman/listinfo/pmwiki-users

Reply via email to