The Arcive of vBulletin Modifications Site. |
|
|
#1
|
|||
|
|||
|
Hello
I am using an older plugin which rewrites a php file to a html The htaccess which did this on my old server is Code:
AcceptPathInfo On <Files topic> ForceType application/x-httpd-php </Files> <Files forum> ForceType application/x-httpd-php </Files> If I click on the link the browser tries to download the php file |
|
#2
|
|||
|
|||
|
try this.
AddType application/x-httpd-php htm html php AddHandler application/x-httpd-php .htm .html |
|
#3
|
|||
|
|||
|
I added it to the htaccess
If I access the files now it directly starts a download of the files Do I have to change something in my httpd.conf or php.ini? |
|
#4
|
|||
|
|||
|
If that doesn't work, this is said to be working. Let me know if it does the job for you or not.
Code:
RewriteEngine on
RewriteCond %{HTTP_HOST} ^site.com [NC]
RewriteRule ^(.*)$ http://www.site.com/$1 [L,R=301]
RewriteCond %{REQUEST_URI} ^(.*)\.php$
RewriteRule ^(.*) /$1.html [R=301,L]
|
|
#5
|
|||
|
|||
|
Thank you for your help but I doesn't work
If I write this in the htaccess file and enter my URL it shows me the PHP-code of the file |
|
#6
|
|||
|
|||
|
Alright then I suggest you continue your search here, maybe you can find something that works. GL!
https://www.google.com/search?q=rewr...hrome&ie=UTF-8 |
![]() |
|
|
| X vBulletin 3.8.12 by vBS Debug Information | |
|---|---|
|
|
More Information |
|
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|