site structure/URL
Posted: Wed Dec 03, 2003 5:32 pm
I am in the preliminary stages of development of revamping a web site that was done in PERL and converting it to PHP/MYSQL.
I want old bookmarks to work.
Here is my dilemma
Would it be better to develop the site around the concept of a URL request looking like
http://www.something.com/index.php?sect ... xx&....ect
It seams as if this avenue is the easiest to do because there is one file that is being requested and it generates code based on the variables passed to it through the link.
This is a method that I have implemented in the past without any problems.
OR
This is what I would like the URL request to look like
http://www.something.com/lala/subsection/
Now this method would allow for the old bookmarks to still be valid, but then there would need to be a directory structure and each folder would need a PHP file in it with includes and what not.
I would prefer this method.
So my question to you is which would be better in the long run?
Also in regards to method 2, how would one go about getting the requested variables out of the URL request so that I can manipulate the PHP content base on them?
I hope that this made some since...now it is time for sleep...
Thanks
I want old bookmarks to work.
Here is my dilemma
Would it be better to develop the site around the concept of a URL request looking like
http://www.something.com/index.php?sect ... xx&....ect
It seams as if this avenue is the easiest to do because there is one file that is being requested and it generates code based on the variables passed to it through the link.
This is a method that I have implemented in the past without any problems.
OR
This is what I would like the URL request to look like
http://www.something.com/lala/subsection/
Now this method would allow for the old bookmarks to still be valid, but then there would need to be a directory structure and each folder would need a PHP file in it with includes and what not.
I would prefer this method.
So my question to you is which would be better in the long run?
Also in regards to method 2, how would one go about getting the requested variables out of the URL request so that I can manipulate the PHP content base on them?
I hope that this made some since...now it is time for sleep...
Thanks