Tuesday, October 5, 2010

Re: treating different versions of website urls as one

Definitely sounds like a regular expression is what you need.

Not sure what you mean by etc....are you saying any variation of a web
address for mysite.com, i.e., with or without www prefix, with our
without protocol http://, and with our without the index page, which
itself could be any variation of index.html, index.php, or
index.whatever?

On Tue, Oct 5, 2010 at 12:17 PM, harryos <oswald.harry@gmail.com> wrote:
> hi
> I am trying out a web app where it needs to process user given website
> addresses .My problem is that ,I need to treat
>  http://mysite.com ,
> www.mysite.com,
> mysite.com,
> www.mysite.com/index.html,
> www.mysite.com/index.php ...etc as the same and not different urls.How
> can I do the validation in this case?Do I have to manually do the
> string parsing and validate?
> Any suggestions most welcome
> thanks
> harry
>
> --
> You received this message because you are subscribed to the Google Groups "Django users" group.
> To post to this group, send email to django-users@googlegroups.com.
> To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
>
>

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

No comments:

Post a Comment