Hi,
I know you can use htaccess to allow files with any extension like .news to work like a php file, but can this be done for files with no extension? For example have a file called www.domain.com/myfile and that work like a php script. This is because I am having trouble creating directories, and as I would only want one file in each directory this seems to be a much simpler way of doing things.
If this is impossible could I use htaccess to set up a redirect for anyone trying to view domain.com/myfile gets moved to domain.com/files/myfile.php or something along those lines?
The first solution is preferable, but any help on this matter would be greatly appreciated.
That way, domain.com/whatever, domain.com/whatever/, and domain.com/whatever/index.html will load domain.com/whatever.php. The directory or filename can include upper and lower case alphanumeric characters, underscores, and hyphens.