Where Do Page Files Go - Page 2 Where Do Page Files Go - Page 2
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

Where Do Page Files Go

Started by thenota2, December 23, 2017, 05:29:24 AM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

ron4mac

#20
Try this:

As before, have a folder, bio, in your CPG root. In that folder, have only one file, index.php.
The contents of that file:
<?php define('IN_COPPERMINE'true); chdir('../'); include 'include/init.inc.php'pageheader('Mini Bio','<base href="../">'); ?>

<h2>Welcome to Mini Bio at my gallery.</h2>
etc.
etc.
etc.

<?php pagefooter(); ?>

It should work to access that as http://olsen-twins.net/bio
Make changes only to the middle section (and maybe the title in the pageheader on the first line).

thenota2

how does one create a rewrite rule to do that

ron4mac

Quote from: thenota2 on January 18, 2018, 07:36:45 PM
how does one create a rewrite rule to do that
Using my above method, you don't need a rewrite rule.

thenota2

the php is in my root now with the index.html in the folder. ive tried as you said, php in the folder, the same file you just posted but it doesnt work

your way, with the new php and the old index, where does every file i need go. to load without the php in the url

ron4mac

Quote from: thenota2 on January 18, 2018, 07:46:08 PM
your way, with the new php and the old index, where does every file i need go. to load without the php in the url
I made it very clear above

thenota2

i see you said to just put this as a php file in the bio folder, only one file. i misread that. thanks its fine and have a good day

<?php define('IN_COPPERMINE'true); chdir('../'); include 'include/init.inc.php'pageheader('Mini Bio','<base href="../">'); ?>

<h2>Welcome to Mini Bio at my gallery.</h2>
etc.
etc.
etc.

<?php pagefooter(); ?>