dcsimg
www.webdeveloper.com
Results 1 to 4 of 4

Thread: www.domain.com/#/page

  1. #1
    Join Date
    Sep 2010
    Posts
    27

    Angry www.domain.com/#/page

    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 09:09 AM.

  2. #2
    Join Date
    Feb 2011
    Posts
    17
    Yup you answered your own question .htaccess and mod rewrite does the whole job.

  3. #3
    Join Date
    Sep 2010
    Posts
    27
    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!

  4. #4
    Join Date
    Feb 2011
    Posts
    17
    Quote Originally Posted by iBlanky View Post
    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!
    http://httpd.apache.org/docs/2.0/misc/rewriteguide.html

    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 04:35 PM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles