how to get the .htaccess file to work

Asked by jonathan on 2009-07-15

I am working apache and I want to start working on several web pages. The files for right now are in several sub folders with each folder with the php files containing a .htaccess file. The .htaccess file looks likes this below:
<FilesMatch "^aboutme$">
    ForceType application/x-httpd-php

<FilesMatch "^contact$">
    ForceType application/x-httpd-php

<FilesMatch "^packages$">
    ForceType application/x-httpd-php

<FilesMatch "^network$">
    ForceType application/x-httpd-php

What I am trying to do is instead of the saving a .php file, I just have a file that contains php code. So the url would look like this /localhost/jon/public/network instead of this /localhost/jon/public/network.php

I cannot get the file to overwrite the centralize config file.

Question information

English Edit question
Ubuntu apache2 Edit question
No assignee Edit question
Solved by:
Damiano Venturin
Last query:
Last reply:
Revision history for this message
Best Damiano Venturin (damko) said :

that's quite complex to be answered here
try to look the apache rewrite directive
for ex. this is a tutorial

Revision history for this message
jonathan (jejo5205) said :

Thanks Damiano Venturin, that solved my question.