July 18, 201115 yr For some reason I found myself on the McDonalds website and noticed the url had an unusual file extension that MUST be customised: .mcdj (for example this) How have they managed to do that or is .mcdj some well known file extension that just so happens to be similar to McDonalds?
July 18, 201115 yr You can set filetype associations in Apache's httpd.conf or in a .htaccess file. If you want to use a custom file extension but parse it as PHP, you'd need to use this in your .htaccess: AddType x-httpd-php .mycustomextension Edited July 18, 201115 yr by Renaissance-Design
July 18, 201115 yr Author Thanks a lot. I admit that I only wanted to find out through pure curiosity, but it certainly is interesting. What's odd is that a custom extension page won't show the php includes - am I missing something? Anyway, thanks once again for your useful answer!
Create an account or sign in to comment