I use jquery tabs .. when the visitor go to : mysite.com/#user-20 I use jquery to load the user data in a hidden div .. I get data from my php file : mysite.com/user/20
the problem is : if the user go directly to mysite.com/user/20 he will get unorganized data because there is not header of footer for that template file named (user.tpl)
I want to redirect the visitor if he print in the url ( mysite.com/user/20 ) , redirect him to ( mysite.com/#user-20)
like twitter .. if you go to http://twitter.com/twitter he will redirect you to http://twitter.com/#!/twitter
I want the same !
I use codegniter framework 🙂
Not sure I understood it properly, but in javascript (not strictly jQuery) you can redirect the user to another page with this: