Reply to Re: O.T. .htaccess

Your name:

Reply:


Posted by Christoph Burschka on 11/20/06 16:57

J.O. Aho wrote:
> MS wrote:

> You would need a redirect module for the apache server
> see the following page: http://httpd.apache.org/docs/2.2/rewrite
>
>
> //Aho

I have yet to see a web host that did not have mod_rewrite already installed, so
that's not usually a problem.

---

To rewrite requests only if the filename doesn't exist, use this:

RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?username=$1 [L,QSA]


--
Christoph Burschka

[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

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