|
|||||||
| PHP Discussion and technical support for using and deploying PHP based websites. |
![]() |
|
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
make .php5 .php
Hi all,
i moved to a server which has php4 and php5 running. Anyway, in order to run your script in php5 i had to alter the filenames of my main opening files (aparently the includes dont need it..) but this has screwed up my search index results. What do i need to add into my .htaccess file to make.. http://www.mywebsite.com/hello.php5?...ring=something load.. http://www.mywebsite.com/hello.php?q...ring=something Thanks guys! |
|
#2
|
|||
|
|||
|
not sure if you can do it via .htaccess but you can add / modify the following in your apache config:
Code:
<Ifmodule mod_php5.c> AddType application/x-httpd-php .php .php3 .php4 .php5 AddType application/x-httpd-php-source .phps </IfModule> visit my tech blog @ www.schuchlenz.com |
|
#3
|
|||
|
|||
|
Is that php.ini?
|
|
#4
|
||||
|
||||
|
That would be httpd.conf or .htaccess. I'm not sure how well that would "play nicely" though with whatever configuration they've used to implement your PHP5, as it is somewhat common to have one version running as an Apache module while the other is run as CGI.
If *all* of your files are to be changed from .php to .php5, you could set up you apache config to use mod_rewrite to do a permanent redirect for all .php requests to the corresponding .php5 file, perhaps?
__________________
"That's what the gods are! An answer that will do! Because there's food to be caught and babies to be born and life to be lived and so there is not time for big, complicated, and worrying answers! Please give us a simple answer, so that we don't have to think, because if we think, we might find answers that don't fit the way we want the world to be." -- from Nation, by Terry Pratchett freelancer.internet.com Email me |
|
#5
|
||||
|
||||
|
you could try this also in .htaccess
HTML Code:
AddHandler application/x-httpd-php .php .php3 .php4 .php5
__________________
...but stupidity is terminal. |
|
#6
|
|||
|
|||
|
Yeah that code sorted my headache's - thanks @opifex
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|