hello, i have a page, domain.com/page and when it is opened, i want the url at the top to say domain.com/#/page and not just show the homepage of domain.com with the /#/page after it.
Many websites use this but i dont know how to use it on my website.
Examples of website who use it:
The main one i like is Rdio because the url works when clicked again.
So can someone tell me or give me some example code on how Rdio does this?
I have looked at their source code but i cant find anything..
or is it their .htaccess file which is doing this?
Please Please Please Please Please Please help!
Last edited by iBlanky; 02-27-2011 at 08:09 AM.
Yup you answered your own question .htaccess and mod rewrite does the whole job.
But what about the scripts? I have searched online but cannot find anything! I have been trying to find this out for nearly 4 months now and still nothing!
Originally Posted by iBlanky
of course this is just basics and may not answer your question exactly. But there is loads on mod rewrite and uri routing on the net - just google for some tutorials.
By the way this question is more for server side development than client side.
Ajax still should work as the uri is rewritten by the server.
Last edited by Victorious; 02-27-2011 at 03:35 PM.
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Tags for this Thread