Absolute URL creation with PHP
Posted: Wed Mar 04, 2009 5:52 pm
Hello,
I've never used PHP before, and was advised that it was the best method for creating an absolute URL in the situation described below.
My navigation is in one div, while all other pages for the site are loaded via ajax into a div below it. If the base url is http://www.mysite.com/index.html, for example. When a visitor clicks Page Two, and pagetwo.html loads into the div below, the address bar still says http://www.mysite.com/index.html. I would like for it to change to http://www.mysite.com/pagetwo.html.
Can anyone advise me on how this can be done, keeping in mind that I am a full-fledged beginner to PHP. I can provide links/code if necessary.
Thanks in advance,
Christine
I've never used PHP before, and was advised that it was the best method for creating an absolute URL in the situation described below.
My navigation is in one div, while all other pages for the site are loaded via ajax into a div below it. If the base url is http://www.mysite.com/index.html, for example. When a visitor clicks Page Two, and pagetwo.html loads into the div below, the address bar still says http://www.mysite.com/index.html. I would like for it to change to http://www.mysite.com/pagetwo.html.
Can anyone advise me on how this can be done, keeping in mind that I am a full-fledged beginner to PHP. I can provide links/code if necessary.
Thanks in advance,
Christine