We build. You grow.

Get best community software here

Start a social network, a fan-site, an education project with oxwall - free opensource community software

Custom pages - stuck php | Forum

Topic location: Forum home » Support » General Questions
Alex
Alex Nov 28 '16
I followed the instructions on how to add custom pages, one being like a php file, and I tried doing this with both html and php, added rule into htacess right above the index rule. I did not put my php file into any folders tho, is that the issue? My pages with php come out blank, and 404 page not found with html files.
The Forum post is edited by Alex Nov 28 '16
Attachments:
  ffirst.jpg (77Kb)
  22nd.jpg (51Kb)
dave Leader
dave Nov 28 '16
Hi, this post will probably be moved to custom coding just fyi. 


put it like this in your htaccess 


RewriteCond %{REQUEST_URI} !/points.php


let us know if that works, if not i have another idea.. :)


This will only allow you to execute the file from inside the oxwall directory. 


The Forum post is edited by dave Nov 28 '16
Alex
Alex Nov 28 '16
Thanks for your help Dave, however that is what I originally tried, and retried your line which i think is the exact same as the instructions said, stil no luck, page is blank.
dave Leader
dave Nov 28 '16
how are you serving up your php, via apache or via cgi?


Turn on debug mode and check your error log to see if you have a syntax error in your php file. 

The Forum post is edited by dave Nov 28 '16
Alex
Alex Nov 28 '16
Thanks, I did not have MYSQL checked... lmfao!
dave Leader
dave Nov 28 '16
LMAO yep that will help lol   thanks for letting us know.. 
ross Team
ross Nov 29 '16
Dave +1


Alex, please check the page with something simple like phpinfo(); as Dave mentioned you can have some syntax error. Add the file to .htaccess file

Quote from dave Hi, this post will probably be moved to custom coding just fyi. 


put it like this in your htaccess 


RewriteCond %{REQUEST_URI} !/points.php


let us know if that works, if not i have another idea.. :)


This will only allow you to execute the file from inside the oxwall directory.