Welcome to WebmasterWorld Guest from 220.127.116.11 , register , free tools , login , search , pro membership , help , library , announcements , recent posts , open posts Become a Pro Member
FilesMatch just stopped working? moheybee msg:3639200 4:06 am on May 1, 2008 (gmt 0) With my host I just was upgraded to Apache 1.3.41 (Unix) and PHP 5.2.5 (previously on 4.4)
This code just stopped working:
ForceType application/x-httpd-php </FilesMatch>
SetHandler application/x-httpd-php </FilesMatch>
I had a company make a dynamic website for me with SEO URLs and this is how they decided to do it:
- a file called just "login" instead of "login.php" - that file login accessible through myurl.com/login/ rewritten to that login php file as seen above
It was weird, but worked great until now.
Now when you pull up myurl.com/login/ it gets a 404
And when you pull up myurl.com/login (the file itself) it shows the php code like it's a text file.
Any thoughts? I'm pulling hair!
jdMorgan msg:3639679 6:07 pm on May 1, 2008 (gmt 0)
Note that the directive is < FilesMatch> and not < UrlMatch> -- The argument must match the name of a file, not a URL, whether rewritten or not.
g1smd msg:3639887 10:36 pm on May 1, 2008 (gmt 0)
Why is one in "quotes" and the other not? moheybee msg:3641204 1:24 am on May 4, 2008 (gmt 0)
If anyone else should happen upon this, the line: ForceType application/x-httpd-php
needed to be changed to: