Forum Moderators: phranque

Message Too Old, No Replies

Changing the display url?

Changing the display url

         

Afterlithe

12:55 am on Jun 12, 2007 (gmt 0)

10+ Year Member



Hello everyone,

I believe this is doable using PHP. Forgive me if it is posted elsewhere, but I could not find it.

I have a link like this (the full destination url):
www.example.com/New/about/index.php?page=donations.php

and I want the URL to be displayed like:
www.example.com/donate

The above link would be easier on visitors, publications, etc.

How would I go about doing this?

Thanks.

Gian04

5:17 am on Jun 12, 2007 (gmt 0)

10+ Year Member



Do you mean displaying it on the browsers' status bar?

Use this:
<A href=\"destinationpage.php\" onMouseOver=\"window.status='displayed_url_here.php'\">Click Here</A>";

jdMorgan

2:38 pm on Jun 12, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



That is part of the answer -- Change the links on your pages. The question then becomes, how do you make your server recognize that new form of URL and serve the proper content in response?

Here's a description of the whole process: Changing dynamic to static urls -- Search engine-friendly links with mod_rewrite [webmasterworld.com]

Jim

Afterlithe

4:51 pm on Jun 12, 2007 (gmt 0)

10+ Year Member



Thanks to all of the replies, and to the forum admin who moved my post to the right forum =). I will try mod rewrite. And Gian04
, yes, I want it do display differently (shorter more easy to read url) in the status/address bar.

[edited by: Afterlithe at 4:53 pm (utc) on June 12, 2007]