Using Jquery to get a shortened URL established through .htaccess
<p>here is my script:</p>

<pre><code>popstate = function(url){
url = '/ajaxlinks/ajaxlink'+window.location.pathname.substr(1);
if (url == '/ajaxlinks/ajaxlink'){url = '/ajaxlinks/ajaxlinkprofile.php'}
$('#ajaxloadcontent').load(url);
$('html, body').animate({scrollTop:0}, 'medium');
}
</code></pre>

<p>The problem that I am facing is this.  Lets say that the url to an account on my site is "http://www.pearlsquirrel.com/eggo."  I can get the above function to work for other urls, but because this is not a direct link, and one that I have set in .htaccess, I need "if (url == '/ajaxlinks/ajaxlink')" to somehow tell me if there is anything after the slash in "http://www.pearlsquirrel.com/" and if there is then set the variable url == to /ajaxlinks/ajaxlinkprofile.php.  I have no idea how to do this and hope that someone can help, thanks!</p>
