Encoding part of URL

Discuss practical ways rearrange URLs using mod_rewrite.

Encoding part of URL

Postby LunK » Mon May 10, 2004 7:24 am

LunK
 

Postby seomike » Mon May 10, 2004 8:00 am

That's a programming issue.
If you are using php as a programming language you can just use the
urlencode() function


<?

$url = urlencode("http://www.foo.com");

echo $url;

// result will be http%3A%2F%2Fwww.foo.com

?>
<!-- sample html link -->
<a href="http://www.mydomain.com/page.php?url=<? echo $url ?>" target="_blank">link text</a>
seomike
 
Posts: 331
Joined: Thu May 06, 2004 7:36 pm
Location: Dallas


Return to Friendly URLs with Mod_Rewrite

Who is online

Users browsing this forum: No registered users and 58 guests

cron