Click to See Complete Forum and Search --> : What web structure is convenient and why.


_maxi
08-22-2008, 09:21 PM
Hi.

I don't know if its convenient to do what I do. I put all the page in a index.php file, which calls via require the content of the section. I get the section variable by url (get), and then ask with a switch for the section variable, and include the file of the section that is asked.

Is that wrong? would you recommend to do it in other way?

Declan1991
08-23-2008, 06:02 AM
Doesn't really matter. I prefer to only do related pages like that, but it's personal preference. The one thing is, people find those type of URIs difficult to remember, so if you want it to be memorable, use separate pages with a short path.

_maxi
08-23-2008, 01:58 PM
The thing is that I change the way it looks with SEO.
People see: section1.html instead of index.php?s=1
So I can make people see the same as if they were all separate files.

It would be good for me if everyone that sees the topic, describes how you do it. Thank you :)!

Fang
08-23-2008, 02:08 PM
The way W3C suggest (http://www.w3.org/QA/Tips/uri-choose)

_maxi
08-23-2008, 03:21 PM
Good, I'll keep that in mind.

ibechane
08-23-2008, 04:24 PM
I do what you are saying, except I call xml instead of using a switch.

Also, if you are interested in making url's readable, particularly for seo, consider using modrewrite
http://www.yourhtmlsource.com/sitemanagement/urlrewriting.html