Skip to forum content
CutePHP Forums
Dear CuteNews Users! Please feel free to contact us via our new Feedback Form and please send information about bugs to our bug tracker.
You are not logged in. Please login or register.
Active topics Unanswered topics
Search options
I use Rewrite engine. And if i request non-existent page (i am expect server responce 404) then server gives 200.
It's so bad for SEO.
My .htaccess is:
# --- CUTENEWS[ST]
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ /news/show_news.php?cn_rewrite_url=$1 [L]
# --- CUTENEWS[ED]
If i delete this record, then all ok. Anybody knows something about this trouble?
When i using rewrite engine then on a page 404 appear next:
CuteNews has detected that you are including show_news.php using the URL to this file
This is incorrect and you must include it using the PATH to show_news.php. Example:
this is WRONG : <?php include("http://yoursite.com/cutenews/show_news.php"); ?>
this is CORRECT: <?php include("cutenews/show_news.php"); ?>
if you think this message shouldn't be shown, open current file and delete check_direct_including() function, at own risk!
in .htaccess i have
# --- CUTENEWS[ST]
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ /news/show_news.php?cn_rewrite_url=$1 [L]
# --- CUTENEWS[ED]
How i can fix it?
Hi everyone. I've a such problem:
If i include <? require_once ("cn_api.php"); $entry = cn_api_get_entry(); ?> on a page, search stops working. Anybody knows what about this problem? Thanks)))
Hi everyone. I've a such problem:
If i include <? require_once ("cn_api.php"); $entry = cn_api_get_entry(); ?> on a page, search stops working. Anybody knows what about this problem? Thanks)))
Hay, so i need to know variable of additional fields.
For example in this code - "<title><? if ($entry) {echo ''. $entry['t']. ' '. $entry['s'].''; } print($page_title);?></title>"
- $entry['t'] is variable of "Article title", $entry['s'] is variable of "Shot story".
I made additional field "Description" and i need to add a variable in this code.
Hay, so i need to know variable of additional fields.
For example in this code - "<title><? if ($entry) {echo ''. $entry['t']. ' '. $entry['s'].''; } print($page_title);?></title>"
- $entry['t'] is variable of "Article title", $entry['s'] is variable of "Shot story".
I made additional field "Description" and i need to add a variable in this code.
Posts found: 6