how to "associate it with your homepage" ?

Get help with installation and running phpwcms here. Please do not post bug reports or feature requests here.
Post Reply
Pageman
Posts: 19
Joined: Sun 5. Jun 2005, 21:15

how to "associate it with your homepage" ?

Post by Pageman »

It seems I read somewhere how to direct a page to begin rendering a site structure created in WCMS, but I've reread the docs several times and still don't find it.

I read and understand how to create layouts, templates, articles, etc. and I'm using the backend from my web server, I just don't yet know how to direct a URL to the database -- isn't there a snippet of redirect code that must go on an index page to get to the database?
User avatar
juergen
Moderator
Posts: 4556
Joined: Mon 10. Jan 2005, 18:10
Location: Weinheim
Contact:

Did you ask for this ?

Post by juergen »

Hello Mr. Pageman,

just reading your posts. Is it possible that you ask for redirecting your account into the subdir where the cms is located ?

Your english is well, but the way you asked is not pointet to a problem....

If so:

Just try google: 'Metatag redirection'

Sorry if my idea is off-topic
:?

Juergen
Pageman
Posts: 19
Joined: Sun 5. Jun 2005, 21:15

Re: Did you ask for this ?

Post by Pageman »

DF6IH wrote: Your english is well, but the way you asked is not pointet to a problem....

If so:

Just try google: 'Metatag redirection'

Sorry if my idea is off-topic
:?

Juergen

I think you probably understand the question as I put it. I've not experimented because I have a live web page, and had hoped to read an explanation before trying out PHPWCMS live. At this point, I am guessing no index.html or index.php file is needed, but I've not put much time into it beyond uploading and configuring PHP, setting up a template and uploading some "articles".

If I leave no index.html or index.php file in my main directory, will PHPWCMS automatically produce an index page, presuming I have configured a layout and a publicly viewable article for the main PHP index, and configured the PHP config file to my main URL? If so, then whatever other index.html or index.php file I have in the main directory would keep the SQL/PHP page from loading, right?

Either way, the documentation as it is now presented doesn't seem to answer this fundamental question.

Does a site powered by PHPWCMS need an index.html or index.php file other than what is produced by the subdirectory where the database is located?

Do I need to write any code outside of PHPWCMS to provide instructions where the database is located? Such as an index.html page with some code like <?php include(GoToMySQLPHPindex_or_something); ?>

At an existing site, does the index.html or index.php file need to be removed before a PHPWCMS page can be called from the main directory?
Pageman
Posts: 19
Joined: Sun 5. Jun 2005, 21:15

Re: Did you ask for this ?

Post by Pageman »

Pageman wrote:
DF6IH wrote: Your english is well, but the way you asked is not pointet to a problem....

If so:

Just try google: 'Metatag redirection'

Sorry if my idea is off-topic
:?

Juergen

I think you grasp the question as I put it. I've not experimented yet because I have a live web page, and had hoped to read an explanation before trying out PHPWCMS live. I just now used a path to the subdirectory where i filed phpwcms and it seemed to return the test information I stored in the database.
Last edited by Pageman on Sat 11. Jun 2005, 04:24, edited 3 times in total.
Pageman
Posts: 19
Joined: Sun 5. Jun 2005, 21:15

Post by Pageman »

Okay, thanks, DF6IH, I was able to view a page apparently served by WCMS using a path to the directory where I placed the phpwcms files.

This might seem obvious, but if I were writing a users guide, I would include such explicit step-by-step information.
User avatar
forefront
Posts: 96
Joined: Sun 16. May 2004, 14:13
Location: Cherryvale, KS • USA
Contact:

Post by forefront »

I've seen this question asked a number of times. Here's how I do all of my WCMS installations:

I always put the WCMS installation in it's own directory, usually called: wcms

In the webroot (usually public_html) I put a simple redirect script:

Code: Select all

<?php Header("Location: http://yourdomain.com/wcms/index.php"); exit; ?>
and save it in index.php, which I put into public_html.

Make sure you do not have any other index files (like index.htm, index.html or index.shtml) or they will likely be executed before index.php

After that, all visitors who hit my website are automatically redirected without delay to the WCMS installation.
Don Bledsoe
FOREFRONT INTERNET
Post Reply