Mailing List Archive
tlug.jp Mailing List tlug archive tlug Mailing List Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][tlug] [OT] Creating user-friendly URLS with mod_rewrite/Apache
- Date: Fri, 18 Aug 2006 14:14:44 +0900
- From: <stephen@example.com>
- Subject: [tlug] [OT] Creating user-friendly URLS with mod_rewrite/Apache
- References: <44E53F8A.90605@example.com>
Dave M G writes: > So what I really want is for Apache and PHP to play nice together so > that it will take pretty much anything after the ".com", in the above > example where it says "kevin_cooney", and pass that to index.php to be > used for looking up data in the database and passing the right information. There should be some way to give the configuration of "./japanese as an ordinary directory precedence", and then set *everything else* to MIME type application/x-httpd-php. Or you may need to set PHP as the handler for that entire class of URLs. (There's a separate set of directives concerning handlers in apache. They are used in making mod_python-based scripts work.) BTW, mod_rewrite is not only complex, it's the wrong tool for the job. mod_rewrite is intended to map URLs to URLs, not URLs to content. You want the latter, which is what PHP is good at. "Run away! Run away!" Regarding the "./japanese" subdirectory, if that is *linguistically* Japanese rather than *comedically* Japanese, you may want to look into content negotiation, which most browsers will do automatically.
- Follow-Ups:
- Re: [tlug] [OT] Creating user-friendly URLS with mod_rewrite/Apache
- From: Edmund Edgar
- References:
Home | Main Index | Thread Index
- Prev by Date: [tlug] [OT] Creating user-friendly URLS with mod_rewrite/Apache
- Next by Date: Re: [tlug] [OT] Creating user-friendly URLS with mod_rewrite/Apache
- Previous by thread: [tlug] [OT] Creating user-friendly URLS with mod_rewrite/Apache
- Next by thread: Re: [tlug] [OT] Creating user-friendly URLS with mod_rewrite/Apache
- Index(es):
Home Page Mailing List Linux and Japan TLUG Members Links