Page 1 of 1

Clean URLS for web n wap interfaces

Posted: Fri Oct 17, 2008 3:59 am
by hmvrulz
Can some one help me in deciding the best way to code clean urls for web as well as wap


WEB

site.com/modules/action/id (if needed)

WAP

site.com/modules/action/id/mobile

Re: Clean URLS for web n wap interfaces

Posted: Fri Oct 17, 2008 4:02 am
by aceconcepts
mod_rewrite?

Re: Clean URLS for web n wap interfaces

Posted: Fri Oct 17, 2008 4:10 am
by hmvrulz
no... am asking how to frame my urls... logical help not php


problem is incase there is no ID

it wil become

site.com/modules/action/mobile
for wap


then its waste of resources to check each time if its a id or mobile

Re: Clean URLS for web n wap interfaces

Posted: Fri Oct 17, 2008 4:23 am
by Eran
mobile should come first, logically

Meaning:

site.com/modules/action/id

And:

site.com/mobile/modules/action/id

Re: Clean URLS for web n wap interfaces

Posted: Fri Oct 17, 2008 4:40 am
by requinix
Why not have a mobile subdomain? mobile.site.com is friendlier than site.com/mobile and you don't have to worry about changing links to point to /mobile instead.

Re: Clean URLS for web n wap interfaces

Posted: Fri Oct 17, 2008 4:53 am
by hmvrulz
But am using my own MVC framework... basically if its mobile site i wil only have a different view.... to make it compatible with the mobile devices

Re: Clean URLS for web n wap interfaces

Posted: Fri Oct 17, 2008 5:39 am
by onion2k
Surely how you actually implement the URLs is unimportant compared to how usable it is for the user? Having /mobile at the end of the URL is going to be a hassle for anyone inputting the location on a phone that's geared towards inputting standard mobile URLs such as mobile.domain.com, m.domain.com or domain.mobi?