Forum Moderators: phranque
Please post exactly *what* you have tried, along with where you put the code, and whether you re-started your server and flushed your browser cache before testing. This will save a lot of time -- both for you and for anyone contemplating trying to answer.
Thanks,
Jim
I've tried clearing my cache when doing this, but not restarting Apache as from what i understand editing .htaccess should take effect when i try to load up the file in my browser right away. And i've tried with and without the leading . as well. I even tried using cpanel's built in tools for adding the handlers and types but that didn't seem to work either.
The proper way to get PHP to parse a file with any given extension is to use the appropriate handler. By default for PHP5 you accomplish this by adding the extension to the php handler:
# For PHP 5 do something like this,
# separating file extensions with a single space:
AddHandler php5-script php ars htm html
You could try leaving all of that out, and doing the following:
1) Name the files as .php, but link to them as .blah URLs on all of your pages.
2) Use mod_rewrite to internally rewrite requests for .blah URLs to .php files.
Jim
Thankyou guys!
[edited by: sigmahawk at 3:01 pm (utc) on April 8, 2009]