user3141778
user3141778

Reputation: 1

Makes hosting read strange file extensions

Sorry if the question is not clear. I'm not a programmer :D.

I use wamp to develop a site locally and files with strange extensions (e.g. .php_news_id_121) can work perfectly in localhost. However, when I upload them to a live server, in the same folder with a Wordpress installation, the browser can't read the files anymore. The browser just shows a bunch of html codes without interpreting them into a webpage. Although these files have strange extensions, they are just html files.

Please let me know if how to make the hosting server behave like Wamp which reads the files with strange extensions and generate a complete webpage.

Upvotes: 0

Views: 32

Answers (1)

Roger Creasy
Roger Creasy

Reputation: 1529

If your live server is Apache, set httpd.conf file under “/etc/apache2/”

 AddType application/x-httpd-php .myext

Upvotes: 2

Related Questions