For Programmers: Free Programming Magazines  


Home > Archive > PHP Documentation > September 2006 > #38843 [Opn]: output_add_rewrite_var failed on Url address beggining with http://









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author #38843 [Opn]: output_add_rewrite_var failed on Url address beggining with http://
tony2001@php.net

2006-09-15, 7:58 am

ID: 38843
Updated by: tony2001@php.net
Reported By: adrosetint at hotmail dot com
Status: Open
-Bug Type: *URL Functions
+Bug Type: Documentation problem
Operating System: Windows
PHP Version: 5.1.6
New Comment:

Reclassified as docu problem.
URL-Rewriter does not change absolute URLs intentionally.


Previous Comments:
------------------------------------------------------------------------

[2006-09-15 12:36:17] adrosetint at hotmail dot com

Description:
------------
function.output_add_rewrite_var fails with explicit URLs, i.e. URL's
that explicilty include domain. But works with Implicit domains... e.g.
those that do not contain the domain, but is implied to be the current
domain.

I realise the benefits, it doesn't alter the links to external domains,
however could this function not realise if the URL is of the current
domain, + where URLs are explicitly writen.

I've included two urls, the first type ( implicit ) works :) the second
type ( explicit ) fails.

Is this a bug or a feature?

Reproduce code:
---------------
<?php

output_add_rewrite_var('auth', '412e11');

?>
<a href="link.php">Click Here</a>
<a href="http://this.site.net/link.php">Click Here</a>


Expected result:
----------------
<a href="link.php?auth=412e11">Click Here</a>
<a href="http://this.site.net/link.php?auth=412e11">Click Here</a>


Actual result:
--------------
<a href="link.php?auth=412e11">Click Here</a>
<a href="http://this.site.net/link.php">Click Here</a>



------------------------------------------------------------------------


--
Edit this bug report at http://bugs.php.net/?id=38843&edit=1
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com