Saturday, 31 August 2013

change structure of url to directory-like structure

change structure of url to directory-like structure

pI know this question has been asked and answered many times, but my
experience of .htaccess, regualr expressions, mod rewrites etc.. have
normally drove me crazy./p pI see on most websites the structure of the
url is in a directory-like structure, codewwww.linku.biz/edit/code.
strongMy ultimate question is how do you do this?/strong/p pstrongAre all
these sites behind the scenes have normal URL variables but just
re-wrote?/strong such as codewww.linku.biz/myprofile?edit=whatever/code
strong, is this all done with .htaccess, and mod_rewrites?/strong/p ul
lipI want to type in my url codewww.linku.biz/search/code however its
actually codewww.linku.biz/search.php/code/p/li lipI want to type in my
url codewww.linku.biz/JackTrow/code however its actually
codewww.linku.biz/profile.php?us=JackTrow/code/p/li lipAlso I want data
re-wrote when I have lots of URL data, such as
codewww.linku.biz/search?a=1amp;b=2amp;c=3/code actually beeing
codewww.linku.biz/search.php?a=1amp;b=2amp;c=3/code/p/li /ul

No comments:

Post a Comment