View Full Version : .phps
alexjewell
06-10-2007, 11:18 PM
For some reason, .phps (php source) files aren't working on my server. I get a 404 error. On another server, I'm getting the same thing. On the last server I tried, it works but isn't color coded. Is there anyway I can make it color coded?
You need to
AddHandler php-source .phps
alexjewell
06-10-2007, 11:36 PM
And where would I do that? [I have shared hosting]
mburt
06-11-2007, 01:14 AM
I would assume that has to do with the Apache Modules? Not sure though.
A .htaccess file will do.
alexjewell
06-11-2007, 02:52 AM
Alright, I've heard of .htaccess but have never used it. Where do I start?
Create a file called .htaccess and put the directive in it?
alexjewell
06-11-2007, 12:03 PM
Alright, and just put that in my root directory? Ok.
Strangeplant
06-12-2007, 12:58 PM
Well, it may be alright, and then again, maybe not, since the system must be set-up to acknowledge the .htaccess file in the directory that you are putting it. There needs to be a directive: AllowOverride home/patheto/directory/ in httpd.conf, and then you need to do a soft restart on the server to pick this change up.....BTW..... (NIX servers, at least)
Powered by vBulletin® Version 4.2.2 Copyright © 2021 vBulletin Solutions, Inc. All rights reserved.