Hi all,
Few issues, okay i have couch installed on my website twice because i'm currently running two websites on one server.
So they are installed within folders
AM/Admin
OP/Admin
Now i have created some pages for couch to run. This is in AM/news and is a index.php clone page, works fine, however the news_list.php page comes back as blank. I have tried to also create a page where i can dump all the news articles in called news.php and used the masterpage code
The header code for the index.php page is
Yet when i install the page within Admin/Snippets news_list.php it shows a blank page. I have gone and done the gen_htaccess.php yet still showing blank.
Few issues, okay i have couch installed on my website twice because i'm currently running two websites on one server.
So they are installed within folders
AM/Admin
OP/Admin
Now i have created some pages for couch to run. This is in AM/news and is a index.php clone page, works fine, however the news_list.php page comes back as blank. I have tried to also create a page where i can dump all the news articles in called news.php and used the masterpage code
- Code: Select all
<cms:pages masterpage='news/index.php' >content in here</cms:pages>
The header code for the index.php page is
- Code: Select all
<?php require_once( '../Admin/cms.php' ); ?>
<cms:embed 'news_list.php' />
</cms:if>
<?php COUCH::invoke(); ?>
Yet when i install the page within Admin/Snippets news_list.php it shows a blank page. I have gone and done the gen_htaccess.php yet still showing blank.
- Code: Select all
Options +Indexes +FollowSymlinks -MultiViews
<IfModule mod_rewrite.c>
RewriteEngine On
#If your website is installed in a subfolder, change the line below to reflect the path to the subfolder.
#e.g. for http://www.example.com/subdomain1/subdomain2/ make it RewriteBase /subdomain1/subdomain2
RewriteBase /
#If you wish to use a custom 404 page, place a file named 404.php in your website's root and uncomment the line below.
#If your website is installed in a subfolder, change the line below to reflect the path to the subfolder.
#e.g. for http://www.example.com/subdomain1/subdomain2/ make it ErrorDocument 404 /subdomain1/subdomain2/404.php
#ErrorDocument 404 /404.php
#If your site begins with 'www', uncomment the following two lines
#RewriteCond %{HTTP_HOST} !^www\.
#RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L]
#DO NOT EDIT BELOW THIS
RewriteRule ^news/index.php$ "news/" [R=301,L,QSA]
RewriteCond %{REQUEST_FILENAME} -d [OR]
RewriteCond %{REQUEST_FILENAME} -f
RewriteRule . - [L]
#news/index.php
RewriteRule ^news/.*?([^\.\/]*)\.html$ news/?pname=$1 [L,QSA]
RewriteRule ^news/([1-2]\d{3})/(?:(0[1-9]|1[0-2])/(?:(0[1-9]|1[0-9]|2[0-9]|3[0-1])/)?)?$ news/?d=$1$2$3 [L,QSA]
RewriteRule ^news/[^\.]*?([^/\.]*)/$ news/?fname=$1 [L,QSA]
RewriteRule ^news/[^\.]*?([^/\.]*)$ "$0/" [R=301,L,QSA]
</IfModule>