Re: Re: create htaccess.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



* Jason Wong <php-general@xxxxxxxxxxxx>:
> 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@xxxxxxxxxx
Webmaster and IT Specialist       | http://www.garden.org
National Gardening Association    | http://www.kidsgardening.com
802-863-5251 x156                 | http://nationalgardenmonth.org

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux