Reply to Re: Folder name as a GET?

Your name:

Reply:


Posted by Al13n on 02/27/06 02:30

"RedGalaxy UK" <redgalaxyuk@gmail.com> wrote:
>I'd like to be able to give my members the ability to use something
>like www.domain.com/myname, which would then forward to the correct
>page. The problem I can see is that the server thinks myname is
>actually a folder and returns a 404 error.
>
>Does anyone know of a way to do this?

If you're running apache or something else that supports mod_rewrite, then
you could do it using that relatively easily, just take a little regex and
you'd need a function to fetch the proper account number associated with
the "folder" name. This is how the user URL's are handled at
protempore.org.

Run a google search for mod_rewrite -- for something like this, it should
be fairly straight forward.

A.

--
Few of my projects recent projects--
Online Regex find/repalce utility: http://rereplace.com
Command-based online image editor: http://theprawn.com/imagiine

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация