How do I allow php files to be loaded with different extension?

great there

I have some PHP files like index.php, contact.php, etc.

I want to name the files with the extension .blah (i.e, index.blah, contact.blah, etc. )

Is there something I can add to .htaccess to get them to load properly?

Mike 'Pomax' Kamermans

have a look at your httpd.conf to see how mime type handling is done for .php files, and simply do the same thing for .blah, or use mod_rewrite to change urls ending in .blah to internal redirects to .php through an .htaccess file. Either way, Apache's documentation is going to have all the details.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

How do I hide the .php extension when listing files in php?

How do I write javascript files with a different extension other than .js in Netbeans?

How do I rename the extension for a bunch of files?

How do I change the extension of multiple files?

How do I change extensions of all files in a folder to one common extension when all the files have different extensions?

How do I get a file extension in PHP?

How do I control the order files are loaded in karma config

How do I select files in a bash script that do not have an extension?

How do I redirect to different php files depending on what button is pressed in the base php file?

How do I allow CSS files to be referenced from other domains?

How do I copy a file to a different directory, but with another file extension?

How do I delete all files with a certain extension in Windows 8?

How do I move multiple files and add a .pgp extension?

How do I count the number of files with a specific extension on Android?

How do I use find to search files with a specific extension?

How do I remove the .exec extension git applies to files?

How do I grep recursively in files with a certain extension?

How do I get all the files with a particular extension inside a directory?

How do I retrieve the files from localstorage by the extension name ".log"?

How do I make it so it only shows files with the .txt extension?

How do I find multple files with file extension *.nmconnection in Python?

How do I send a message from the background to a popup in a Chrome extension everytime a page gets loaded?

How to allow certain extension types in PHP?

How do I allow PHP to run when the script is not in the URL?

How do I include another files in PHP?

How do i connect PHP files to HTML?

How do I allow an MIME extension map in ASP.NET vNext?

How do I create an extension to allow an array of a custom type to conform to a protocol?

How do I allow a chrome extension to access a third-party API script?

TOP Ranking

  1. 1

    Failed to listen on localhost:8000 (reason: Cannot assign requested address)

  2. 2

    Loopback Error: connect ECONNREFUSED 127.0.0.1:3306 (MAMP)

  3. 3

    How to import an asset in swift using Bundle.main.path() in a react-native native module

  4. 4

    pump.io port in URL

  5. 5

    Compiler error CS0246 (type or namespace not found) on using Ninject in ASP.NET vNext

  6. 6

    BigQuery - concatenate ignoring NULL

  7. 7

    ngClass error (Can't bind ngClass since it isn't a known property of div) in Angular 11.0.3

  8. 8

    ggplotly no applicable method for 'plotly_build' applied to an object of class "NULL" if statements

  9. 9

    Spring Boot JPA PostgreSQL Web App - Internal Authentication Error

  10. 10

    How to remove the extra space from right in a webview?

  11. 11

    java.lang.NullPointerException: Cannot read the array length because "<local3>" is null

  12. 12

    Jquery different data trapped from direct mousedown event and simulation via $(this).trigger('mousedown');

  13. 13

    flutter: dropdown item programmatically unselect problem

  14. 14

    How to use merge windows unallocated space into Ubuntu using GParted?

  15. 15

    Change dd-mm-yyyy date format of dataframe date column to yyyy-mm-dd

  16. 16

    Nuget add packages gives access denied errors

  17. 17

    Svchost high CPU from Microsoft.BingWeather app errors

  18. 18

    Can't pre-populate phone number and message body in SMS link on iPhones when SMS app is not running in the background

  19. 19

    12.04.3--- Dconf Editor won't show com>canonical>unity option

  20. 20

    Any way to remove trailing whitespace *FOR EDITED* lines in Eclipse [for Java]?

  21. 21

    maven-jaxb2-plugin cannot generate classes due to two declarations cause a collision in ObjectFactory class

HotTag

Archive