miniBB ® miniBB®
miniBB Support Forums
 | Forums | Register | Reply | Search | Statistics | Manual |
Re-cycled miniBB Support Forums / Re-cycled /   

rewrite engine and displaying PHP within html pages

Author trc4949
Registered
#1 | Posted: 29 May 2007 03:19 
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 Developer
#2 | Posted: 29 May 2007 04:38 
Read this thread and don't combine conflicting things:

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

Re-cycled miniBB Support Forums / Re-cycled / rewrite engine and displaying PHP within html pages Top

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

 Short link for this topic:

 ?
Only registered users are allowed to post here. Please, enter your username/password details upon posting a message, or register first.


Before posting, make sure your message is compliant with our forum posting rules. If not, it may be locked or deleted with no explanation.
 
miniBB Support Forums Powered by Forum Software miniBB ® Features  Requirements  Demo  Download  Showcase  Gallery of Arts
Compiler  Premium Extensions  Premium Support  License  Contacts
Install the Captcha add-on: protect your miniBB-forums from the automated spam and flood.
Captcha Addon for miniBB