Re: Re: create htaccess.

From: Date: Mon, 06 Dec 2004 15:18:11 +0000
Subject: Re: Re: create htaccess.
References: 1 2 3 4  Groups: php.general 
Request: Send a blank email to php-general+get-203594@lists.php.net to get a copy of this message
* Jason Wong <php-general@gremlins.biz>: > On Monday 06 December 2004 20:11, Matthew Weier O'Phinney wrote: > > > 'article.php' will have to become just 'article' for the above to work > > (unless you can do rewriting, but you indicated that you don't have > > access to your httpd.conf file). The directions for doing that are > > above; just substitute 'article' for 'index' in the <File index> > > area. > > What you can do is create a symlink for article.php - > > ln -s article.php article > > That way you'll edit and upload file as 'article.php' and apache will see it > as 'article'. This also solves the problem whereby some editors does syntax > highlighting based on the filename's extension. A filename of 'article' has > no extension and hence no highlighting (unless you manually set it each time > you load and edit the file). Clarification: Yes, you can do this -- assuming Apache has FollowSymLinks on (which you can also do in .htaccess, usually). However, this does not negate the need for the ForceType directive -- if not present, Apache will not know how to handle the script 'article'. -- Matthew Weier O'Phinney | mailto:matthew@garden.org Webmaster and IT Specialist | http://www.garden.org National Gardening Association | http://www.kidsgardening.com 802-863-5251 x156 | http://nationalgardenmonth.org

« previous php.general (#203594) next »