ForceType index.php help

Discussion in 'Apache' started by Dawiss, Jul 6, 2011.

  1. #1
    Hello,

    I'm develpoing a website and I was wondering if there could be any way to ForceType index.php file in the root directory..

    Example:
    I have main web directory called "www" and when the address is typed in browser like "http://www.example.com" it refers to a file "www/index.php" which is the main directory. With Apaches ForceType in .htaccess file in the "www" directory
    <Files index>
    ForceType application/http-x-php
    </Files>

    I can refer now to "http://www.example.lcom/index"

    this can be usefull if I would like to use something like "http://www.example.com/news/weather/" and use news file for that, but I want to be able to use the index file for that like "http://www.example.com/news" and the "news" is not a folder but a value that can be passed to "index" file.. any ideas how to do that?

    Thanks for your answears :)
     
    Dawiss, Jul 6, 2011 IP