ajax - Change browser URL using Jquery in Codeigniter -


pardon if question looks silly. in 1 of project i'm using codeigniter framework, have url of home page given below:

http://localhost/project/controller/function 

using config file routes.php, have made 1 given below:

http://localhost/project/function 

but @ places have used redirect() function, because of url again becomes this

http://localhost/project/controller/function 

i have tried using jquery parent.location.hash, appends text after url. eg: if click on login, url http://localhost/project/function/login

the same happens in git, on clicking url, small part of page changes along url. want same thing. have clue how that?

thanks in advance....

that sounds terrible idea. want user see url aren't at. create massive problems when users begin sending links site. hacky solution doesn't fix anything. instead, redesign website using different structure , routing schema satisfy desired urls. imagine there elegant solution if read on codeigniter's uri documentation.

to answer git example - reason page content changes , url changes is sending new page. @ regular expressions section under second link.

http://ellislab.com/codeigniter/user-guide/helpers/url_helper.html

http://ellislab.com/codeigniter/user-guide/general/routing.html


Comments

Popular posts from this blog

php - Calling a template part from a post -

Firefox SVG shape not printing when it has stroke -

How to mention the localhost in android -