Advanced search  

News:

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

Pages: 1 [2]   Go Down

Author Topic: Where Do Page Files Go  (Read 1679 times)

0 Members and 1 Guest are viewing this topic.

ron4mac

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: us
  • Offline Offline
  • Posts: 779
Re: Where Do Page Files Go
« Reply #20 on: January 18, 2018, 02:28:28 pm »

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:
Code: [Select]
<?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).
« Last Edit: January 18, 2018, 02:35:16 pm by ron4mac »
Logged

thenota2

  • Coppermine regular visitor
  • **
  • Online Online
  • Posts: 72
Re: Where Do Page Files Go
« Reply #21 on: January 18, 2018, 07:36:45 pm »

how does one create a rewrite rule to do that
Logged

ron4mac

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: us
  • Offline Offline
  • Posts: 779
Re: Where Do Page Files Go
« Reply #22 on: January 18, 2018, 07:45:04 pm »

how does one create a rewrite rule to do that
Using my above method, you don't need a rewrite rule.
Logged

thenota2

  • Coppermine regular visitor
  • **
  • Online Online
  • Posts: 72
Re: Where Do Page Files Go
« Reply #23 on: January 18, 2018, 07:46:08 pm »

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
Logged

ron4mac

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: us
  • Offline Offline
  • Posts: 779
Re: Where Do Page Files Go
« Reply #24 on: January 18, 2018, 07:51:07 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
Logged

thenota2

  • Coppermine regular visitor
  • **
  • Online Online
  • Posts: 72
Re: Where Do Page Files Go
« Reply #25 on: January 18, 2018, 08:07:13 pm »

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

Code: [Select]
<?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(); ?>
Logged
Pages: 1 [2]   Go Up
 

Page created in 0.025 seconds with 20 queries.