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]Re: [tlug] Debian/etch3, apache2, mod_rewrite
- Date: Fri, 13 Jul 2007 12:43:35 +0900
- From: Mattia Dongili <malattia@example.com>
- Subject: Re: [tlug] Debian/etch3, apache2, mod_rewrite
- References: <78d7dd350707120749h60736a1l863ffc38ed4dc56f@mail.gmail.com>
- User-agent: Mutt/1.5.13 (2006-08-11)
On Thu, Jul 12, 2007 at 11:49:30PM +0900, Nguyen Vu Hung wrote: ... > echo "<? phpinfo(); ?>" > /var/www/stagly/x115.php > > cat /var/www/stagly/.htaccess > RewriteEngine On RewriteBase /stagly > RewriteCond %{REQUEST_FILENAME} !-f > RewriteCond %{REQUEST_FILENAME} !-d > RewriteRule x125 x115.php [L] A very useful resource when writing mod_rewrite rules is the RewriteLog, not that it would have been of much help here but at least you can see what the engine is doing. Anyway, see the description here for RewriteBase: http://httpd.apache.org/docs/2.0/mod/mod_rewrite.html#rewritebase and this is the key of the description about per-directory rewrites: " # let the server know that we were reached via /xyz and not # via the physical path prefix /abc/def RewriteBase /xyz " cheers -- mattia :wq!
- References:
- [tlug] Debian/etch3, apache2, mod_rewrite
- From: Nguyen Vu Hung
Home | Main Index | Thread Index
- Prev by Date: Re: [tlug] Firefox a security risk when combined with IE?
- Next by Date: Re: [tlug] [SOLVED] Unix tool to monitor files for changes
- Previous by thread: [tlug] Debian/etch3, apache2, mod_rewrite
- Next by thread: Re: Freedom (Was: [tlug] [OT] Say _no_ to the Microsoft Office format as an ISO standard)
- Index(es):
Home Page Mailing List Linux and Japan TLUG Members Links