Topic: URL Problems in Full Story
Hello, I have a dynamic web and I’ve been trying to implement cutenews but the links to Full Story displays me error, here goes by steps:
1.- The links of my website normally are like this index.php?page=news (files are taken from the folder /public_html/modules/news.php .... and /public_html/index.php have the includes using switch statment)
2.- These are rewritten with mod_rewrite and are like this: /news/ (something like that in my .htacces: RewriteRule ^([^/]+)$ index.php?page=$1 [L,QSA] )
-------
3.- My cutenews folder is in: /public_html/cutenews
4.- The cutenews include is in: /public_html/modules/news.php
5.- Then, I add a news with the alias "notice"
6.- When I visit the rewritten link /news/ it shows up the list of news, but the Full Story link has an error in every entry, it shows up like index/notice.html when it should be /news/notice.html, and that brings me to a blank page.
My .htacces generated with Rewrite section inside System Configuration
# --- CUTENEWS[ST]
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ /cutenews/show_news.php?cn_rewrite_url=$1 [L]
# --- CUTENEWS[ED]
My include to cutenews in the folder modules/news.php
<?php
$number = 5;
$only_active = TRUE;
include("/home/usersite/public_html/cutenews/show_news.php");
?>
Thanks for attention and the help