Forum Moderators: coopster
Lets say we have a directory structure like domain.com/stuff/
1. If I have a file called filename.php under the stuff directory, how could I execute "filename" under the directory "stuff" without having the PHP extension on it? I would want the url to be domain.com/stuff/filename
2. Is it possible to have something like
domain.com/stuff/filename?variable or domain.com/stuff/filename~variable
where the variable is passed to the filename.php without having the .php extension and without having variable=something?
3.Lastly, same directory of domain.com/stuff/ Would it be possible to have something like
domain.com/stuff/file1 and domain.com/stuff/file2
and have all the files in this directory only point to a different php (example - default.php, runme.php or something?)
Thanks for your help!
ErrorDocument 404 stuff/myfile.php
ForceType application/x-httpd-php
This works now I have another question, if someone its domain.com/stuff/anyfilenotinthedirectory it will now display myfile.php, my next question is, how does this impact the search engines? If there is a link to domain/stuff/oldfile will the search engines still find it as /oldfile?
Tom