miniBB ®

miniBB

®
Support Forums
  
 · Start · Sign in · Register · Search · Statistics · File Bank · Manual ·
Re-cycled miniBB Support Forums / Re-cycled /  
 

rewrite engine and displaying PHP within html pages

 
Author trc4949
Partaker
#1 · Posted: 29 May 2007 03:19Reply Quote
my .htaccess file looks like this:

RewriteEngine On
RewriteRule ^index\.html$ ./index.php?mdrw=on
RewriteRule ^([0-9]+)_([0-9]+)_([-0-9]+)\.html$ ./index.php?action=vthread&forum=$1&topic=$2&page=$3&mdrw=on
RewriteRule ^([0-9]+)_([-0-9]+)\.html$ ./index.php?action=vtopic&forum=$1&page=$2&mdrw=on


but I just added a line so that I can execute php code within html pages, so I added this line and my .htaccess now looks like :

AddType application/x-httpd-php .html
RewriteEngine On
RewriteRule ^index\.html$ ./index.php?mdrw=on
RewriteRule ^([0-9]+)_([0-9]+)_([-0-9]+)\.html$ ./index.php?action=vthread&forum=$1&topic=$2&page=$3&mdrw=on
RewriteRule ^([0-9]+)_([-0-9]+)\.html$ ./index.php?action=vtopic&forum=$1&page=$2&mdrw=on

but for some reason, I am still unable to execute a piece of php code on the forums html pages...

any clue why?

I know that the AddType application/x-httpd-php .html
is the correct command for my server configuration...

and it does work when for example I create my own .html page and then put some php code within that html page...

but for some reason despite the addtype command in .htaccess, I am still unable to execute php code pieces within the various .html post pages of my minibb forum...

http://forums.bestonlinetrades.com/4_11_0.html

thoughts anyone ?

Author Paul
Lead Lead Developer
#2 · Posted: 29 May 2007 04:38Reply Quote
Read this thread and don't combine conflicting things:

https://www.minibb.com/forums/7_4216_0.html

Re-cycled miniBB Support Forums / Re-cycled /
 rewrite engine and displaying PHP within html pages
 Share Topic's Link

Your Reply Click this icon to move up to the quoted message

BB code for the Bold StyleBB code for the Italic StyleBB Code for the PictureBB code for the URLUpload a File

  ?
Post as a Guest, leaving the Password field blank. You could also enter a Guest name, if it's not taken by a member yet. Sign-in and post at once, or just sign-in, bypassing the message's text.


Before posting, make sure your message is compliant with forum rules; otherwise it could be locked or removed with no explanation.

 

 
miniBB Support Forums Powered by Forum Software miniBB ® Home  Features  Requirements  Demo  Download  Showcase  Gallery of Arts
Compiler  Premium Extensions  Premium Support  License  Contact Us
Proceed with the Captcha add-on: protect your miniBB-forums from the automated spam and flood.